5 # Common Development and Distribution License (the "License").
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
26 FSTYPE = nfs
27 TYPEPROG = nfsmapid
28 TESTPROG = nfsmapid_test
29 ATTMK = $(TYPEPROG)
30
31 include ../../Makefile.fstype
32
33 LDLIBS += -L$(ROOT)/usr/lib/nfs -R/usr/lib/nfs
34 LDLIBS += -lnsl -lmapid -ldtrace -lidmap
35 COMMON = nfs_resolve.o
36 SRCS = nfsmapid.c ../lib/nfs_resolve.c nfsmapid_server.c
37 DSRC = nfsmapid_dt.d
38 DOBJ = $(DSRC:%.d=%.o)
39 OBJS = nfsmapid.o nfsmapid_server.o $(COMMON)
40 CPPFLAGS += -I../lib -D_POSIX_PTHREAD_SEMANTICS
41
42 CERRWARN += -_gcc=-Wno-implicit-function-declaration
43 CERRWARN += -_gcc=-Wno-unused-variable
44 CERRWARN += -_gcc=-Wno-parentheses
45 CERRWARN += -_gcc=-Wno-uninitialized
46
47 all: $(TYPEPROG) $(TESTPROG)
48
49 $(TYPEPROG): $(OBJS) $(DSRC)
50 $(COMPILE.d) -s $(DSRC) -o $(DOBJ) $(OBJS)
51 $(LINK.c) $(ZIGNORE) -o $@ $(DOBJ) $(OBJS) $(LDLIBS)
52 $(POST_PROCESS)
53
54 nfs_resolve.o: ../lib/nfs_resolve.c
55 $(COMPILE.c) ../lib/nfs_resolve.c
56
57 TESTSRCS = nfsmapid_test.c
58 TESTOBJS = $(TESTSRCS:%.c=%.o)
59 TEST_OBJS = $(TESTOBJS)
60
61 $(TESTPROG): $(TEST_OBJS)
62 $(LINK.c) -o $@ $(TEST_OBJS) $(LDLIBS)
63 $(POST_PROCESS)
64
65 POFILE = nfsmapid.po
66 catalog: $(POFILE)
|
5 # Common Development and Distribution License (the "License").
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 (c) 2018, Joyent, Inc.
26
27
28 FSTYPE = nfs
29 TYPEPROG = nfsmapid
30 TESTPROG = nfsmapid_test
31 ATTMK = $(TYPEPROG)
32
33 include ../../Makefile.fstype
34
35 LDLIBS += -L$(ROOT)/usr/lib/nfs -R/usr/lib/nfs
36 LDLIBS += -lnsl -lmapid -ldtrace -lidmap
37 COMMON = nfs_resolve.o
38 SRCS = nfsmapid.c ../lib/nfs_resolve.c nfsmapid_server.c
39 DSRC = nfsmapid_dt.d
40 DOBJ = $(DSRC:%.d=%.o)
41 OBJS = nfsmapid.o nfsmapid_server.o $(COMMON)
42 CPPFLAGS += -I../lib -D_POSIX_PTHREAD_SEMANTICS
43
44 CERRWARN += -_gcc=-Wno-implicit-function-declaration
45 CERRWARN += -_gcc=-Wno-unused-variable
46 CERRWARN += -_gcc=-Wno-parentheses
47 CERRWARN += -_gcc=-Wno-uninitialized
48
49 # not linted
50 SMATCH=off
51
52 all: $(TYPEPROG) $(TESTPROG)
53
54 $(TYPEPROG): $(OBJS) $(DSRC)
55 $(COMPILE.d) -s $(DSRC) -o $(DOBJ) $(OBJS)
56 $(LINK.c) $(ZIGNORE) -o $@ $(DOBJ) $(OBJS) $(LDLIBS)
57 $(POST_PROCESS)
58
59 nfs_resolve.o: ../lib/nfs_resolve.c
60 $(COMPILE.c) ../lib/nfs_resolve.c
61
62 TESTSRCS = nfsmapid_test.c
63 TESTOBJS = $(TESTSRCS:%.c=%.o)
64 TEST_OBJS = $(TESTOBJS)
65
66 $(TESTPROG): $(TEST_OBJS)
67 $(LINK.c) -o $@ $(TEST_OBJS) $(LDLIBS)
68 $(POST_PROCESS)
69
70 POFILE = nfsmapid.po
71 catalog: $(POFILE)
|