29 LIBOBJS = libshare.o libsharecore.o scfutil.o libshare_zfs.o \
30 plugin.o parser.o issubdir.o
31 OTHOBJS = sharetab.o nfs_sec.o
32 OBJECTS = $(LIBOBJS) $(OTHOBJS)
33
34 include ../../Makefile.lib
35 SRCDIR = ../common
36
37 LIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c)
38 # we don't want to lint the sharetab and nfs_sec files
39 lintcheck := SRCS = $(LIBSRCS)
40
41 LIBS = $(DYNLIB) $(LINTLIB)
42 LDLIBS += -lc -lnsl -lscf -lzfs -luuid -lxml2 -lnvpair
43 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
44
45 #add nfs/lib directory as part of the include path
46 CFLAGS += $(CCVERBOSE)
47 CSTD += $(CSTD_GNU99)
48 CERRWARN += -_gcc=-Wno-parentheses
49 CERRWARN += -_gcc=-Wno-uninitialized
50 CERRWARN += -_gcc=-Wno-switch
51
52 # not linted
53 SMATCH=off
54
55 CPPFLAGS += -D_REENTRANT -I$(NFSLIB_DIR) \
56 -I$(ADJUNCT_PROTO)/usr/include/libxml2
57
58 .KEEP_STATE:
59
60 all: $(LIBS)
61
62 lint: lintcheck
63
64 pics/%.o: $(NFSLIB_DIR)/%.c
65 $(COMPILE.c) -o $@ $<
66 $(POST_PROCESS_O)
67
68 include ../../Makefile.targ
|
29 LIBOBJS = libshare.o libsharecore.o scfutil.o libshare_zfs.o \
30 plugin.o parser.o issubdir.o
31 OTHOBJS = sharetab.o nfs_sec.o
32 OBJECTS = $(LIBOBJS) $(OTHOBJS)
33
34 include ../../Makefile.lib
35 SRCDIR = ../common
36
37 LIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c)
38 # we don't want to lint the sharetab and nfs_sec files
39 lintcheck := SRCS = $(LIBSRCS)
40
41 LIBS = $(DYNLIB) $(LINTLIB)
42 LDLIBS += -lc -lnsl -lscf -lzfs -luuid -lxml2 -lnvpair
43 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
44
45 #add nfs/lib directory as part of the include path
46 CFLAGS += $(CCVERBOSE)
47 CSTD += $(CSTD_GNU99)
48 CERRWARN += -_gcc=-Wno-parentheses
49 CERRWARN += $(CNOWARN_UNINIT)
50 CERRWARN += -_gcc=-Wno-switch
51
52 # not linted
53 SMATCH=off
54
55 CPPFLAGS += -D_REENTRANT -I$(NFSLIB_DIR) \
56 -I$(ADJUNCT_PROTO)/usr/include/libxml2
57
58 .KEEP_STATE:
59
60 all: $(LIBS)
61
62 lint: lintcheck
63
64 pics/%.o: $(NFSLIB_DIR)/%.c
65 $(COMPILE.c) -o $@ $<
66 $(POST_PROCESS_O)
67
68 include ../../Makefile.targ
|