aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-07-08 17:09:20 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-07-08 17:09:20 -0400
commit7f69558b0b4f333a1d309164e500ff5e8650e3a1 (patch)
treea24b4c42f7db751f2da9824a797eed6244d337d0
parent80e87bb217dfa234e86ff747346a211b2484de88 (diff)
added install/uninstall tgt to mkfile
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 638890b..81bcdc5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,18 @@
.POSIX:
OBJS = strbst.o ll.o nodelink.o read.o main.o
-CFLAGS = -Wall -pedantic -O2
+CFLAGS = -Wall -pedantic -O2 -g
CC = c99
-tmplt: $(OBJS)
+BIN = /usr/local/bin
+OUT = tmplt
+$(OUT): $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@
+ strip $@
clean:
- rm -f $(OBJS) inter
+ rm -f $(OBJS) $(OUT)
+install:
+ cp -f $(OUT) $(BIN)/$(OUT)
+uninstall:
+ rm -f $(BIN)/$(OUT)
strbst.o: strbst.c strbst.h
ll.o: ll.c ll.h
nodelink.o: nodelink.c nodelink.h strbst.h