original files of m241
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
IPTARGETS := lib
|
||||
ifneq ($(IPMAKEFILE),)
|
||||
include $(IPMAKEFILE)
|
||||
else
|
||||
include $(IPCOM_ROOT)/Makefile
|
||||
endif
|
||||
include ipfirewall.mk
|
||||
include $(IPCOM_ROOT)/gmake/ipcom_make.mk
|
||||
|
||||
lib: dirs $(IPLIBFILE)
|
||||
@@ -0,0 +1,107 @@
|
||||
#############################################################################
|
||||
# IPFIREWALL.MK
|
||||
#
|
||||
# Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipfirewall.mk,v $ $Revision: 1.15 $
|
||||
# $Source: /home/interpeak/CVSRoot/ipfirewall/gmake/ipfirewall.mk,v $
|
||||
# $Author: ulf $ $Date: 2009-06-08 11:05:04 $
|
||||
# $State: Exp $ $Locker: $
|
||||
#
|
||||
# INTERPEAK_COPYRIGHT_STRING
|
||||
#
|
||||
#############################################################################
|
||||
|
||||
ifeq ($(IPFIREWALL_MK_INCLUDED),)
|
||||
|
||||
IPFIREWALL_MK_INCLUDED := yes
|
||||
|
||||
|
||||
#############################################################################
|
||||
# PRODUCT
|
||||
###########################################################################
|
||||
|
||||
IPPROD ?= ipfirewall
|
||||
|
||||
|
||||
#############################################################################
|
||||
# DEFINE
|
||||
###########################################################################
|
||||
|
||||
IPDEFINE += -DIPFIREWALL
|
||||
|
||||
|
||||
#############################################################################
|
||||
# INCLUDE
|
||||
###########################################################################
|
||||
|
||||
IPINCLUDE += -I$(IPFIREWALL_ROOT)/config
|
||||
IPINCLUDE += -I$(IPFIREWALL_ROOT)/include
|
||||
IPINCLUDE += -I$(IPFIREWALL_ROOT)/src
|
||||
|
||||
|
||||
#############################################################################
|
||||
# OBJECTS
|
||||
###########################################################################
|
||||
|
||||
# Configuration
|
||||
IPLIBOBJECTS_C += ipfirewall_config.o
|
||||
|
||||
# Interpeak FIREWALL
|
||||
ifneq ($(IPPORT),las)
|
||||
IPLIBOBJECTS += ipfirewall.o
|
||||
IPLIBOBJECTS += ipfirewall_ip.o
|
||||
IPLIBOBJECTS += ipfirewall_mac.o
|
||||
IPLIBOBJECTS += ipfirewall_userdef_example.o
|
||||
IPLIBOBJECTS += ipfirewall_userdef_http.o
|
||||
endif
|
||||
ifneq ($(IPPORT),lkm)
|
||||
IPLIBOBJECTS += ipfirewall_cmd_ipfirewall.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 += $(IPFIREWALL_ROOT)/src $(IPFIREWALL_ROOT)/config
|
||||
|
||||
|
||||
#############################################################################
|
||||
# LIB
|
||||
###########################################################################
|
||||
|
||||
IPLIBS += $(IPLIBROOT)/libipfirewall.a
|
||||
|
||||
#############################################################################
|
||||
# BINARIES
|
||||
#############################################################################
|
||||
|
||||
ifeq ($(IPPORT),las)
|
||||
# Path to binaries
|
||||
IPCMDDIR := $(IPOBJDIR)/bin
|
||||
|
||||
# List of shell commands to build
|
||||
IPFIREWALLSHELLCMDS = ipf
|
||||
_IPFIREWALLSHELLCMDS = $(addprefix $(IPCMDDIR)/,$(IPFIREWALLSHELLCMDS))
|
||||
|
||||
bin: $(_IPFIREWALLSHELLCMDS)
|
||||
|
||||
$(IPOBJDIR)/ipfirewall_cmd_%.o: $(IPFIREWALL_ROOT)/src/ipfirewall_cmd_%.c
|
||||
@$(IPECHO) "+++ Compiling IPFIREWALL shell command $<"
|
||||
$(IPVERB)$(IPCC) -Dipfirewall_cmd_$*=ipcom_cmd_entry_point $(IPCFLAGS) -o $@ $<
|
||||
|
||||
$(IPCMDDIR)/ipf: $(IPOBJDIR)/ipfirewall_cmd_ipfirewall.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o
|
||||
@$(IPECHO) "+++ Linking IPFIREWALL shell command $@"
|
||||
$(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS)
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
###########################################################################
|
||||
# END OF IPFIREWALL.MK
|
||||
###########################################################################
|
||||
Reference in New Issue
Block a user