hammer/src/Makefile

52 lines
740 B
Makefile
Raw Normal View History

2012-05-26 16:00:43 +02:00
PARSERS := \
unimplemented \
bits \
token \
whitespace \
ch \
action \
charset \
int_range \
sequence \
choice \
nothing \
end \
butnot \
difference \
many \
xor \
optional \
ignore \
epsilon \
and \
not
OUTPUTS := bitreader.o \
hammer.o \
libhammer.a \
pprint.o \
allocator.o \
datastructures.o \
2012-05-26 16:00:43 +02:00
test_suite \
$(PARSERS:%=parsers/%.o)
2012-04-30 23:35:11 +01:00
TOPLEVEL := ../
include ../common.mk
all: libhammer.a test_suite
test_suite: test_suite.o libhammer.a
$(call hush, "Linking $@") $(CC) -o $@ $^ $(LDFLAGS)
libhammer.a: bitreader.o hammer.o pprint.o allocator.o datastructures.o
2012-05-26 16:00:43 +02:00
libhammer.a: $(PARSERS:%=parsers/%.o)
bitreader.o: test_suite.h
2012-05-11 23:35:21 +01:00
hammer.o: hammer.h
test: test_suite
./test_suite -v