diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 |