############################################################################# # IPMIP6MN.MK # # Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmip6pm.mk,v $ $Revision: 1.12 $ # $Source: /home/interpeak/CVSRoot/ipmip6pm/gmake/ipmip6pm.mk,v $ # $Author: jhorteli $ $Date: 2009-03-02 17:32:15 $ # $State: Exp $ $Locker: $ # # INTERPEAK_COPYRIGHT_STRING # ############################################################################# ifeq ($(IPMIP6PM),) IPMIP6PM := yes ############################################################################# # PRODUCT ########################################################################### IPPROD ?= ipmip6pm ############################################################################# # DEFINE ########################################################################### IPDEFINE += -DIPMIP6PM ############################################################################# # INCLUDE ########################################################################### IPINCLUDE += -I$(IPMIP6PM_ROOT)/config IPINCLUDE += -I$(IPMIP6PM_ROOT)/include IPINCLUDE += -I$(IPMIP6PM_ROOT)/src ############################################################################# # OBJECTS ########################################################################### ifneq ($(IPPORT),lkm) # If las, don't include the entry point files. ifneq ($(IPPORT),las) # Entry point files. IPLIBOBJECTS += ipmip6pm.o IPLIBOBJECTS += ipmip6pm_cmd_pm6.o endif # Configuration IPLIBOBJECTS_C += ipmip6pm_config.o # Mobile Node Objects IPLIBOBJECTS += ipmip6pm_attr.o IPLIBOBJECTS += ipmip6pm_cli.o IPLIBOBJECTS += ipmip6pm_ifevent.o IPLIBOBJECTS += ipmip6pm_icmp.o IPLIBOBJECTS += ipmip6pm_if.o IPLIBOBJECTS += ipmip6pm_main.o IPLIBOBJECTS += ipmip6pm_mh.o IPLIBOBJECTS += ipmip6pm_node.o IPLIBOBJECTS += ipmip6pm_route.o IPLIBOBJECTS += ipmip6pm_link_address.o IPLIBOBJECTS += ipmip6pm_link_local.o IPLIBOBJECTS += ipmip6pm_lma.o IPLIBOBJECTS += ipmip6pm_service_radvd.o IPLIBOBJECTS += ipmip6pm_service_dsmipv6.o IPLIBOBJECTS += ipmip6pm_service_dhcpv6_relay.o IPLIBOBJECTS += ipmip6pm_service_selection.o IPLIBOBJECTS += ipmip6pm_service_vendor_extension.o IPLIBOBJECTS += ipmip6pm_pktbuf.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 ############################################################################# # VPATH ########################################################################### IPSRCDIRS += $(IPMIP6PM_ROOT)/src $(IPMIP6PM_ROOT)/config ############################################################################# # LIB ########################################################################### IPLIBS += $(IPLIBROOT)/libipmip6pm.a endif # LKM ifeq ($(IPPORT),las) ############################################################################# # BINARIES ########################################################################### # Path to binaries IPCMDDIR := $(IPOBJDIR)/bin IPDAEMONDIR := $(IPOBJDIR)/sbin # List of shell commands to build IPMIP6PMCMDS = pm6 _IPIPMIP6PMCMDS = $(addprefix $(IPCMDDIR)/,$(IPMIP6PMCMDS)) # List of daemons to build IPMIP6PMD = pm6d _IPMIP6PMD = $(addprefix $(IPDAEMONDIR)/,$(IPMIP6PMD)) bin: $(_IPIPMIP6PMCMDS) $(_IPMIP6PMD) $(IPOBJDIR)/ipmip6pm_cmd_pm6.o: $(IPMIP6PM_ROOT)/src/ipmip6pm_cmd_pm6.c @$(IPECHO) "+++ Compiling IPMIP6PM shell command $<" $(IPVERB)$(IPCC) -Dipmip6pm_cmd_pm6=ipcom_cmd_entry_point $(IPCFLAGS) -o $@ $< $(IPOBJDIR)/ipmip6pm.o: $(IPMIP6PM_ROOT)/src/ipmip6pm.c @$(IPECHO) "+++ Compiling IPMIP6PM daemon $<" $(IPVERB)$(IPCC) -Dipmip6pm_proc=ipcom_daemon_entry_point $(IPCFLAGS) -o $@ $< # Linking shell commands and daemons $(IPCMDDIR)/pm6: $(IPOBJDIR)/ipmip6pm_cmd_pm6.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o @$(IPECHO) "+++ Linking IPMIP6PM shell command $@" $(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS) $(IPDAEMONDIR)/pm6d: $(IPOBJDIR)/ipmip6pm.o $(IPOBJDIR)/ipcom_daemon_stub.o @$(IPECHO) "+++ Linking IPMIP6PMD daemon $@" $(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS) endif endif # IPMIP6PM ########################################################################### # END OF IPMIP6PM.MK ###########################################################################