Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized


  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)


  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 +=     $(CNOWARN_UNINIT)
  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)