140 lines
4.2 KiB
Makefile
140 lines
4.2 KiB
Makefile
#############################################################################
|
|
# IPMIPMN.MK
|
|
#
|
|
# Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmip6ha.mk,v $ $Revision: 1.10 $
|
|
# $Source: /home/interpeak/CVSRoot/ipmip6ha/gmake/ipmip6ha.mk,v $
|
|
# $Author: jhorteli $ $Date: 2009-03-02 11:45:07 $
|
|
# $State: Exp $ $Locker: $
|
|
#
|
|
# INTERPEAK_COPYRIGHT_STRING
|
|
#
|
|
#############################################################################
|
|
|
|
ifeq ($(IPMIP6HA),)
|
|
IPMIP6HA := yes
|
|
|
|
#############################################################################
|
|
# PRODUCT
|
|
###########################################################################
|
|
|
|
IPPROD ?= ipmip6ha
|
|
|
|
|
|
#############################################################################
|
|
# DEFINE
|
|
###########################################################################
|
|
|
|
IPDEFINE += -DIPMIP6HA
|
|
|
|
#############################################################################
|
|
# INCLUDE
|
|
###########################################################################
|
|
|
|
IPINCLUDE += -I$(IPMIP6HA_ROOT)/config
|
|
IPINCLUDE += -I$(IPMIP6HA_ROOT)/include
|
|
IPINCLUDE += -I$(IPMIP6HA_ROOT)/src
|
|
|
|
|
|
#############################################################################
|
|
# OBJECTS
|
|
###########################################################################
|
|
|
|
ifneq ($(IPPORT),lkm)
|
|
|
|
ifneq ($(IPPORT),las)
|
|
IPLIBOBJECTS += ipmip6ha.o
|
|
IPLIBOBJECTS += ipmip6ha_cmd_ha6.o
|
|
endif
|
|
|
|
# Configuration
|
|
IPLIBOBJECTS_C += ipmip6ha_config.o
|
|
|
|
# Home Agent objects
|
|
IPLIBOBJECTS += ipmip6ha_main.o
|
|
IPLIBOBJECTS += ipmip6ha_attr.o
|
|
IPLIBOBJECTS += ipmip6ha_cli.o
|
|
IPLIBOBJECTS += ipmip6ha_icmp.o
|
|
IPLIBOBJECTS += ipmip6ha_if.o
|
|
IPLIBOBJECTS += ipmip6ha_ifevent.o
|
|
IPLIBOBJECTS += ipmip6ha_mag.o
|
|
IPLIBOBJECTS += ipmip6ha_mh.o
|
|
IPLIBOBJECTS += ipmip6ha_nemo.o
|
|
IPLIBOBJECTS += ipmip6ha_nemo_dsmipv6.o
|
|
IPLIBOBJECTS += ipmip6ha_node.o
|
|
IPLIBOBJECTS += ipmip6ha_pktbuf.o
|
|
IPLIBOBJECTS += ipmip6ha_pmipv6_linklocal.o
|
|
IPLIBOBJECTS += ipmip6ha_pmipv6_dhcpv6.o
|
|
IPLIBOBJECTS += ipmip6ha_pmipv6_dhcpv4.o
|
|
IPLIBOBJECTS += ipmip6ha_service_testext.o
|
|
IPLIBOBJECTS += ipmip6ha_route.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 += $(IPMIP6HA_ROOT)/src $(IPMIP6HA_ROOT)/config
|
|
|
|
|
|
#############################################################################
|
|
# LIB
|
|
###########################################################################
|
|
|
|
IPLIBS += $(IPLIBROOT)/libipmip6ha.a
|
|
|
|
endif # LKM
|
|
|
|
|
|
ifeq ($(IPPORT),las)
|
|
|
|
#############################################################################
|
|
# BINARIES
|
|
###########################################################################
|
|
|
|
|
|
# Path to binaries
|
|
IPCMDDIR := $(IPOBJDIR)/bin
|
|
IPDAEMONDIR := $(IPOBJDIR)/sbin
|
|
|
|
# List of shell commands to build
|
|
IPMIP6HACMDS = ha6
|
|
_IPIPMIP6HACMDS = $(addprefix $(IPCMDDIR)/,$(IPMIP6HACMDS))
|
|
|
|
# List of daemons to build
|
|
IPMIP6HAD = ha6d
|
|
_IPMIP6HAD = $(addprefix $(IPDAEMONDIR)/,$(IPMIP6HAD))
|
|
|
|
bin: $(_IPIPMIP6HACMDS) $(_IPMIP6HAD)
|
|
|
|
$(IPOBJDIR)/ipmip6ha_cmd_ha6.o: $(IPMIP6HA_ROOT)/src/ipmip6ha_cmd_ha6.c
|
|
@$(IPECHO) "+++ Compiling IPMIP6HA shell command $<"
|
|
$(IPVERB)$(IPCC) -Dipmip6ha_cmd_ha6=ipcom_cmd_entry_point $(IPCFLAGS) -o $@ $<
|
|
|
|
$(IPOBJDIR)/ipmip6ha.o: $(IPMIP6HA_ROOT)/src/ipmip6ha.c
|
|
@$(IPECHO) "+++ Compiling IPMIP6HA daemon $<"
|
|
$(IPVERB)$(IPCC) -Dipmip6ha_proc=ipcom_daemon_entry_point $(IPCFLAGS) -o $@ $<
|
|
|
|
# Linking shell commands and daemons
|
|
$(IPCMDDIR)/ha6: $(IPOBJDIR)/ipmip6ha_cmd_ha6.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o
|
|
@$(IPECHO) "+++ Linking IPMIP6HA shell command $@"
|
|
$(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS)
|
|
|
|
$(IPDAEMONDIR)/ha6d: $(IPOBJDIR)/ipmip6ha.o $(IPOBJDIR)/ipcom_daemon_stub.o
|
|
@$(IPECHO) "+++ Linking IPMIP6HAD daemon $@"
|
|
$(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS)
|
|
|
|
|
|
endif
|
|
|
|
|
|
endif
|
|
|
|
###########################################################################
|
|
# END OF IPMIP6.MK
|
|
###########################################################################
|