You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
869 B
35 lines
869 B
MODLIBS+=-lgmt |
|
|
|
GMT_FLSOURCE=gmt_filter_headfoot.cpp |
|
GMT_FLHEADERS=$(subst .cpp,.h,$(GMT_FLSOURCE)) |
|
|
|
ifeq ($(subst ,$(GMT_FLSOURCE),$(SOURCE)),$(SOURCE)) |
|
SOURCE+=$(GMT_FLSOURCE) |
|
MODSOURCE+=modules/gmt/$(GMT_FLSOURCE) |
|
MODHEADERS+=modules/gmt/$(GMT_FLHEADERS) |
|
endif |
|
|
|
ifdef MODULE |
|
filters.d: gmt_filter_headfoot.h |
|
|
|
gmt_filter_headfoot.cpp: gmt_filter_headfoot.l |
|
flex -o $@ --header-file=gmt_filter_headfoot.h $< |
|
[ -f gmt_filter_headfoot.h ] && touch gmt_filter_headfoot.h |
|
|
|
gmt_filter_headfoot.h: gmt_filter_headfoot.l gmt_filter_headfoot.cpp |
|
|
|
.PHONY: gmt_clean |
|
|
|
clean: gmt_clean |
|
|
|
gmt_clean: |
|
rm -f $(GMT_FLSOURCE) $(GMT_FLHEADERS) |
|
|
|
else |
|
|
|
modules/gmt/gmt_filter_headfoot.cpp: modules/gmt/gmt_filter_headfoot.l |
|
make -C modules/gmt -f ../../Makefile MODULE=gmt gmt_filter_headfoot.cpp |
|
|
|
modules/gmt/gmt_filter_headfoot.h: modules/gmt/gmt_filter_headfoot.cpp |
|
|
|
endif
|
|
|