Files
m241Neelima/components/ip_net2-6.9/ipmipha/gmake/ipmipha.mk
T
2026-07-30 11:19:44 +05:30

161 lines
4.7 KiB
Makefile

#############################################################################
# IPMIPHA.MK
#
# Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmipha.mk,v $ $Revision: 1.19 $
# $Source: /home/interpeak/CVSRoot/ipmipha/gmake/ipmipha.mk,v $
# $Author: jhorteli $ $Date: 2010-10-26 03:28:56 $
# $State: Exp $ $Locker: $
#
# Copyright 2000-2006 Interpeak AB (http://www.interpeak.se). All rights reserved.
#
#############################################################################
#
# Copyright (c) 2006 Wind River Systems, Inc.
#
# The right to copy, distribute, modify or otherwise make use
# of this software may be licensed only pursuant to the terms
# of an applicable Wind River license agreement.
#
# modification history
# --------------------
# 01a,31aug06,kch Build ipmipha_config.o only if $(SKIP_CONFIG) is either
# not defined or set to anything other than true.
#
ifeq ($(IPMIPHA),)
ifneq ($(IPCOM_USE_INET),no)
IPMIPHA := yes
#############################################################################
# PRODUCT
###########################################################################
IPPROD ?= ipmipha
#############################################################################
# DEFINE
###########################################################################
IPDEFINE += -DIPMIPHA
#############################################################################
# INCLUDE
###########################################################################
IPINCLUDE += -I$(IPMIPHA_ROOT)/config
IPINCLUDE += -I$(IPMIPHA_ROOT)/src
IPINCLUDE += -I$(IPMIPHA_ROOT)/include
#############################################################################
# OBJECTS
###########################################################################
ifneq ($(IPPORT),lkm)
# If las, don't include the entry point files.
ifneq ($(IPPORT),las)
# Configuration
# Main
IPLIBOBJECTS += ipmipha.o
IPLIBOBJECTS += ipmipha_cmd_ha.o
endif # LAS
IPLIBOBJECTS += ipmipha_main.o
IPLIBOBJECTS += ipmipha_cli.o
IPLIBOBJECTS += ipmipha_attr.o
IPLIBOBJECTS += ipmipha_pktbuf.o
IPLIBOBJECTS += ipmipha_if.o
IPLIBOBJECTS += ipmipha_reg.o
IPLIBOBJECTS += ipmipha_node.o
IPLIBOBJECTS += ipmipha_route.o
IPLIBOBJECTS += ipmipha_agent.o
IPLIBOBJECTS += ipmipha_aaa_radius.o
IPLIBOBJECTS += ipmipha_aaa_diameter.o
IPLIBOBJECTS += ipmipha_regext_test.o
IPLIBOBJECTS += ipmipha_regext_dhaa.o
IPLIBOBJECTS += ipmipha_regext_hoa.o
#IPLIBOBJECTS += ipmipha_regext_mobnet.o
IPLIBOBJECTS_C += ipmipha_config.o
# SNMP
ifneq ($(WIND_IPNET),true)
IPLIBOBJECTS += ipmipha_mip_mib.o
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 += $(IPMIPHA_ROOT)/src $(IPMIPHA_ROOT)/config
#############################################################################
# LIB
###########################################################################
IPLIBS += $(IPLIBROOT)/libipmipha.a
#############################################################################
# BINARIES
###########################################################################
ifeq ($(IPPORT),las)
# Path to binaries
IPCMDDIR := $(IPOBJDIR)/bin
IPDAEMONDIR := $(IPOBJDIR)/sbin
# List of shell commands to build
IPMIPHACMDS = ha
_IPIPMIPHACMDS = $(addprefix $(IPCMDDIR)/,$(IPMIPHACMDS))
# List of daemons to build
IPMIPHAD = had
_IPMIPHAD = $(addprefix $(IPDAEMONDIR)/,$(IPMIPHAD))
bin: $(_IPIPMIPHACMDS) $(_IPMIPHAD)
$(IPOBJDIR)/ipmipha_cmd_ha.o: $(IPMIPHA_ROOT)/src/ipmipha_cmd_ha.c
@$(IPECHO) "+++ Compiling IPMIPHA shell command $<"
$(IPVERB)$(IPCC) -Dipmipha_cmd_ha=ipcom_cmd_entry_point $(IPCFLAGS) -o $@ $<
$(IPOBJDIR)/ipmipha.o: $(IPMIPHA_ROOT)/src/ipmipha.c
@$(IPECHO) "+++ Compiling IPMIPHA daemon $<"
$(IPVERB)$(IPCC) -Dipmipha_proc=ipcom_daemon_entry_point $(IPCFLAGS) -o $@ $<
# Linking shell commands and daemons
$(IPCMDDIR)/ha: $(IPOBJDIR)/ipmipha_cmd_ha.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o
@$(IPECHO) "+++ Linking IPMIPHA shell command $@"
$(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS)
$(IPDAEMONDIR)/had: $(IPOBJDIR)/ipmipha.o $(IPOBJDIR)/ipcom_daemon_stub.o
@$(IPECHO) "+++ Linking IPMIPHAD daemon $@"
$(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS)
endif # LAS
endif # LKM
endif # IPCOM_USE_INET
endif # IPMIPHA
###########################################################################
# END OF IPMIPHA.MK
###########################################################################