aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index b7e7eac..0a0f1a5 100644
--- a/Makefile
+++ b/Makefile
@@ -4,14 +4,8 @@ $(TARGET): $(SRCS)
TARGET = kl
SRCS = main.c
-kl: main.o config.o
- gcc main.o config.o -o kl
-
-main.o: main.c config.h
- gcc -c main.c
-
-config.o: config.c config.h
- gcc -c config.c
+kl: *.c
+ gcc *.c -o kl
clean:
rm -rf *.o kl
@@ -22,3 +16,6 @@ install:
install -d $(DESTDIR)$(PREFIX)/bin
install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
+
+format:
+ clang-format -i *.c *.h