aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: b034809eb15dc23cd9e0b0c9c54fe23a4b33f051 (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)
sources := $(filter-out src/parser.c, $(sources)) # exclude the incomplete parser for now.
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