aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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