jw-pkg/make/yapp.mk

21 lines
582 B
Makefile
Raw Normal View History

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)\"
LOCAL_LDFLAGS += -rdynamic
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
main.cpp: $(YAPP_CLASS_H)
echo -e "#include <YAppRunner.h>\n#include \"$<\"\nyapp_main($(YAPP_CLASS))" > $@