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 $@
19 cd gedcom && $(MAKE) DMALLOC_CFLAGS=$(DMALLOC_CFLAGS) \
20 DMALLOC_LOADLIBES=$(DMALLOC_LOADLIBES)
27 rm -f core gedcom_parse *.o logfile
28 cd gedcom && $(MAKE) clean
29 cd ansel && $(MAKE) clean
34 @export GCONV_PATH=./ansel; \
35 export LD_LIBRARY_PATH=gedcom/.libs; \
36 for file in t/*.ged; do \
37 echo "=== testing $$file"; \
38 ./gedcom_parse -2 $$file; \
41 testmem: DMALLOC_CFLAGS=-DMALLOC
42 testmem: DMALLOC_LOADLIBES=-ldmalloc