dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some cosmetic clean-up in the code.
[gedcom-parse.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index db56b46f1881f83f01b80b212b1b60c0943b38a2..2422c16a5f15c654b95c60760ad55d8962b7686e 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-4,9
+4,12
@@
YACC=bison
LEX=flex
YACC=bison
LEX=flex
-CFLAGS=-g -W -Wall -pedantic
+DMALLOC_CFLAGS=
+DMALLOC_LOADLIBES=
+CFLAGS=-g -W -Wall -pedantic $(DMALLOC_CFLAGS)
YFLAGS=--debug --defines
LFLAGS=-8
YFLAGS=--debug --defines
LFLAGS=-8
+LOADLIBES=$(DMALLOC_LOADLIBES)
all: ansel_module gedcom_parse
all: ansel_module gedcom_parse
@@
-33,6
+36,7
@@
lex.gedcom_lohi_.c: gedcom_lohi.lex gedcom.tab.h gedcom.h multilex.h \
gedcom.tab.c gedcom.tab.h: gedcom.y gedcom.h
$(YACC) $(YFLAGS) --name-prefix=gedcom_ gedcom.y
gedcom.tab.c gedcom.tab.h: gedcom.y gedcom.h
$(YACC) $(YFLAGS) --name-prefix=gedcom_ gedcom.y
+.PHONY: clean
clean:
rm -f core gedcom_parse lexer_* *.o lex.gedcom_* \
gedcom.tab.* gedcom.output
clean:
rm -f core gedcom_parse lexer_* *.o lex.gedcom_* \
gedcom.tab.* gedcom.output
@@
-73,5
+77,9
@@
test: all
@export GCONV_PATH=./ansel; \
for file in t/*.ged; do \
echo "=== testing $$file"; \
@export GCONV_PATH=./ansel; \
for file in t/*.ged; do \
echo "=== testing $$file"; \
- ./gedcom_parse $$file; \
+ ./gedcom_parse
-2
$$file; \
done
done
+
+testmem: DMALLOC_CFLAGS=-DMALLOC
+testmem: DMALLOC_LOADLIBES=-ldmalloc
+testmem: clean test