X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=Makefile;h=46e7b694635eed28a44ccedcead99c4e613e7a42;hb=b232a0018a9e4b46f34effca0d404d69e6dfd110;hp=1ceaa658c5cf02fe7df3fda17a3ca34a3fca3fca;hpb=f2a967d466f4803d686c996d9435a6074c952a63;p=gedcom-parse.git diff --git a/Makefile b/Makefile index 1ceaa65..46e7b69 100644 --- a/Makefile +++ b/Makefile @@ -1,42 +1,11 @@ # $Id$ # $Name$ - -DMALLOC_CFLAGS= -DMALLOC_LOADLIBES= -CFLAGS=-g -W -Wall -pedantic $(DMALLOC_CFLAGS) -CPPFLAGS=-I ./include -YFLAGS=--debug --defines -LFLAGS=-8 -LOADLIBES=$(DMALLOC_LOADLIBES) -LDFLAGS_GEDCOM=-Lgedcom/.libs - -all: ansel_module libgedcom gedcom_parse - -gedcom_parse: standalone.o - $(CC) $(LDFLAGS) $(LDFLAGS_GEDCOM) -lgedcom $^ $(LOADLIBES) $(LDLIBS) -o $@ - -libgedcom: - cd gedcom && $(MAKE) - -ansel_module: - cd ansel && $(MAKE) - -.PHONY: clean -clean: - rm -f core gedcom_parse *.o - cd gedcom && $(MAKE) clean - cd ansel && $(MAKE) clean - -# Test of parser - -test: all - @export GCONV_PATH=./ansel; \ - export LD_LIBRARY_PATH=gedcom/.libs; \ - for file in t/*.ged; do \ - echo "=== testing $$file"; \ - ./gedcom_parse -2 $$file; \ - done - -testmem: DMALLOC_CFLAGS=-DMALLOC -testmem: DMALLOC_LOADLIBES=-ldmalloc -testmem: clean test +all: + @if test -r GNUmakefile; then \ + echo Sorry, GNU make is required; \ + case `gmake --version 2>/dev/null` in \ + *GNU*) echo Try again with 'gmake' ;; \ + esac; \ + else \ + echo Please run ./configure first; \ + fi