diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-07-08 17:09:20 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-07-08 17:09:20 -0400 |
commit | 7f69558b0b4f333a1d309164e500ff5e8650e3a1 (patch) | |
tree | a24b4c42f7db751f2da9824a797eed6244d337d0 /Makefile | |
parent | 80e87bb217dfa234e86ff747346a211b2484de88 (diff) |
added install/uninstall tgt to mkfile
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 |