36
37 include ../../Makefile.lib
38
39 ROOTDIRS= $(ROOT)/usr/include
40
41 ROOTHDRS= $(HDRS:%=$(ROOTDIRS)/%)
42
43 CHECKHDRS= $(HDRS:%.h=%.check)
44
45 LIBS = $(DYNLIB) $(LINTLIB)
46 LDLIBS += -lc -lnsl -lkstat
47
48 SRCDIR = ../common
49 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
50
51 CFLAGS += $(CCVERBOSE)
52 CPPFLAGS += -D_REENTRANT -I$(SRC)/lib/libfsmgt/common \
53 -I$(SRC)/cmd/fs.d/nfs/lib
54
55 CERRWARN += -_gcc=-Wno-parentheses
56 CERRWARN += -_gcc=-Wno-uninitialized
57
58 # not linted
59 SMATCH=off
60
61 CLOBBERFILES += $(SRCDIR)/nfs_sec.c
62 CLOBBERFILES += $(SRCDIR)/replica.c
63 CLOBBERFILES += $(SRCDIR)/sharetab.c
64
65 .KEEP_STATE:
66
67 all: $(LIBS)
68
69 lint: lintcheck
70
71 $(SRCDIR)/sharetab.c: $(NFSLIB_DIR)/sharetab.c
72 rm -f $(SRCDIR)/sharetab.c
73 $(CP) -p $(NFSLIB_DIR)/sharetab.c $(SRCDIR)
74
75 $(SRCDIR)/nfs_sec.c: $(NFSLIB_DIR)/nfs_sec.c
76 rm -f $(SRCDIR)/nfs_sec.c
|
36
37 include ../../Makefile.lib
38
39 ROOTDIRS= $(ROOT)/usr/include
40
41 ROOTHDRS= $(HDRS:%=$(ROOTDIRS)/%)
42
43 CHECKHDRS= $(HDRS:%.h=%.check)
44
45 LIBS = $(DYNLIB) $(LINTLIB)
46 LDLIBS += -lc -lnsl -lkstat
47
48 SRCDIR = ../common
49 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
50
51 CFLAGS += $(CCVERBOSE)
52 CPPFLAGS += -D_REENTRANT -I$(SRC)/lib/libfsmgt/common \
53 -I$(SRC)/cmd/fs.d/nfs/lib
54
55 CERRWARN += -_gcc=-Wno-parentheses
56 CERRWARN += $(CNOWARN_UNINIT)
57
58 # not linted
59 SMATCH=off
60
61 CLOBBERFILES += $(SRCDIR)/nfs_sec.c
62 CLOBBERFILES += $(SRCDIR)/replica.c
63 CLOBBERFILES += $(SRCDIR)/sharetab.c
64
65 .KEEP_STATE:
66
67 all: $(LIBS)
68
69 lint: lintcheck
70
71 $(SRCDIR)/sharetab.c: $(NFSLIB_DIR)/sharetab.c
72 rm -f $(SRCDIR)/sharetab.c
73 $(CP) -p $(NFSLIB_DIR)/sharetab.c $(SRCDIR)
74
75 $(SRCDIR)/nfs_sec.c: $(NFSLIB_DIR)/nfs_sec.c
76 rm -f $(SRCDIR)/nfs_sec.c
|