2014-07-24 11:50:36 +00:00
|
|
|
SRC_ALL_CPP += main.cpp
|
2007-08-18 20:33:08 +00:00
|
|
|
YAPP_CLASS ?= $(firstword $(basename $(wildcard YApp*.h Y*.h *.h)))
|
2011-02-20 14:15:22 +00:00
|
|
|
YAPP_CLASS_H ?= $(firstword $(wildcard $(addsuffix /$(YAPP_CLASS).h,\
|
2007-08-18 20:33:08 +00:00
|
|
|
$(subst -I,,$(INCLUDE)))) $(YAPP_CLASS).h)
|
2009-07-13 13:37:31 +00:00
|
|
|
|
|
|
|
|
ifneq ($(TARGET),mingw)
|
2007-08-18 20:33:08 +00:00
|
|
|
LOCAL_LDFLAGS += -rdynamic
|
2009-07-13 13:37:31 +00:00
|
|
|
endif
|
2007-08-18 20:33:08 +00:00
|
|
|
|
|
|
|
|
include $(MODDIR)/make/exe.mk
|
2006-07-02 15:26:16 +00:00
|
|
|
|
2007-08-21 16:20:30 +00:00
|
|
|
all: build_EXE
|
|
|
|
|
install: install_EXE
|
2006-07-02 15:26:16 +00:00
|
|
|
clean: clean.yapp
|
|
|
|
|
distclean:
|
|
|
|
|
|
|
|
|
|
clean.yapp:
|
|
|
|
|
rm -f main.cpp
|
|
|
|
|
|
2007-01-20 17:50:14 +00:00
|
|
|
main.cpp: $(YAPP_CLASS_H)
|
2011-02-20 14:15:22 +00:00
|
|
|
echo -e "#include \"$<\"\n#include <YAppRunner.h>\nyapp_main($(YAPP_CLASS))" > $@
|
2007-01-20 17:50:14 +00:00
|
|
|
|