targets-tools.mk, tools.mk: Preparted for SRC_ALL_CPP empty

This commit is contained in:
Jan Lindemann 2012-02-28 12:44:27 +00:00 committed by Jan Lindemann
commit 16090f9371
2 changed files with 11 additions and 5 deletions

View file

@ -5,9 +5,10 @@
include $(MODDIR)/make/rules.mk
ifneq ($(strip $(SRC_ALL_CPP)),)
# mandatory targets
all: all.link
clean: objclean textclean localclean profclean clean.link
install: $(ALL)
# convenience targets
@ -17,9 +18,6 @@ clean-link: clean.link
# rules
all.link: $(PROJECT)
clean.link:
if [ -L $(PROJECT) -a "`readlink $(PROJECT)`" = . ]; then rm $(PROJECT); fi
$(PROJECT):
ln -s . $@
@ -27,3 +25,10 @@ $(LIB_SO): $(OBJ)
all.done: $(PREREQ_DONE) $(BUILD_HDR) $(BUILD_EXE_SH) $(MEMBERS) $(LIB_A) $(LIB_SO)
endif
clean: objclean textclean localclean profclean clean.link
clean.link:
if [ -L $(PROJECT) -a "`readlink $(PROJECT)`" = . ]; then rm $(PROJECT); fi

View file

@ -11,5 +11,6 @@ include $(MODDIR)/make/backup.mk
LOCAL_CFLAGS += -D_USRDLL -DALL_EXPORTS
LOCAL_CPPFLAGS += -D_USRDLL -DALL_EXPORTS
ifneq ($(SRC_ALL_CPP),)
all: all.done
endif