177 lines
5.9 KiB
Makefile
177 lines
5.9 KiB
Makefile
#############################################################################
|
|
# IPIKE.MK
|
|
#
|
|
# Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipike.mk,v $ $Revision: 1.16.10.2 $
|
|
# $Source: /home/interpeak/CVSRoot/ipike/gmake/ipike.mk,v $
|
|
# $Author: svc-cmnet $ $Date: 2013-03-13 07:45:25 $
|
|
# $State: Exp $ $Locker: $
|
|
#
|
|
# INTERPEAK_COPYRIGHT_STRING
|
|
#
|
|
#############################################################################
|
|
|
|
ifeq ($(IPIKE_MK_INCLUDED),)
|
|
|
|
IPIKE_MK_INCLUDED := yes
|
|
|
|
ifneq ($(IPPORT),lkm)
|
|
|
|
#############################################################################
|
|
# PRODUCT
|
|
###########################################################################
|
|
|
|
IPPROD ?= ipike
|
|
|
|
|
|
#############################################################################
|
|
# DEFINE
|
|
###########################################################################
|
|
|
|
IPDEFINE += -DIPIKE
|
|
|
|
|
|
#############################################################################
|
|
# INCLUDE
|
|
###########################################################################
|
|
|
|
IPINCLUDE += -I$(IPIKE_ROOT)/config
|
|
IPINCLUDE += -I$(IPIKE_ROOT)/include
|
|
|
|
|
|
#############################################################################
|
|
# OBJECTS
|
|
###########################################################################
|
|
|
|
# Configuration
|
|
IPLIBOBJECTS_C += ipike_config.o
|
|
|
|
# Main
|
|
IPLIBOBJECTS += ipike.o
|
|
IPLIBOBJECTS += ipike2_exchange_child_sa.o
|
|
IPLIBOBJECTS += ipike2_exchange_info.o
|
|
IPLIBOBJECTS += ipike2_exchange_sa_init.o
|
|
IPLIBOBJECTS += ipike2_payload_authentication.o
|
|
IPLIBOBJECTS += ipike2_payload_configuration.o
|
|
IPLIBOBJECTS += ipike2_payload_delete.o
|
|
IPLIBOBJECTS += ipike2_payload_eap.o
|
|
IPLIBOBJECTS += ipike2_payload_encrypted.o
|
|
IPLIBOBJECTS += ipike2_payload_identification.o
|
|
IPLIBOBJECTS += ipike2_payload_key_exchange.o
|
|
IPLIBOBJECTS += ipike2_payload_notify.o
|
|
IPLIBOBJECTS += ipike2_payload_sa.o
|
|
IPLIBOBJECTS += ipike2_payload_traffic_selector.o
|
|
IPLIBOBJECTS += ipike_attributes.o
|
|
IPLIBOBJECTS += ipike_cmd.o
|
|
IPLIBOBJECTS += ipike_configuration.o
|
|
IPLIBOBJECTS += ipike_configuration_api.o
|
|
IPLIBOBJECTS += ipike_configuration_file.o
|
|
IPLIBOBJECTS += ipike_configuration_parse.o
|
|
IPLIBOBJECTS += ipike_crypto.o
|
|
IPLIBOBJECTS += ipike_dispatcher.o
|
|
IPLIBOBJECTS += ipike_doi.o
|
|
IPLIBOBJECTS += ipike_dynamic_ip.o
|
|
IPLIBOBJECTS += ipike_exchange_aggressive_mode.o
|
|
IPLIBOBJECTS += ipike_exchange_informational.o
|
|
IPLIBOBJECTS += ipike_exchange_main_mode.o
|
|
IPLIBOBJECTS += ipike_exchange_quick_mode.o
|
|
IPLIBOBJECTS += ipike_exchange_transaction_mode.o
|
|
IPLIBOBJECTS += ipike_ipsec.o
|
|
IPLIBOBJECTS += ipike_ipsec_attributes.o
|
|
IPLIBOBJECTS += ipike_ipsec_sadb.o
|
|
IPLIBOBJECTS += ipike_isakmp.o
|
|
IPLIBOBJECTS += ipike_map.o
|
|
IPLIBOBJECTS += ipike_payload.o
|
|
IPLIBOBJECTS += ipike_payload_certificate.o
|
|
IPLIBOBJECTS += ipike_payload_delete.o
|
|
IPLIBOBJECTS += ipike_payload_hash.o
|
|
IPLIBOBJECTS += ipike_payload_identification.o
|
|
IPLIBOBJECTS += ipike_payload_key_exchange.o
|
|
IPLIBOBJECTS += ipike_payload_nat.o
|
|
IPLIBOBJECTS += ipike_payload_nonce.o
|
|
IPLIBOBJECTS += ipike_payload_notification.o
|
|
IPLIBOBJECTS += ipike_payload_proposal.o
|
|
IPLIBOBJECTS += ipike_payload_sa.o
|
|
IPLIBOBJECTS += ipike_payload_sign.o
|
|
IPLIBOBJECTS += ipike_payload_transform.o
|
|
IPLIBOBJECTS += ipike_payload_vendor_id.o
|
|
IPLIBOBJECTS += ipike_pfkeyv2.o
|
|
IPLIBOBJECTS += ipike_policy.o
|
|
IPLIBOBJECTS += ipike_radius.o
|
|
IPLIBOBJECTS += ipike_sadb.o
|
|
IPLIBOBJECTS += ipike_util.o
|
|
IPLIBOBJECTS += ipike_pfkeyv2_linux.o
|
|
IPLIBOBJECTS += ipike_http_fetcher.o
|
|
IPLIBOBJECTS += ipike_channel.o
|
|
IPLIBOBJECTS += ipike_event_server.o
|
|
IPLIBOBJECTS += ipike_system.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 += $(IPIKE_ROOT)/src $(IPIKE_ROOT)/config
|
|
|
|
|
|
#############################################################################
|
|
# LIB
|
|
###########################################################################
|
|
|
|
IPLIBS += $(IPLIBROOT)/libipike.a
|
|
|
|
#############################################################################
|
|
# BINARIES
|
|
#############################################################################
|
|
|
|
ifeq ($(IPPORT),las)
|
|
# Path to binaries
|
|
IPCMDDIR := $(IPOBJDIR)/bin
|
|
IPDAEMONDIR := $(IPOBJDIR)/sbin
|
|
|
|
# List of shell commands to build
|
|
IPIKESHELLCMDS = ike
|
|
_IPIKESHELLCMDS = $(addprefix $(IPCMDDIR)/,$(IPIKESHELLCMDS))
|
|
|
|
# List of daemons to build
|
|
IPIKEDAEMONS = ipiked
|
|
_IPIKEDAEMONS = $(addprefix $(IPDAEMONDIR)/,$(IPIKEDAEMONS))
|
|
|
|
bin: $(_IPIKESHELLCMDS) $(_IPIKEDAEMONS)
|
|
|
|
$(IPOBJDIR)/ipike_cmd.o: $(IPIKE_ROOT)/src/ipike_cmd.c
|
|
@$(IPECHO) "+++ Compiling IPIKE shell command $<"
|
|
$(IPVERB)$(IPCC) -Dipike_cmd=ipcom_cmd_entry_point $(IPCFLAGS) -o $@ $<
|
|
|
|
$(IPOBJDIR)/ipike.o: $(IPIKE_ROOT)/src/ipike.c
|
|
@$(IPECHO) "+++ Compiling IPIKE daemon $<"
|
|
$(IPVERB)$(IPCC) -Dipike_proc=ipcom_daemon_entry_point -Dipike_create=ipcom_daemon_create $(IPCFLAGS) -o $@ $<
|
|
|
|
$(IPOBJDIR)/ipike_config.o: $(IPIKE_ROOT)/config/ipike_config.c
|
|
@$(IPECHO) "+++ Compiling IPIKE daemon $<"
|
|
$(IPVERB)$(IPCC) -Dipike_configure=ipcom_daemon_configure $(IPCFLAGS) -o $@ $<
|
|
|
|
# Linking shell commands and daemons
|
|
$(IPCMDDIR)/ike: $(IPOBJDIR)/ipike_cmd.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o
|
|
@$(IPECHO) "+++ Linking IPIKE shell command $@"
|
|
$(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS)
|
|
|
|
$(IPDAEMONDIR)/ipiked: $(IPOBJDIR)/ipike.o $(IPOBJDIR)/ipike_config.o $(IPOBJDIR)/ipcom_daemon_stub.o
|
|
@$(IPECHO) "+++ Linking IPIKE daemon $@"
|
|
$(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif #IPIKE_MK_INCLUDED
|
|
|
|
###########################################################################
|
|
# END OF IPIKE.MK
|
|
###########################################################################
|