|
|
@ -1,6 +1,6 @@ |
|
|
|
MODLIBS+=-lgmt |
|
|
|
MODLIBS+=-lgmt |
|
|
|
|
|
|
|
|
|
|
|
GMT_FLSOURCE=gmt_filter_headfoot.cpp |
|
|
|
GMT_FLSOURCE=modgmt_filter_headfoot.cpp |
|
|
|
GMT_FLHEADERS=$(subst .cpp,.h,$(GMT_FLSOURCE)) |
|
|
|
GMT_FLHEADERS=$(subst .cpp,.h,$(GMT_FLSOURCE)) |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(subst ,$(GMT_FLSOURCE),$(SOURCE)),$(SOURCE)) |
|
|
|
ifeq ($(subst ,$(GMT_FLSOURCE),$(SOURCE)),$(SOURCE)) |
|
|
@ -10,13 +10,13 @@ MODHEADERS+=modules/gmt/$(GMT_FLHEADERS) |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
ifdef MODULE |
|
|
|
ifdef MODULE |
|
|
|
filters.d: gmt_filter_headfoot.h |
|
|
|
modgmt_filters.d: modgmt_filter_headfoot.h |
|
|
|
|
|
|
|
|
|
|
|
gmt_filter_headfoot.cpp: gmt_filter_headfoot.l |
|
|
|
modgmt_filter_headfoot.cpp: modgmt_filter_headfoot.l |
|
|
|
flex -o $@ --header-file=gmt_filter_headfoot.h $< |
|
|
|
flex -o $@ --header-file=modgmt_filter_headfoot.h $< |
|
|
|
[ -f gmt_filter_headfoot.h ] && touch gmt_filter_headfoot.h |
|
|
|
[ -f modgmt_filter_headfoot.h ] && touch modgmt_filter_headfoot.h |
|
|
|
|
|
|
|
|
|
|
|
gmt_filter_headfoot.h: gmt_filter_headfoot.l gmt_filter_headfoot.cpp |
|
|
|
modgmt_filter_headfoot.h: modgmt_filter_headfoot.l modgmt_filter_headfoot.cpp |
|
|
|
|
|
|
|
|
|
|
|
.PHONY: gmt_clean |
|
|
|
.PHONY: gmt_clean |
|
|
|
|
|
|
|
|
|
|
@ -27,9 +27,9 @@ gmt_clean: |
|
|
|
|
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
|
|
|
|
|
|
|
|
modules/gmt/gmt_filter_headfoot.cpp: modules/gmt/gmt_filter_headfoot.l |
|
|
|
modules/gmt/modgmt_filter_headfoot.cpp: modules/gmt/modgmt_filter_headfoot.l |
|
|
|
make -C modules/gmt -f ../../Makefile MODULE=gmt gmt_filter_headfoot.cpp |
|
|
|
make -C modules/gmt -f ../../Makefile MODULE=gmt modgmt_filter_headfoot.cpp |
|
|
|
|
|
|
|
|
|
|
|
modules/gmt/gmt_filter_headfoot.h: modules/gmt/gmt_filter_headfoot.cpp |
|
|
|
modules/gmt/modgmt_filter_headfoot.h: modules/gmt/modgmt_filter_headfoot.cpp |
|
|
|
|
|
|
|
|
|
|
|
endif |
|
|
|
endif |
|
|
|