NWGNUhead.inc revision 0662ed52e814f8f08ef0e09956413a792584eddf
#
# Obtain the global build environment
#
include $(AP_WORK)/build/NWGNUenvironment.inc
#
# Define base targets and rules
#
TARGETS = libs nlms install clobber_libs clobber_nlms clean installdev
.PHONY : $(TARGETS) default all help $(NO_LICENSE_FILE)
# Here is where we will use the NO_LICENSE_FILE variable to see if we need to
# restart the make with it defined
ifdef NO_LICENSE_FILE
default: NO_LICENSE_FILE
all: NO_LICENSE_FILE
install :: NO_LICENSE_FILE
installdev :: NO_LICENSE_FILE
NO_LICENSE_FILE :
$(MAKE) $(MAKECMDGOALS) -f NWGNUmakefile RELEASE=$(RELEASE) DEST="$(INSTALL)" LM_LICENSE_FILE="$(METROWERKS)/license.dat"
else # LM_LICENSE_FILE must be defined so use the real targets
default: $(SUBDIRS) libs nlms
all: $(SUBDIRS) libs nlms install
$(TARGETS) :: $(SUBDIRS)
install :: nlms $(INSTDIRS)
installdev :: $(INSTDEVDIRS)
$(INSTDIRS) ::
$(call MKDIR,$@)
$(INSTDEVDIRS) ::
$(call MKDIR,$@)
endif #NO_LICENSE_FILE check
help :
@$(ECHONL)
@$(ECHONL)
clobber_all :: clean clobber_install clobber_prebuild
clobber_install ::
clobber_prebuild ::
$(call RMDIR,$(PREBUILD_INST))
#
# build recursive targets
#
$(SUBDIRS) : FORCE
ifneq "$(MAKECMDGOALS)" "clean"
@$(ECHONL)
endif
$(MAKE) -C $@ $(MAKECMDGOALS) -f NWGNUmakefile RELEASE=$(RELEASE) DEST="$(INSTALL)" LM_LICENSE_FILE="$(LM_LICENSE_FILE)"
@$(ECHONL)
FORCE:
#
# Standard targets
#
clean :: $(SUBDIRS)
# $(call DEL,*.d)
$(OBJDIR) ::
$(call MKDIR,$@)