############################################################################# # IPCAVIUM.MK # # Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipcavium.mk,v $ $Revision: 1.8 $ # $Source: /home/interpeak/CVSRoot/ipcavium/gmake/ipcavium.mk,v $ # $Author: ulf $ $Date: 2009-06-08 11:03:34 $ # $State: Exp $ $Locker: $ # # INTERPEAK_COPYRIGHT_STRING # ############################################################################# ############################################################################# # PRODUCT ########################################################################### IPPROD ?= ipcavium ############################################################################# # DEFINE ########################################################################### IPDEFINE += -DIPCAVIUM ############################################################################# # IPLIBDEFINE ########################################################################### ############################################################################# # INCLUDE ########################################################################### IPINCLUDE += -I$(IPCAVIUM_ROOT)/config IPINCLUDE += -I$(IPCAVIUM_ROOT)/include IPLIBINCLUDE += -I$(IPCAVIUM_ROOT)/src IPLIBINCLUDE += -I$(IPIPSEC_ROOT)/src ############################################################################# # OBJECTS ########################################################################### # Configuration #IPLIBOBJECTS_C += ipcavium_config.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 # Interpeak Cavium hardware crypto #IPLIBOBJECTS += ipcavium.o IPLIBOBJECTS += ipcavium_ipsec.o ifeq ($(IPPORT),lkm) IPLIBOBJECTS += ipcavium_crypto_api.o endif ifeq ($(IPPORT),vxworks) ifneq ($(IPCOMPILER),diab) ifneq ($(OCTEON_ROOT),) IPLIBOBJECTS += ipcavium_crypto_api.o IPLIBCFLAGS += -march=octeon endif endif endif ifneq ($(IPPORT),las) #IPLIBOBJECTS += ipcavium_cmd_cavium.o endif ############################################################################# # VPATH ########################################################################### IPSRCDIRS += $(IPCAVIUM_ROOT)/src $(IPCAVIUM_ROOT)/config ############################################################################# # LIB ########################################################################### IPLIBS += $(IPLIBROOT)/libipcavium.a ############################################################################# # BINARIES ############################################################################# ifeq ($(IPPORT),lasx) # Path to binaries IPCMDDIR := $(IPOBJDIR)/bin # List of shell commands to build IPCAVIUMSHELLCMDS = cavium _IPCAVIUMSHELLCMDS = $(addprefix $(IPCMDDIR)/,$(IPCAVIUMSHELLCMDS)) bin: $(_IPCAVIUMSHELLCMDS) $(IPOBJDIR)/ipcavium_cmd_%.o: $(IPCAVIUM_ROOT)/src/ipcavium_cmd_%.c @$(IPECHO) "+++ Compiling IPCAVIUM shell command $<" $(IPVERB)$(IPCC) -Dipcavium_cmd_$*=ipcom_cmd_entry_point $(IPCFLAGS) -I$(IPIPSEC_ROOT)/src -o $@ $< $(IPCMDDIR)/cavium: $(IPOBJDIR)/ipcavium_cmd_cavium.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o @$(IPECHO) "+++ Linking IPCAVIUM shell command $@" $(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS) endif ########################################################################### # END OF IPCAVIUM.MK ###########################################################################