1 #
2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
4 #
5 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
6 #
7
8 PROG= safe_finger tcpd tcpdchk tcpdmatch try-from
9
10 include ../Makefile.cmd
11
12 CFLAGS += $(CCVERBOSE)
13 CPPFLAGS += $(ACCESS) $(PARANOID) $(NETGROUP) $(TLI) \
14 $(UMASK) $(STYLE) $(TABLES) $(KILL_OPT) $(BUGS) \
15 -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
16 -DFACILITY=$(FACILITY) -DSEVERITY=$(SEVERITY) \
17 -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \
18 -I../../lib/libwrap
19 tcpd tcpdmatch try-from := \
20 LDLIBS += -lwrap
21 tcpdchk := LDLIBS += -lwrap -lnsl
22
23 CERRWARN += -erroff=E_FUNC_HAS_NO_RETURN_STMT
24 CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
25 CERRWARN += -_gcc=-Wno-unused-variable
26 CERRWARN += -_gcc=-Wno-parentheses
27 CERRWARN += -_gcc=-Wno-uninitialized
28 CERRWARN += -_gcc=-Wno-implicit-function-declaration
29 CERRWARN += -_gcc=-Wno-return-type
30 CERRWARN += -_gcc=-Wno-clobbered
31
32 # Various components must export interfaces, but also contain name-space
33 # clashes with system libraries.
34 MAPFILE.INT.D= $(MAPFILE.NGB) mapfile-intf-tcpdchk
35 MAPFILE.INT.M= $(MAPFILE.NGB) mapfile-intf-tcpdmatch
36 MAPFILE.INT.F= $(MAPFILE.NGB) mapfile-intf-tryfrom
37
38 tcpdchk := LDFLAGS +=$(MAPFILE.INT.D:%=-M%)
39 tcpdmatch := LDFLAGS +=$(MAPFILE.INT.M:%=-M%)
40 try-from := LDFLAGS +=$(MAPFILE.INT.F:%=-M%)
41
42 .KEEP_STATE:
43
44 all: $(PROG)
45
46 install: all $(ROOTUSRSBINPROG)
47
48 clean:
49 $(RM) *.o
50
51 lint: lint_PROG
|
1 #
2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
4 #
5 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
6 #
7 # Copyright (c) 2018, Joyent, Inc.
8
9 PROG= safe_finger tcpd tcpdchk tcpdmatch try-from
10
11 include ../Makefile.cmd
12
13 CFLAGS += $(CCVERBOSE)
14 CPPFLAGS += $(ACCESS) $(PARANOID) $(NETGROUP) $(TLI) \
15 $(UMASK) $(STYLE) $(TABLES) $(KILL_OPT) $(BUGS) \
16 -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
17 -DFACILITY=$(FACILITY) -DSEVERITY=$(SEVERITY) \
18 -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \
19 -I../../lib/libwrap
20 tcpd tcpdmatch try-from := \
21 LDLIBS += -lwrap
22 tcpdchk := LDLIBS += -lwrap -lnsl
23
24 CERRWARN += -erroff=E_FUNC_HAS_NO_RETURN_STMT
25 CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
26 CERRWARN += -_gcc=-Wno-unused-variable
27 CERRWARN += -_gcc=-Wno-parentheses
28 CERRWARN += -_gcc=-Wno-uninitialized
29 CERRWARN += -_gcc=-Wno-implicit-function-declaration
30 CERRWARN += -_gcc=-Wno-return-type
31 CERRWARN += -_gcc=-Wno-clobbered
32
33 # not linted
34 SMATCH=off
35
36 # Various components must export interfaces, but also contain name-space
37 # clashes with system libraries.
38 MAPFILE.INT.D= $(MAPFILE.NGB) mapfile-intf-tcpdchk
39 MAPFILE.INT.M= $(MAPFILE.NGB) mapfile-intf-tcpdmatch
40 MAPFILE.INT.F= $(MAPFILE.NGB) mapfile-intf-tryfrom
41
42 tcpdchk := LDFLAGS +=$(MAPFILE.INT.D:%=-M%)
43 tcpdmatch := LDFLAGS +=$(MAPFILE.INT.M:%=-M%)
44 try-from := LDFLAGS +=$(MAPFILE.INT.F:%=-M%)
45
46 .KEEP_STATE:
47
48 all: $(PROG)
49
50 install: all $(ROOTUSRSBINPROG)
51
52 clean:
53 $(RM) *.o
54
55 lint: lint_PROG
|