-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (16 loc) · 771 Bytes
/
Makefile
File metadata and controls
24 lines (16 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
include variables.mk
.PHONY: clean all tests extratests
all: libparser.a tests
clean:
rm -f *.o *.gcda *.gcno *.gcov libparser.a testparse core* imessage* omessage*
CXXFLAGS="${OLDCXXFLAGS}" LDFLAGS="${OLDLDFLAGS}" make -C extratests clean
testparse: libparser.a testparse.o
${CXX} testparse.o -L . -l parser -o testparse ${LDFLAGS}
libparser.a: field.o fldformat.o parser.o builder.o frmiterator.o
ar rcs libparser.a field.o fldformat.o parser.o builder.o frmiterator.o
%.o: %.cpp parser.h
${CXX} -c $< ${CXXFLAGS} ${CPPFLAGS}
tests: testparse
@for i in `ls tests`; do echo "./testparse tests/$$i >/dev/null"; ./testparse tests/$$i >/dev/null || exit $$?; done
extratests: tests
CXXFLAGS="${OLDCXXFLAGS}" LDFLAGS="${OLDLDFLAGS}" make -C extratests