55 lines
798 B
Makefile
55 lines
798 B
Makefile
|
|
PARSERS := \
|
|
unimplemented \
|
|
bits \
|
|
token \
|
|
whitespace \
|
|
ignoreseq \
|
|
ch \
|
|
action \
|
|
charset \
|
|
int_range \
|
|
sequence \
|
|
choice \
|
|
nothing \
|
|
end \
|
|
butnot \
|
|
difference \
|
|
many \
|
|
xor \
|
|
optional \
|
|
ignore \
|
|
epsilon \
|
|
and \
|
|
not \
|
|
attr_bool \
|
|
indirect
|
|
|
|
OUTPUTS := bitreader.o \
|
|
hammer.o \
|
|
bitwriter.o \
|
|
libhammer.a \
|
|
pprint.o \
|
|
allocator.o \
|
|
datastructures.o \
|
|
test_suite \
|
|
$(PARSERS:%=parsers/%.o)
|
|
|
|
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 bitwriter.o \
|
|
$(PARSERS:%=parsers/%.o)
|
|
|
|
bitreader.o: test_suite.h
|
|
hammer.o: hammer.h
|
|
|
|
test: test_suite
|
|
./test_suite -v
|