jw-pkg/make/yapp.mk
Jan Lindemann adfdec7492 defs.mk.in: Do all -DVERSION_STR handling
Push -DVERSION_STR from main.mk and yapp.mk into defs.mk.in.
2012-05-02 17:55:14 +00:00

22 lines
518 B
Makefile

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)
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 <YAppRunner.h>\nyapp_main($(YAPP_CLASS))" > $@