2012-04-29 01:45:52 +01:00
|
|
|
|
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 \
|
2012-05-26 16:05:01 +02:00
|
|
|
not \
|
|
|
|
|
attr_bool
|
2012-05-26 16:00:43 +02:00
|
|
|
|
2012-04-30 02:20:49 +01:00
|
|
|
OUTPUTS := bitreader.o \
|
2012-05-01 00:33:47 +01:00
|
|
|
hammer.o \
|
2012-04-30 02:20:49 +01:00
|
|
|
libhammer.a \
|
2012-05-17 15:51:19 +02:00
|
|
|
pprint.o \
|
|
|
|
|
allocator.o \
|
|
|
|
|
datastructures.o \
|
2012-05-26 16:00:43 +02:00
|
|
|
test_suite \
|
|
|
|
|
$(PARSERS:%=parsers/%.o)
|
2012-04-30 02:20:49 +01:00
|
|
|
|
2012-04-30 23:35:11 +01:00
|
|
|
TOPLEVEL := ../
|
|
|
|
|
|
|
|
|
|
include ../common.mk
|
|
|
|
|
|
|
|
|
|
|
2012-04-29 01:45:52 +01:00
|
|
|
all: libhammer.a test_suite
|
|
|
|
|
|
|
|
|
|
test_suite: test_suite.o libhammer.a
|
2012-05-01 02:05:58 +01:00
|
|
|
$(call hush, "Linking $@") $(CC) -o $@ $^ $(LDFLAGS)
|
2012-04-29 01:45:52 +01:00
|
|
|
|
2012-05-26 16:05:01 +02:00
|
|
|
libhammer.a: bitreader.o hammer.o pprint.o allocator.o datastructures.o \
|
|
|
|
|
$(PARSERS:%=parsers/%.o)
|
2012-04-29 01:45:52 +01:00
|
|
|
|
|
|
|
|
bitreader.o: test_suite.h
|
2012-05-11 23:35:21 +01:00
|
|
|
hammer.o: hammer.h
|
2012-05-12 00:40:54 +01:00
|
|
|
|
|
|
|
|
test: test_suite
|
|
|
|
|
./test_suite -v
|