2006-07-02 15:26:16 +00:00
|
|
|
LOCAL_CPP += main.cpp
|
2007-05-14 13:49:37 +00:00
|
|
|
YAPP_CLASS ?= $(firstword $(basename $(wildcard YApp*.h Y*.h *.h)))
|
2007-01-20 17:50:14 +00:00
|
|
|
YAPP_CLASS_H = $(firstword $(wildcard $(addsuffix /$(YAPP_CLASS).h, $(subst -I,,$(INCLUDE)))) $(YAPP_CLASS).h)
|
2006-07-02 15:26:16 +00:00
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
install:
|
|
|
|
|
clean: clean.yapp
|
|
|
|
|
distclean:
|
|
|
|
|
|
|
|
|
|
include $(MODDIR)/make/exe.mk
|
|
|
|
|
|
|
|
|
|
clean.yapp:
|
|
|
|
|
rm -f main.cpp
|
|
|
|
|
|
2007-01-20 17:50:14 +00:00
|
|
|
main.cpp: $(YAPP_CLASS_H)
|
|
|
|
|
echo -e "#include <YAppRunner.h>\n#include \"$<\"\nyapp_main($(YAPP_CLASS))" > $@
|
|
|
|
|
|
|
|
|
|
dings:
|
|
|
|
|
echo $(YAPP_CLASS_H)
|
2006-07-02 15:26:16 +00:00
|
|
|
|
|
|
|
|
|