From 7f69558b0b4f333a1d309164e500ff5e8650e3a1 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Wed, 8 Jul 2020 17:09:20 -0400
Subject: added install/uninstall tgt to mkfile
---
Makefile | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
(limited to 'Makefile')
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
--
cgit