diff options
author | c+1 | 2023-05-03 08:18:24 -0400 |
---|---|---|
committer | c+1 | 2023-05-03 08:18:24 -0400 |
commit | 36492397289c08e34d2f6f80786b7ea5c3ac8617 (patch) | |
tree | 6fa1000e1aed729ca2a125c35cb76b83fe0214a8 /Makefile | |
parent | 4a4bcc50fd2ce8380de6e828070afd20ee0b814a (diff) |
make
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 |