6 CFLAGS=-g -W -Wall -pedantic $(DMALLOC_CFLAGS)
8 YFLAGS=--debug --defines
10 LOADLIBES=$(DMALLOC_LOADLIBES)
11 LDFLAGS_GEDCOM=-Lgedcom/.libs
13 all: ansel_module libgedcom gedcom_parse
15 gedcom_parse: standalone.o
16 $(CC) $(LDFLAGS) $(LDFLAGS_GEDCOM) -lgedcom $^ $(LOADLIBES) $(LDLIBS) -o $@
26 rm -f core gedcom_parse *.o
27 cd gedcom && $(MAKE) clean
28 cd ansel && $(MAKE) clean
33 @export GCONV_PATH=./ansel; \
34 export LD_LIBRARY_PATH=gedcom/.libs; \
35 for file in t/*.ged; do \
36 echo "=== testing $$file"; \
37 ./gedcom_parse -2 $$file; \
40 testmem: DMALLOC_CFLAGS=-DMALLOC
41 testmem: DMALLOC_LOADLIBES=-ldmalloc