aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index aee8c95..b7e7eac 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+$(TARGET): $(SRCS)
+ $(CC) $(CFLAGS) -o $(TARGET) $(SRCS)
+
+TARGET = kl
+SRCS = main.c
+
kl: main.o config.o
gcc main.o config.o -o kl
@@ -10,3 +16,9 @@ config.o: config.c config.h
clean:
rm -rf *.o kl
+all: $(TARGET)
+
+install:
+ install -d $(DESTDIR)$(PREFIX)/bin
+
+ install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)