############################################################################# # IPDHCPS6.MK # # Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipdhcps6.mk,v $ $Revision: 1.14 $ # $Source: /home/interpeak/CVSRoot/ipdhcps6/gmake/ipdhcps6.mk,v $ # $Author: ulf $ $Date: 2009-06-08 11:04:53 $ # $State: Exp $ $Locker: $ # # INTERPEAK_COPYRIGHT_STRING # ############################################################################# ############################################################################# # PRODUCT ########################################################################### IPPROD ?= ipdhcps6 ############################################################################# # DEFINE ########################################################################### IPDEFINE += -DIPDHCPS6 ############################################################################# # INCLUDE ########################################################################### IPINCLUDE += -I$(IPDHCPS6_ROOT)/config IPINCLUDE += -I$(IPDHCPS6_ROOT)/include IPLIBINCLUDE += -I$(IPDHCPS6_ROOT)/src ############################################################################# # OBJECTS ########################################################################### #ifneq ($(IPPORT),las) # Configuration # Configuration IPLIBOBJECTS_C += ipdhcps6_config.o ## # Compile configuration objects only if the $SKIP_CONFIG macro is either not # defined or set to anything other than true. ifneq ($(SKIP_CONFIG),true) IPLIBOBJECTS += $(IPLIBOBJECTS_C) endif # Daemon IPLIBOBJECTS += ipdhcps6_dhcps6d.o #endif # Shell command IPLIBOBJECTS += ipdhcps6_cmd.o # Core IPLIBOBJECTS += ipdhcps6.o IPLIBOBJECTS += ipdhcps6_authhash.o IPLIBOBJECTS += ipdhcps6_cvthex.o IPLIBOBJECTS += ipdhcps6_dhcps6d.o IPLIBOBJECTS += ipdhcps6_duid.o IPLIBOBJECTS += ipdhcps6_host.o IPLIBOBJECTS += ipdhcps6_msg.o IPLIBOBJECTS += ipdhcps6_option.o IPLIBOBJECTS += ipdhcps6_pool.o IPLIBOBJECTS += ipdhcps6_prefix.o IPLIBOBJECTS += ipdhcps6_relay.o IPLIBOBJECTS += ipdhcps6_subnet.o IPLIBOBJECTS += ipdhcps6_user.o ############################################################################# # VPATH ########################################################################### IPSRCDIRS += $(IPDHCPS6_ROOT)/src $(IPDHCPS6_ROOT)/config ############################################################################# # LIB ########################################################################### IPLIBS += $(IPLIBROOT)/libipdhcps6.a ############################################################################# # BINARIES ############################################################################# #ifeq ($(IPPORT),las) # Path to binaries #IPCMDDIR := $(IPOBJDIR)/bin #IPDAEMONDIR := $(IPOBJDIR)/sbin # List of shell commands to build #IPNETSHELLCMDS = #_IPNETSHELLCMDS = $(addprefix $(IPCMDDIR)/,$(IPNETSHELLCMDS)) # List of daemons to build #IPNETDAEMONS = dhcps6d #_IPNETDAEMONS = $(addprefix $(IPDAEMONDIR)/,$(IPNETDAEMONS)) #bin: $(_IPNETSHELLCMDS) $(_IPNETDAEMONS) #$(IPOBJDIR)/ipdhcps6_cmd_%.o: $(IPDHCPS6_ROOT)/src/ipdhcps6_cmd_%.c # @$(IPECHO) "+++ Compiling IPDHCPS6 shell command $<" # $(IPVERB)$(IPCC) -Dipdhcps6_cmd_$*=ipcom_cmd_entry_point $(IPCFLAGS) -o $@ $< #$(IPCMDDIR)/%: $(IPOBJDIR)/ipdhcps6_cmd_%.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o # @$(IPECHO) "+++ Linking IPDHCPS6 shell command $@" # $(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS) #$(IPOBJDIR)/ipdhcps6_%.o: $(IPDHCPS6_ROOT)/src/ipdhcps6_%.c # @$(IPECHO) "+++ Compiling IPDHCPS6 deamon $<" # $(IPVERB)$(IPCC) -Dipdhcps6_$*_proc=ipcom_daemon_entry_point -Dipdhcps6_create=ipcom_daemon_create $(IPCFLAGS) -o $@ $< #$(IPOBJDIR)/ipdhcps6_config.o: $(IPDHCPS6_ROOT)/config/ipdhcps6_config.c # @$(IPECHO) "+++ Compiling IPDHCPS6 deamon $<" # $(IPVERB)$(IPCC) -Dipdhcps6_configure=ipcom_daemon_configure $(IPCFLAGS) -o $@ $< #$(IPDAEMONDIR)/%: $(IPOBJDIR)/ipdhcps6_%.o $(IPOBJDIR)/ipdhcps6_config.o $(IPOBJDIR)/ipcom_daemon_stub.o # @$(IPECHO) "+++ Linking IPDHCPS6 daemon $@" # $(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS) #endif ########################################################################### # END OF IPDHCPS6.MK ###########################################################################