121 lines
3.8 KiB
Makefile
121 lines
3.8 KiB
Makefile
# /*
|
|
# * Copyright 2007 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
|
|
# --------------------
|
|
# 01g,03dec08,tlu Add file for Diameter EAP
|
|
# 01f,06dec07,tlu Add Diameter proxy commands to Linux shell command build
|
|
# 01e,12nov07,ggz Renamed ipdiameter_cmd_diameter.o to ipdiameter_cmd_diameterp.o
|
|
# 01d,12nov07,ggz Renamed ipdiameter_agent.o to ipdiameter_pagent.o
|
|
# 01c,10oct07,tlu Port to Linux
|
|
# 01b,09aug07,tlu Add file for TLS support
|
|
# 01a,03apr07,tlu Initial creation
|
|
# */
|
|
|
|
|
|
#############################################################################
|
|
# PRODUCT
|
|
###########################################################################
|
|
|
|
IPPROD ?= ipdiameter
|
|
|
|
|
|
#############################################################################
|
|
# DEFINE
|
|
###########################################################################
|
|
|
|
IPDEFINE += -DIPDIAMETER
|
|
|
|
|
|
#############################################################################
|
|
# INCLUDE
|
|
###########################################################################
|
|
|
|
IPINCLUDE += -I$(IPDIAMETER_ROOT)/config
|
|
IPINCLUDE += -I$(IPDIAMETER_ROOT)/include
|
|
IPINCLUDE += -I$(IPDIAMETER_ROOT)/src
|
|
|
|
|
|
#############################################################################
|
|
# OBJECTS
|
|
###########################################################################
|
|
|
|
# Configuration
|
|
IPLIBOBJECTS_C += ipdiameterc_config.o
|
|
IPLIBOBJECTS_C += ipdiameterp_config.o
|
|
|
|
# Main
|
|
IPLIBOBJECTS += ipdiameter.o
|
|
IPLIBOBJECTS += ipdiameter_client.o
|
|
IPLIBOBJECTS += ipdiameter_client_auth_session_fsm.o
|
|
IPLIBOBJECTS += ipdiameter_peer_fsm.o
|
|
IPLIBOBJECTS += ipdiameter_peer_mgnt.o
|
|
IPLIBOBJECTS += ipdiameter_rx.o
|
|
IPLIBOBJECTS += ipdiameter_session_mgnt.o
|
|
IPLIBOBJECTS += ipdiameter_tx.o
|
|
IPLIBOBJECTS += ipdiameter_util.o
|
|
IPLIBOBJECTS += ipdiameter_tls.o
|
|
IPLIBOBJECTS += ipdiameter_cmd_diameterc.o
|
|
IPLIBOBJECTS += ipdiameter_pagent.o
|
|
IPLIBOBJECTS += ipdiameter_cmd_diameterp.o
|
|
IPLIBOBJECTS += ipdiameter_routing.o
|
|
IPLIBOBJECTS += ipdiameter_eap.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 += $(IPDIAMETER_ROOT)/src $(IPDIAMETER_ROOT)/config
|
|
|
|
|
|
#############################################################################
|
|
# LIB
|
|
###########################################################################
|
|
|
|
IPLIBS += $(IPLIBROOT)/libipdiameter.a
|
|
|
|
|
|
#############################################################################
|
|
# BINARIES
|
|
#############################################################################
|
|
|
|
ifeq ($(IPPORT),las)
|
|
# Path to binaries
|
|
IPCMDDIR := $(IPOBJDIR)/bin
|
|
|
|
# List of shell commands to build
|
|
IPDIAMETERCSHELLCMDS = diameterc diameterp
|
|
_IPDIAMETERCSHELLCMDS = $(addprefix $(IPCMDDIR)/,$(IPDIAMETERCSHELLCMDS))
|
|
|
|
bin: $(_IPDIAMETERCSHELLCMDS)
|
|
|
|
$(IPOBJDIR)/ipdiameter_cmd_%.o: $(IPDIAMETER_ROOT)/src/ipdiameter_cmd_%.c
|
|
@$(IPECHO) "+++ Compiling IPDIAMETER shell command $<"
|
|
$(IPVERB)$(IPCC) -Dipdiameter_cmd_$*=ipcom_cmd_entry_point $(IPCFLAGS) -o $@ $<
|
|
|
|
|
|
$(IPCMDDIR)/%: $(IPOBJDIR)/ipdiameter_cmd_%.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o
|
|
@$(IPECHO) "+++ Linking IPDIAMETER shell command $@"
|
|
$(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS)
|
|
|
|
endif
|
|
|
|
|
|
###########################################################################
|
|
# END OF IPDIAMETER.MK
|
|
###########################################################################
|