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