125 lines
3.6 KiB
Makefile
125 lines
3.6 KiB
Makefile
#############################################################################
|
|
# IPSCTP.MK
|
|
#
|
|
# Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipsctp.mk,v $ $Revision: 1.8 $
|
|
# $Source: /home/interpeak/CVSRoot/ipsctp/gmake/ipsctp.mk,v $
|
|
# $Author: ulf $ $Date: 2010-09-09 08:55:33 $
|
|
# $State: Exp $ $Locker: $
|
|
#
|
|
# INTERPEAK_COPYRIGHT_STRING
|
|
#
|
|
#############################################################################
|
|
|
|
ifeq ($(IPSCTP_MK_INCLUDED),)
|
|
|
|
IPSCTP_MK_INCLUDED := yes
|
|
|
|
#############################################################################
|
|
# PRODUCT
|
|
###########################################################################
|
|
|
|
IPPROD ?= ipsctp
|
|
|
|
|
|
#############################################################################
|
|
# DEFINE
|
|
###########################################################################
|
|
|
|
IPDEFINE += -DIPSCTP
|
|
|
|
# SCTP test tool
|
|
ifneq ($(IP_LKSCTP_TOOL),)
|
|
IPDEFINE += -DIP_LKSCTP_TOOL
|
|
endif
|
|
#############################################################################
|
|
# INCLUDE
|
|
###########################################################################
|
|
|
|
IPINCLUDE += -I$(IPSCTP_ROOT)/config
|
|
IPINCLUDE += -I$(IPSCTP_ROOT)/include
|
|
IPINCLUDE += -I$(IPSCTP_ROOT)/src
|
|
|
|
|
|
#############################################################################
|
|
# OBJECTS
|
|
###########################################################################
|
|
|
|
# Configuration
|
|
IPLIBOBJECTS_C += ipsctp_config.o
|
|
|
|
# Main
|
|
#IPLIBOBJECTS += ipsctp_config.o
|
|
IPLIBOBJECTS += ipsctp_crc.o
|
|
IPLIBOBJECTS += ipsctp.o
|
|
IPLIBOBJECTS += ipsctp_ip4.o
|
|
IPLIBOBJECTS += ipsctp_ip6.o
|
|
IPLIBOBJECTS += ipsctp_input.o
|
|
IPLIBOBJECTS += ipsctp_output.o
|
|
IPLIBOBJECTS += ipsctp_sock.o
|
|
IPLIBOBJECTS += ipsctp_usr_sock.o
|
|
IPLIBOBJECTS += ipsctp_debug.o
|
|
IPLIBOBJECTS += ipsctp_mib.o
|
|
IPLIBOBJECTS += ipsctp_hash.o
|
|
|
|
# SNMP
|
|
ifneq ($(WIND_IPNET),true)
|
|
#IPLIBOBJECTS += ipsctp_ipv6_sctp_mib.o
|
|
#IPLIBOBJECTS += ipsctp_sctp_mib.o
|
|
endif
|
|
|
|
# SCTP test tool
|
|
ifneq ($(IP_LKSCTP_TOOL),)
|
|
-include ip_lksctp_tool.mk
|
|
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 += $(IPSCTP_ROOT)/src $(IPSCTP_ROOT)/config
|
|
|
|
|
|
#############################################################################
|
|
# LIB
|
|
###########################################################################
|
|
|
|
IPLIBS += $(IPLIBROOT)/libipsctp.a
|
|
|
|
#############################################################################
|
|
# LIB for user-space
|
|
#############################################################################
|
|
|
|
ifeq ($(IPPORT),las)
|
|
# Path to lib
|
|
IPSCTPUSERLIBDIR := $(IPOBJDIR)/export/lib
|
|
IPSCTPUSERINCDIR := $(IPOBJDIR)/export/include
|
|
|
|
# List of libs to build
|
|
IPSCTPUSERLIBS = libsctpsock.a
|
|
_IPSCTPUSERLIBS = $(addprefix $(IPSCTPUSERLIBDIR)/,$(IPSCTPUSERLIBS))
|
|
|
|
bin: $(_IPSCTPUSERLIBS)
|
|
|
|
$(IPOBJDIR)/sctp_sockLib.o: $(IPSCTP_ROOT)/src/sctp_sockLib.c
|
|
@$(IPECHO) "+++ Compiling IPSCTP devel lib $<"
|
|
$(IPVERB)$(IPCC) $(IPCFLAGS) -o $@ $<
|
|
|
|
$(IPSCTPUSERLIBDIR)/libsctpsock.a: $(IPOBJDIR)/sctp_sockLib.o
|
|
@$(IPECHO) "+++ Archiving IPSCTP devel lib $@"
|
|
$(IPVERB)$(IPAR) -rc $(IPSCTPUSERLIBDIR)/libsctpsock.a $(IPOBJDIR)/sctp_sockLib.o
|
|
$(IPVERB)$(IPCP) $(IPSCTP_ROOT)/include/sctp_socket.h $(IPSCTPUSERINCDIR)/sctp_sock.h
|
|
endif
|
|
|
|
endif # IPSCTP_MK_INCLUDED
|
|
|
|
###########################################################################
|
|
# END OF IPSCTP.MK
|
|
###########################################################################
|