Print this page
9704 move socket functions to libc


  45 ROOTLIBLPPROGS =        $(LIBLPPROGS:%=$(ROOTLIBLPBIN)/%)
  46 
  47 
  48 FILEMODE =      0555
  49 
  50 include ../../Makefile.cmd
  51 
  52 MANIFEST=       rfc1179.xml
  53 ROOTMANIFESTDIR=        $(ROOTSVCAPPLICATIONPRINT)
  54 $(ROOTMANIFEST)         := FILEMODE= 444
  55 
  56 LPLIB   =       $(SRC)/cmd/lp/lib
  57 LIBLP   =       $(LPLIB)/lp/liblp.a
  58 CFLAGS +=       $(CCVERBOSE)
  59 CPPFLAGS +=     -I.
  60 CPPFLAGS +=     -I../../../lib/print/libpapi-common/common
  61 CPPFLAGS +=     -I$(ROOT)/usr/include
  62 CPPFLAGS +=     -I../../lp/include
  63 LDLIBS +=       $(LIBLP) -lpapi -lc
  64 in.lpd:=        CFLAGS +=       -DSOLARIS_PRIVATE_POST_0_9
  65 in.lpd:=        LDLIBS +=       -lnsl -lsocket
  66 
  67 CERRWARN +=     -_gcc=-Wno-unused-variable
  68 CERRWARN +=     -_gcc=-Wno-uninitialized
  69 
  70 all:    $(BINPROGS) $(SBINPROGS)
  71 
  72 #       each program needs common.o as well
  73 $(BINPROGS) $(SBINPROGS) $(LIBPRINTPROGS):      $(BINPROGS:%=%.c) $(SBINPROGS:%=%.c)  $(LIBPRINTPROGS:%=%.c) common.o
  74         $(LINK.c) -o $@ $@.c common.o $(LDLIBS)
  75         $(POST_PROCESS)
  76 
  77 #       ucb links (lptest is handled in usr/src/cmd/lp/cmd/Makefile)
  78 ROOTUSRUCB =            $(ROOT)/usr/ucb
  79 ROOTUCBSYMLINKS =       $(UCBPROGS:%=$(ROOTUSRUCB)/%)
  80 $(ROOTUSRUCB)/%:        $(ROOTUSRUCB) %
  81 
  82 $(ROOTLIBLPBIN)/%:      %
  83         $(INS.file)
  84 
  85 $(ROOTUCBSYMLINKS):     




  45 ROOTLIBLPPROGS =        $(LIBLPPROGS:%=$(ROOTLIBLPBIN)/%)
  46 
  47 
  48 FILEMODE =      0555
  49 
  50 include ../../Makefile.cmd
  51 
  52 MANIFEST=       rfc1179.xml
  53 ROOTMANIFESTDIR=        $(ROOTSVCAPPLICATIONPRINT)
  54 $(ROOTMANIFEST)         := FILEMODE= 444
  55 
  56 LPLIB   =       $(SRC)/cmd/lp/lib
  57 LIBLP   =       $(LPLIB)/lp/liblp.a
  58 CFLAGS +=       $(CCVERBOSE)
  59 CPPFLAGS +=     -I.
  60 CPPFLAGS +=     -I../../../lib/print/libpapi-common/common
  61 CPPFLAGS +=     -I$(ROOT)/usr/include
  62 CPPFLAGS +=     -I../../lp/include
  63 LDLIBS +=       $(LIBLP) -lpapi -lc
  64 in.lpd:=        CFLAGS +=       -DSOLARIS_PRIVATE_POST_0_9
  65 in.lpd:=        LDLIBS +=       -lnsl
  66 
  67 CERRWARN +=     -_gcc=-Wno-unused-variable
  68 CERRWARN +=     -_gcc=-Wno-uninitialized
  69 
  70 all:    $(BINPROGS) $(SBINPROGS)
  71 
  72 #       each program needs common.o as well
  73 $(BINPROGS) $(SBINPROGS) $(LIBPRINTPROGS):      $(BINPROGS:%=%.c) $(SBINPROGS:%=%.c)  $(LIBPRINTPROGS:%=%.c) common.o
  74         $(LINK.c) -o $@ $@.c common.o $(LDLIBS)
  75         $(POST_PROCESS)
  76 
  77 #       ucb links (lptest is handled in usr/src/cmd/lp/cmd/Makefile)
  78 ROOTUSRUCB =            $(ROOT)/usr/ucb
  79 ROOTUCBSYMLINKS =       $(UCBPROGS:%=$(ROOTUSRUCB)/%)
  80 $(ROOTUSRUCB)/%:        $(ROOTUSRUCB) %
  81 
  82 $(ROOTLIBLPBIN)/%:      %
  83         $(INS.file)
  84 
  85 $(ROOTUCBSYMLINKS):