LOCAL_CPP += main.cpp YAPP_CLASS ?= $(firstword $(basename $(wildcard YApp*.h Y*.h *.h))) YAPP_CLASS_H = $(firstword $(wildcard $(addsuffix /$(YAPP_CLASS).h,\ $(subst -I,,$(INCLUDE)))) $(YAPP_CLASS).h) LOCAL_CFLAGS += -DVERSION_STR=\"$(VERSION)\" LOCAL_CPPFLAGS += -DVERSION_STR=\"$(VERSION)\" ifneq ($(TARGET),mingw) LOCAL_LDFLAGS += -rdynamic endif include $(MODDIR)/make/exe.mk all: build_EXE install: install_EXE clean: clean.yapp distclean: clean.yapp: rm -f main.cpp main.cpp: $(YAPP_CLASS_H) echo -e "#include \n#include \"$<\"\nyapp_main($(YAPP_CLASS))" > $@