Files
2026-07-30 11:19:44 +05:30

152 lines
4.5 KiB
Makefile

#############################################################################
# IPMIP6MN.MK
#
# Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmip6mn.mk,v $ $Revision: 1.23 $
# $Source: /home/interpeak/CVSRoot/ipmip6mn/gmake/ipmip6mn.mk,v $
# $Author: jhorteli $ $Date: 2009-03-02 17:32:46 $
# $State: Exp $ $Locker: $
#
# INTERPEAK_COPYRIGHT_STRING
#
#############################################################################
ifeq ($(IPMIP6MN),)
IPMIP6MN := yes
#############################################################################
# PRODUCT
###########################################################################
IPPROD ?= ipmip6mn
#############################################################################
# DEFINE
###########################################################################
IPDEFINE += -DIPMIP6MN
#############################################################################
# INCLUDE
###########################################################################
IPINCLUDE += -I$(IPMIP6MN_ROOT)/config
IPINCLUDE += -I$(IPMIP6MN_ROOT)/include
IPINCLUDE += -I$(IPMIP6MN_ROOT)/src
#############################################################################
# OBJECTS
###########################################################################
ifneq ($(IPPORT),lkm)
# If las, don't include the entry point files.
ifneq ($(IPPORT),las)
# Entry point files.
IPLIBOBJECTS += ipmip6mn.o
IPLIBOBJECTS += ipmip6mn_cmd_mn6.o
endif
# Configuration
IPLIBOBJECTS_C += ipmip6mn_config.o
# Mobile Node Objects
IPLIBOBJECTS += ipmip6mn_attr.o
IPLIBOBJECTS += ipmip6mn_bc.o
IPLIBOBJECTS += ipmip6mn_cli.o
IPLIBOBJECTS += ipmip6mn_coa.o
IPLIBOBJECTS += ipmip6mn_icmp.o
IPLIBOBJECTS += ipmip6mn_ifevent.o
IPLIBOBJECTS += ipmip6mn_mh.o
IPLIBOBJECTS += ipmip6mn_mh_ha.o
IPLIBOBJECTS += ipmip6mn_ntop.o
IPLIBOBJECTS += ipmip6mn_route.o
IPLIBOBJECTS += ipmip6mn_service_dsmipv6.o
IPLIBOBJECTS += ipmip6mn_service_mpdisc.o
IPLIBOBJECTS += ipmip6mn_service_radvd.o
IPLIBOBJECTS += ipmip6mn_service_selection.o
IPLIBOBJECTS += ipmip6mn_service_vendor_extension.o
IPLIBOBJECTS += ipmip6mn_state.o
IPLIBOBJECTS += ipmip6mn_pktbuf.o
IPLIBOBJECTS += ipmip6mn_main.o
#SNMP
ifneq ($(WIND_IPNET),true)
IPLIBOBJECTS += ipmip6mn_mobileipv6_mib.o
endif
# Mobile Node Objects when Correspondent node support is included.
IPLIBOBJECTS += ipmip6mn_mh_cn.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 += $(IPMIP6MN_ROOT)/src $(IPMIP6MN_ROOT)/config
#############################################################################
# LIB
###########################################################################
IPLIBS += $(IPLIBROOT)/libipmip6mn.a
endif # LKM
ifeq ($(IPPORT),las)
#############################################################################
# BINARIES
###########################################################################
# Path to binaries
IPCMDDIR := $(IPOBJDIR)/bin
IPDAEMONDIR := $(IPOBJDIR)/sbin
# List of shell commands to build
IPMIP6MNCMDS = mn6
_IPIPMIP6MNCMDS = $(addprefix $(IPCMDDIR)/,$(IPMIP6MNCMDS))
# List of daemons to build
IPMIP6MND = mn6d
_IPMIP6MND = $(addprefix $(IPDAEMONDIR)/,$(IPMIP6MND))
bin: $(_IPIPMIP6MNCMDS) $(_IPMIP6MND)
$(IPOBJDIR)/ipmip6mn_cmd_mn6.o: $(IPMIP6MN_ROOT)/src/ipmip6mn_cmd_mn6.c
@$(IPECHO) "+++ Compiling IPMIP6MN shell command $<"
$(IPVERB)$(IPCC) -Dipmip6mn_cmd_mn6=ipcom_cmd_entry_point $(IPCFLAGS) -o $@ $<
$(IPOBJDIR)/ipmip6mn.o: $(IPMIP6MN_ROOT)/src/ipmip6mn.c
@$(IPECHO) "+++ Compiling IPMIP6MN daemon $<"
$(IPVERB)$(IPCC) -Dipmip6mn_proc=ipcom_daemon_entry_point $(IPCFLAGS) -o $@ $<
# Linking shell commands and daemons
$(IPCMDDIR)/mn6: $(IPOBJDIR)/ipmip6mn_cmd_mn6.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o
@$(IPECHO) "+++ Linking IPMIP6MN shell command $@"
$(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS)
$(IPDAEMONDIR)/mn6d: $(IPOBJDIR)/ipmip6mn.o $(IPOBJDIR)/ipcom_daemon_stub.o
@$(IPECHO) "+++ Linking IPMIP6MND daemon $@"
$(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS)
endif
endif # IPMIP6MN
###########################################################################
# END OF IPMIP6MN.MK
###########################################################################