aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e69de29..6ef7263 100644
--- a/Makefile
+++ b/Makefile
@@ -0,0 +1,20 @@
+exec = halk.out
+sources = $(wildcard src/*.c)
+objects = $(sources:.c=.o)
+flags = -g
+
+
+$(exec): $(objects)
+ clang $(objects) $(flags) -o $(exec)
+
+%.o: %.c include/%.h
+ clang -c $(flags) $< -o $@
+
+install:
+ make
+ cp ./halk.out /usr/local/bin/halk
+
+clean:
+ -rm *.out
+ -rm *.o
+ -rm src/*.o