jw-pkg/make/targets-tools.mk

34 lines
578 B
Makefile
Raw Normal View History

# generic utility modules
# (c) 2001 jannet it services
# contact@jannet.de
# $Id$
include $(MODDIR)/make/rules.mk
ifneq ($(strip $(SRC_ALL_CPP)),)
# mandatory targets
all: all.link
install: $(ALL)
# convenience targets
link: all.link
clean-link: clean.link
# rules
all.link: $(PROJECT)
$(PROJECT):
ln -s . $@
$(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