aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 0530b06b790026782583a606917d33a493a48df3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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