173 lines
5.0 KiB
Makefile
173 lines
5.0 KiB
Makefile
#############################################################################
|
|
# IPMIPFA.MK
|
|
#
|
|
# Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmipfa.mk,v $ $Revision: 1.17 $
|
|
# $Source: /home/interpeak/CVSRoot/ipmipfa/gmake/ipmipfa.mk,v $
|
|
# $Author: jhorteli $ $Date: 2009-04-23 14:32:14 $
|
|
# $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 ipmipfa_config.o only if $(SKIP_CONFIG) is either
|
|
# not defined or set to anything other than true.
|
|
#
|
|
|
|
ifeq ($(IPMIPFA),)
|
|
ifneq ($(IPCOM_USE_INET),no)
|
|
|
|
IPMIPFA := yes
|
|
|
|
#############################################################################
|
|
# PRODUCT
|
|
###########################################################################
|
|
|
|
IPPROD ?= ipmipfa
|
|
|
|
# Do we use the IPNET definitions.
|
|
IPMIPFA_IPNET = yes
|
|
# Routing socket?
|
|
IPMIPFA_RTSOCK = yes
|
|
|
|
#############################################################################
|
|
# DEFINE
|
|
###########################################################################
|
|
|
|
IPDEFINE += -DIPMIPFA
|
|
|
|
|
|
#############################################################################
|
|
# INCLUDE
|
|
###########################################################################
|
|
|
|
IPINCLUDE += -I$(IPMIPFA_ROOT)/config
|
|
IPINCLUDE += -I$(IPMIPFA_ROOT)/include
|
|
IPINCLUDE += -I$(IPMIPFA_ROOT)/src
|
|
|
|
|
|
#############################################################################
|
|
# OBJECTS
|
|
###########################################################################
|
|
|
|
ifneq ($(IPPORT),lkm)
|
|
|
|
# If las, don't include the entry point files.
|
|
ifneq ($(IPPORT),las)
|
|
|
|
# Main
|
|
IPLIBOBJECTS += ipmipfa.o
|
|
IPLIBOBJECTS += ipmipfa_cmd_fa.o
|
|
|
|
endif # LAS
|
|
|
|
# Configuration
|
|
IPLIBOBJECTS_C += ipmipfa_config.o
|
|
|
|
# Lib
|
|
IPLIBOBJECTS += ipmipfa_agent.o
|
|
IPLIBOBJECTS += ipmipfa_cli.o
|
|
IPLIBOBJECTS += ipmipfa_if.o
|
|
IPLIBOBJECTS += ipmipfa_route.o
|
|
IPLIBOBJECTS += ipmipfa_llh.o
|
|
IPLIBOBJECTS += ipmipfa_node.o
|
|
IPLIBOBJECTS += ipmipfa_reg.o
|
|
#IPLIBOBJECTS += ipmipfa_diameter.o
|
|
IPLIBOBJECTS += ipmipfa_attr.o
|
|
IPLIBOBJECTS += ipmipfa_main.o
|
|
|
|
#IPLIBOBJECTS += ipmipfa_setup.o
|
|
IPLIBOBJECTS += ipmipfa_pktbuf.o
|
|
#IPLIBOBJECTS += ipmipfa_node_ext.o
|
|
#IPLIBOBJECTS += ipmipfa_radius.o
|
|
#IPLIBOBJECTS += ipmipfa_wimax.o
|
|
IPLIBOBJECTS += ipmipfa_regext_test.o
|
|
IPLIBOBJECTS += ipmipfa_aaa_radius.o
|
|
IPLIBOBJECTS += ipmipfa_aaa_diameter.o
|
|
IPLIBOBJECTS += ipmipfa_pmipv4.o
|
|
IPLIBOBJECTS += ipmipfa_pmipv4_dhcp.o
|
|
|
|
# SNMP
|
|
ifneq ($(WIND_IPNET),true)
|
|
IPLIBOBJECTS += ipmipfa_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 += $(IPMIPFA_ROOT)/src
|
|
IPSRCDIRS += $(IPMIPFA_ROOT)/config
|
|
|
|
|
|
#############################################################################
|
|
# LIB
|
|
###########################################################################
|
|
|
|
IPLIBS += $(IPLIBROOT)/libipmipfa.a
|
|
|
|
|
|
#############################################################################
|
|
# BINARIES
|
|
###########################################################################
|
|
|
|
|
|
ifeq ($(IPPORT),las)
|
|
|
|
# Path to binaries
|
|
IPCMDDIR := $(IPOBJDIR)/bin
|
|
IPDAEMONDIR := $(IPOBJDIR)/sbin
|
|
|
|
# List of shell commands to build
|
|
IPMIPFACMDS = fa
|
|
_IPIPMIPFACMDS = $(addprefix $(IPCMDDIR)/,$(IPMIPFACMDS))
|
|
|
|
# List of daemons to build
|
|
IPMIPFAD = fad
|
|
_IPMIPFAD = $(addprefix $(IPDAEMONDIR)/,$(IPMIPFAD))
|
|
|
|
bin: $(_IPIPMIPFACMDS) $(_IPMIPFAD)
|
|
|
|
$(IPOBJDIR)/ipmipfa_cmd_fa.o: $(IPMIPFA_ROOT)/src/ipmipfa_cmd_fa.c
|
|
@$(IPECHO) "+++ Compiling IPMIPFA shell command $<"
|
|
$(IPVERB)$(IPCC) -Dipmipfa_cmd_fa=ipcom_cmd_entry_point $(IPCFLAGS) -o $@ $<
|
|
|
|
$(IPOBJDIR)/ipmipfa.o: $(IPMIPFA_ROOT)/src/ipmipfa.c
|
|
@$(IPECHO) "+++ Compiling IPMIPFA daemon $<"
|
|
$(IPVERB)$(IPCC) -Dipmipfa_proc=ipcom_daemon_entry_point $(IPCFLAGS) -o $@ $<
|
|
|
|
# Linking shell commands and daemons
|
|
$(IPCMDDIR)/fa: $(IPOBJDIR)/ipmipfa_cmd_fa.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o
|
|
@$(IPECHO) "+++ Linking IPMIPFA shell command $@"
|
|
$(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS)
|
|
|
|
$(IPDAEMONDIR)/fad: $(IPOBJDIR)/ipmipfa.o $(IPOBJDIR)/ipcom_daemon_stub.o
|
|
@$(IPECHO) "+++ Linking IPMIPFAD daemon $@"
|
|
$(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS)
|
|
|
|
endif # LAS
|
|
|
|
endif # LKM
|
|
|
|
endif # IPCOM_USE_INET
|
|
endif # IPMIPFA
|
|
|
|
###########################################################################
|
|
# END OF IPMIPFA.MK
|
|
###########################################################################
|