hammer/src/Makefile
Meredith L. Patterson 1f3a75fafe Merge pull request #3 from pesco/master
add h_in (counterpart to h_not_in)
2012-08-12 01:20:59 -07:00

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