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 #
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26 PROG= listen nlps_server
27
28 DBGOBJ = doprnt.o
29 DBGSRC = doprnt.c
30
31 LSOBJS = listen.o lslog.o lsdbf.o lsdata.o nstoa.o nlsaddr.o
32
33 NLPSOBJS = nlps_serv.o lsdbf.o lssmb.o nstoa.o lslog.o lsdata.o
34
35 OBJS= $(LSOBJS) $(NLPSOBJS)
36 LSSRC= $(LSOBJS:%.o=%.c)
37 NLPSSRC= $(NLPSOBJS:%.o=%.c)
38 SRCS= $(LSSRC) $(NLPSSRC)
39
40 include ../Makefile.cmd
41
42 LIBSAFD = $(ROOTLIB)/saf
43 NETD = $(ROOT)/usr/net
44 NETNLSD = $(NETD)/nls
45
46 # Don"t re-install /usr/lib/saf/ and /usr/net, Targetdirs installs them
47 #DIRS= $(LIBSAFD) $(NETD) $(NETNLSD)
48 DIRS= $(NETNLSD)
49 ROOTSAFPROG= $(PROG:%=$(LIBSAFD)/%)
50
51 # If machine name and /etc/issue file need to be printed
52 # before the service prompt is printed, then: CPPFLAGS += -DSYS_NAME
53 # If debug is needed, then: CPPFLAGS += -DDEBUG
54
55 LDLIBS += -lnsl
56 LDFLAGS += $(MAPFILE.NGB:%=-M%)
57 LINTFLAGS = -b -x
58 FILEMODE= 0755
59
60 CERRWARN += -_gcc=-Wno-implicit-function-declaration
61 CERRWARN += -_gcc=-Wno-unused-variable
62 CERRWARN += -_gcc=-Wno-empty-body
63 CERRWARN += -_gcc=-Wno-parentheses
64 CERRWARN += -_gcc=-Wno-uninitialized
65
66 $(LIBSAFD)/% : %
67 $(INS.file)
68
69 .KEEP_STATE:
70
71 all: $(PROG)
72
73 listen: $(LSOBJS) $(MAPFILE.NGB)
74 $(LINK.c) $(LSOBJS) -o $@ $(LDLIBS)
75 $(POST_PROCESS)
76
77 nlps_server: $(NLPSOBJS) $(MAPFILE.NGB)
78 $(LINK.c) $(NLPSOBJS) -o $@ $(LDLIBS)
79 $(POST_PROCESS)
80
81 install: all $(DIRS) $(ROOTSAFPROG)
82 $(RM) $(ROOT)/usr/net/nls/listen
83 -$(SYMLINK) ../../lib/saf/listen $(ROOT)/usr/net/nls/listen
84 $(RM) $(ROOT)/usr/net/nls/nlps_server
85 -$(SYMLINK) ../../lib/saf/nlps_server $(ROOT)/usr/net/nls/nlps_server
|
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 #
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26 # Copyright (c) 2018, Joyent, Inc.
27
28 PROG= listen nlps_server
29
30 DBGOBJ = doprnt.o
31 DBGSRC = doprnt.c
32
33 LSOBJS = listen.o lslog.o lsdbf.o lsdata.o nstoa.o nlsaddr.o
34
35 NLPSOBJS = nlps_serv.o lsdbf.o lssmb.o nstoa.o lslog.o lsdata.o
36
37 OBJS= $(LSOBJS) $(NLPSOBJS)
38 LSSRC= $(LSOBJS:%.o=%.c)
39 NLPSSRC= $(NLPSOBJS:%.o=%.c)
40 SRCS= $(LSSRC) $(NLPSSRC)
41
42 include ../Makefile.cmd
43
44 LIBSAFD = $(ROOTLIB)/saf
45 NETD = $(ROOT)/usr/net
46 NETNLSD = $(NETD)/nls
47
48 # Don"t re-install /usr/lib/saf/ and /usr/net, Targetdirs installs them
49 #DIRS= $(LIBSAFD) $(NETD) $(NETNLSD)
50 DIRS= $(NETNLSD)
51 ROOTSAFPROG= $(PROG:%=$(LIBSAFD)/%)
52
53 # If machine name and /etc/issue file need to be printed
54 # before the service prompt is printed, then: CPPFLAGS += -DSYS_NAME
55 # If debug is needed, then: CPPFLAGS += -DDEBUG
56
57 LDLIBS += -lnsl
58 LDFLAGS += $(MAPFILE.NGB:%=-M%)
59 LINTFLAGS = -b -x
60 FILEMODE= 0755
61
62 CERRWARN += -_gcc=-Wno-implicit-function-declaration
63 CERRWARN += -_gcc=-Wno-unused-variable
64 CERRWARN += -_gcc=-Wno-empty-body
65 CERRWARN += -_gcc=-Wno-parentheses
66 CERRWARN += -_gcc=-Wno-uninitialized
67
68 # not linted
69 SMATCH=off
70
71 $(LIBSAFD)/% : %
72 $(INS.file)
73
74 .KEEP_STATE:
75
76 all: $(PROG)
77
78 listen: $(LSOBJS) $(MAPFILE.NGB)
79 $(LINK.c) $(LSOBJS) -o $@ $(LDLIBS)
80 $(POST_PROCESS)
81
82 nlps_server: $(NLPSOBJS) $(MAPFILE.NGB)
83 $(LINK.c) $(NLPSOBJS) -o $@ $(LDLIBS)
84 $(POST_PROCESS)
85
86 install: all $(DIRS) $(ROOTSAFPROG)
87 $(RM) $(ROOT)/usr/net/nls/listen
88 -$(SYMLINK) ../../lib/saf/listen $(ROOT)/usr/net/nls/listen
89 $(RM) $(ROOT)/usr/net/nls/nlps_server
90 -$(SYMLINK) ../../lib/saf/nlps_server $(ROOT)/usr/net/nls/nlps_server
|