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