aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc+12023-05-03 08:18:24 -0400
committerc+12023-05-03 08:18:24 -0400
commit36492397289c08e34d2f6f80786b7ea5c3ac8617 (patch)
tree6fa1000e1aed729ca2a125c35cb76b83fe0214a8
parent4a4bcc50fd2ce8380de6e828070afd20ee0b814a (diff)
make
-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