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
921 B

MODLIBS+=-lgmt
GMT_FLSOURCE=modgmt_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
modgmt_filters.d: modgmt_filter_headfoot.h
modgmt_filter_headfoot.cpp: modgmt_filter_headfoot.l
flex -o $@ --header-file=modgmt_filter_headfoot.h $<
[ -f modgmt_filter_headfoot.h ] && touch modgmt_filter_headfoot.h
modgmt_filter_headfoot.h: modgmt_filter_headfoot.l modgmt_filter_headfoot.cpp
.PHONY: gmt_clean
clean: gmt_clean
gmt_clean:
rm -f $(GMT_FLSOURCE) $(GMT_FLHEADERS)
else
modules/gmt/modgmt_filter_headfoot.cpp: modules/gmt/modgmt_filter_headfoot.l
make -C modules/gmt -f ../../Makefile MODULE=gmt modgmt_filter_headfoot.cpp
modules/gmt/modgmt_filter_headfoot.h: modules/gmt/modgmt_filter_headfoot.cpp
endif