6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright 2013 Nexenta Systems, Inc. All rights reserved.
26 # Copyright (c) 2012, Joyent Inc. All rights reserved.
27 #
28
29 PROG= ipf ipfs ipmon ipnat ippool ipfstat
30 IPFPROG= ipftest
31
32 IPF_OBJS= ipf.o ipfcomp.o ipfzone.o ipf_y.o ipf_l.o
33 IPFS_OBJS= ipfs.o ipfzone.o
34 IPFSTAT_OBJS= ipfstat.o ipfzone.o
35 IPMON_OBJS= ipmon.o ipfzone.o ipmon_y.o ipmon_l.o
36 IPNAT_OBJS= ipnat.o ipfzone.o ipnat_y.o ipnat_l.o
37 IPPOOL_OBJS= ippool.o ipfzone.o ippool_y.o ippool_l.o
38 IPFTEST_OBJS= ipftest.o ipfzone.o \
39 ip_fil.o ip_state.o ip_compat.o \
40 ip_frag.o ip_nat.o ip_nat6.o fil.o \
41 ip_htable.o ip_lookup.o \
42 ip_proxy.o ip_auth.o ip_log.o \
43 ipf_y.o ipf_l.o \
44 ipnat_y.o ipnat_l.o \
45 ippool_y.o ippool_l.o \
46 ip_pool.o radix.o
47
48 OBJS= $(IPF_OBJS) $(IPFS_OBJS) $(IPFSTAT_OBJS) \
49 $(IPMON_OBJS) $(IPNAT_OBJS) $(IPPOOL_OBJS) $(IPFTEST_OBJS)
50
51 OBJSL= $(IPF_OBJS) $(IPFS_OBJS) $(IPFSTAT_OBJS) \
52 $(IPMON_OBJS) $(IPNAT_OBJS)
53
54 SRCS= $(OBJSL:%.o=../%.c)
55
56 include ../../../Makefile.cmd
57 include ../../Makefile.ipf
58
59 LDLIBS += $(LIBBPF)
60 LDFLAGS += $(MAPFILE.NGB:%=-M%)
61
62 CPPFLAGS += -I. -DIPFILTER_LOOKUP -DIPFILTER_LOG
63
64 ipfstat.o := CPPFLAGS += -DSTATETOP
65 ipfstat := LDLIBS += -lcurses
66
67 ipf := LDLIBS += -lsocket -lnsl
68 ipftest := LDLIBS += -lsocket -lnsl -lmd
69 ipfstat := LDLIBS += -lsocket -lnsl -lkvm -lelf
70 ipmon := LDLIBS += -lsocket -lnsl
71 ipnat := LDLIBS += -lsocket -lnsl -lkvm -lelf
72 ippool := LDLIBS += -lsocket -lnsl -lkvm -lelf
73
74 CLEANFILES += $(OBJS)
75 CLOBBERFILES += $(IPFPROG)
76
77 ROOTIPF= $(ROOTLIB)/ipf
78 ROOTIPF32= $(ROOTIPF)/$(MACH32)
79 ROOTIPF64= $(ROOTIPF)/$(MACH64)
|
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright 2013 Nexenta Systems, Inc. All rights reserved.
26 # Copyright 2019 Joyent, Inc.
27 #
28
29 PROG= ipf ipfs ipmon ipnat ippool ipfstat
30 IPFPROG= ipftest
31
32 IPF_OBJS= ipf.o ipfcomp.o ipfzone.o ipf_y.o ipf_l.o
33 IPFS_OBJS= ipfs.o ipfzone.o
34 IPFSTAT_OBJS= ipfstat.o ipfzone.o
35 IPMON_OBJS= ipmon.o ipfzone.o ipmon_y.o ipmon_l.o
36 IPNAT_OBJS= ipnat.o ipfzone.o ipnat_y.o ipnat_l.o
37 IPPOOL_OBJS= ippool.o ipfzone.o ippool_y.o ippool_l.o
38 IPFTEST_OBJS= cfw.o ipftest.o ipfzone.o \
39 ip_fil.o ip_state.o ip_compat.o \
40 ip_frag.o ip_nat.o ip_nat6.o fil.o \
41 ip_htable.o ip_lookup.o \
42 ip_proxy.o ip_auth.o ip_log.o \
43 ipf_y.o ipf_l.o \
44 ipnat_y.o ipnat_l.o \
45 ippool_y.o ippool_l.o \
46 ip_pool.o radix.o
47
48 OBJS= $(IPF_OBJS) $(IPFS_OBJS) $(IPFSTAT_OBJS) \
49 $(IPMON_OBJS) $(IPNAT_OBJS) $(IPPOOL_OBJS) $(IPFTEST_OBJS)
50
51 OBJSL= $(IPF_OBJS) $(IPFS_OBJS) $(IPFSTAT_OBJS) \
52 $(IPMON_OBJS) $(IPNAT_OBJS)
53
54 SRCS= $(OBJSL:%.o=../%.c)
55
56 include ../../../Makefile.cmd
57 include ../../Makefile.ipf
58
59 LDLIBS += $(LIBBPF) -luuid
60 LDFLAGS += $(MAPFILE.NGB:%=-M%)
61
62 CPPFLAGS += -I. -DIPFILTER_LOOKUP -DIPFILTER_LOG
63
64 ipfstat.o := CPPFLAGS += -DSTATETOP
65 ipfstat := LDLIBS += -lcurses
66
67 ipf := LDLIBS += -lsocket -lnsl
68 ipftest := LDLIBS += -lsocket -lnsl -lmd
69 ipfstat := LDLIBS += -lsocket -lnsl -lkvm -lelf
70 ipmon := LDLIBS += -lsocket -lnsl
71 ipnat := LDLIBS += -lsocket -lnsl -lkvm -lelf
72 ippool := LDLIBS += -lsocket -lnsl -lkvm -lelf
73
74 CLEANFILES += $(OBJS)
75 CLOBBERFILES += $(IPFPROG)
76
77 ROOTIPF= $(ROOTLIB)/ipf
78 ROOTIPF32= $(ROOTIPF)/$(MACH32)
79 ROOTIPF64= $(ROOTIPF)/$(MACH64)
|