############################################################################# # IPDHCPS.MK # # Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipdhcps.mk,v $ $Revision: 1.5 $ # $Source: /home/interpeak/CVSRoot/ipdhcps/gmake/ipdhcps.mk,v $ # $Author: joel $ $Date: 2006-12-19 08:43:03 $ # $State: Exp $ $Locker: $ # # Copyright 2000-2006 Interpeak AB (http://www.interpeak.se). All rights reserved. # ############################################################################# # # modification history # -------------------- # 01a,11dec06,kch Build ipdhcps_example.o only if $(SKIP_CONFIG) is not # set to true. # ############################################################################# # PRODUCT ########################################################################### IPPROD ?= ipdhcps ############################################################################# # DEFINE ########################################################################### IPDEFINE += -DIPDHCPS ############################################################################# # INCLUDE ########################################################################### IPINCLUDE += -I$(IPDHCPS_ROOT)/config IPINCLUDE += -I$(IPDHCPS_ROOT)/include IPLIBINCLUDE += -I$(IPDHCPS_ROOT)/src ############################################################################# # OBJECTS ########################################################################### ifneq ($(IPPORT),las) # Configuration IPLIBOBJECTS_C += ipdhcps_config.o IPLIBOBJECTS_C += ipdhcps_example.o # Shell command IPLIBOBJECTS += ipdhcps_cmd_dhcps.o endif # Core IPLIBOBJECTS += ipdhcps.o IPLIBOBJECTS += ipdhcps_options.o IPLIBOBJECTS += ipdhcps_leasedump.o IPLIBOBJECTS += ipdhcps_db.o IPLIBOBJECTS += ipdhcps_packet.o # Compiles the xxx_config.o if the $SKIP_CONFIG macro is either not defined # or set to anything other than true. ifneq ($(SKIP_CONFIG),true) IPLIBOBJECTS += $(IPLIBOBJECTS_C) endif # Compiles the xxx_config.o if the $SKIP_CONFIG macro is either not defined # or set to anything other than true. ifneq ($(SKIP_CONFIG),true) IPLIBOBJECTS += $(IPLIBOBJECTS_C) endif ############################################################################# # VPATH ########################################################################### IPSRCDIRS += $(IPDHCPS_ROOT)/src $(IPDHCPS_ROOT)/config ############################################################################# # LIB ########################################################################### IPLIBS += $(IPLIBROOT)/libipdhcps.a ############################################################################# # BINARIES ############################################################################# ifeq ($(IPPORT),las) # Path to binaries IPCMDDIR := $(IPOBJDIR)/bin IPDAEMONDIR := $(IPOBJDIR)/sbin # List of shell commands to build IPDHCPSSHELLCMDS = _IPIPDHCPSSHELLCMDS = $(addprefix $(IPCMDDIR)/,$(IPDHCPSSHELLCMDS)) # List of daemons to build IPDHCPSDAEMONS = dhcpd _IPDHCPSDAEMONS = $(addprefix $(IPDAEMONDIR)/,$(IPDHCPSDAEMONS)) bin:: $(_IPDHCPSSHELLCMDS) $(_IPDHCPSDAEMONS) $(IPOBJDIR)/ipdhcps_cmd_%.o: $(IPDHCPS_ROOT)/src/ipdhcps_cmd_%.c @$(IPECHO) "+++ Compiling IPDHCPS shell command $<" $(IPVERB)$(IPCC) -Dipdhcps_cmd_$*=ipcom_cmd_entry_point $(IPCFLAGS) -o $@ $< $(IPCMDDIR)/%: $(IPOBJDIR)/ipdhcps_cmd_%.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o @$(IPECHO) "+++ Linking IPDHCPS shell command $@" $(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS) $(IPOBJDIR)/ipdhcps_%.o: $(IPDHCPS_ROOT)/src/ipdhcps_%.c @$(IPECHO) "+++ Compiling IPDHCPS deamon $<" $(IPVERB)$(IPCC) -Dipdhcps_$*_proc=ipcom_daemon_entry_point -Dipdhcps_$*_create=ipcom_daemon_create $(IPCFLAGS) -o $@ $< $(IPOBJDIR)/ipdhcps_config.o: $(IPDHCPS_ROOT)/config/ipdhcps_config.c @$(IPECHO) "+++ Compiling IPDHCPS deamon $<" $(IPVERB)$(IPCC) -Dipdhcps_$*_configure=ipcom_daemon_configure $(IPCFLAGS) -o $@ $< $(IPDAEMONDIR)/%: $(IPOBJDIR)/ipdhcps_%.o $(IPOBJDIR)/ipdhcps_config.o $(IPOBJDIR)/ipcom_daemon_stub.o @$(IPECHO) "+++ Linking IPDHCPS daemon $@" $(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS) endif ########################################################################### # END OF IPDHCPS.MK ###########################################################################