Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build


  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


  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 COMMON    =     nfs_resolve.o
  35 SRCS      =     nfsmapid.c ../lib/nfs_resolve.c nfsmapid_server.c
  36 DSRC      =     nfsmapid_dt.d
  37 DOBJ      =     $(DSRC:%.d=%.o)
  38 OBJS      =     nfsmapid.o nfsmapid_server.o $(COMMON)
  39 CPPFLAGS +=     -I../lib -D_POSIX_PTHREAD_SEMANTICS
  40 
  41 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  42 CERRWARN +=     -_gcc=-Wno-unused-variable
  43 CERRWARN +=     -_gcc=-Wno-parentheses
  44 CERRWARN +=     -_gcc=-Wno-uninitialized
  45 
  46 $(TYPEPROG) := LDLIBS += -lnsl -lmapid -ldtrace -lidmap
  47 
  48 all:            $(TYPEPROG) $(TESTPROG)
  49 
  50 $(TYPEPROG):    $(OBJS) $(DSRC)
  51                 $(COMPILE.d) -s $(DSRC) -o $(DOBJ) $(OBJS)
  52                 $(LINK.c) $(ZIGNORE) -o $@ $(DOBJ) $(OBJS) $(LDLIBS)
  53                 $(POST_PROCESS)
  54 
  55 nfs_resolve.o:  ../lib/nfs_resolve.c
  56                 $(COMPILE.c) ../lib/nfs_resolve.c
  57 
  58 TESTSRCS  =     nfsmapid_test.c
  59 TESTOBJS  =     $(TESTSRCS:%.c=%.o)
  60 TEST_OBJS =     $(TESTOBJS)
  61 
  62 $(TESTPROG):    $(TEST_OBJS)
  63                 $(LINK.c) -o $@ $(TEST_OBJS) $(LDLIBS)
  64                 $(POST_PROCESS)
  65 
  66 POFILE    =     nfsmapid.po