jw-pkg/make/yapp.mk
2007-01-20 17:50:14 +00:00

21 lines
406 B
Makefile

LOCAL_CPP += main.cpp
YAPP_CLASS ?= YApplication
YAPP_CLASS_H = $(firstword $(wildcard $(addsuffix /$(YAPP_CLASS).h, $(subst -I,,$(INCLUDE)))) $(YAPP_CLASS).h)
all:
install:
clean: clean.yapp
distclean:
include $(MODDIR)/make/exe.mk
clean.yapp:
rm -f main.cpp
main.cpp: $(YAPP_CLASS_H)
echo -e "#include <YAppRunner.h>\n#include \"$<\"\nyapp_main($(YAPP_CLASS))" > $@
dings:
echo $(YAPP_CLASS_H)