home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / lib / librpc / Makefile < prev    next >
Encoding:
Makefile  |  1990-08-23  |  699 b   |  31 lines

  1. #
  2. # @(#)Makefile    2.1 88/08/11 4.0 RPCSRC
  3. #
  4. #   Build and install everything.
  5. #
  6. # These directories are presumed to exist in DESTDIR:
  7. #    /usr/lib /usr/bin /usr/include
  8. #
  9. DESTDIR=
  10. CFLAGS=-O
  11. MAKE=make
  12.  
  13. # These are not used by BSD except portmap which lives in
  14. # /usr/src/usr.sbin/portmap.
  15. # SUBDIR= rpcgen etc rpcsvc
  16.  
  17. all install:    rpclib ${SUBDIR}
  18.  
  19. rpclib:    FRC
  20.     @echo "Building and installing RPC library"
  21.     cd rpc; $(MAKE) ${MFLAGS} all DESTDIR=${DESTDIR}; \
  22.         $(MAKE) ${MFLAGS} install DESTDIR=${DESTDIR}
  23.  
  24. ${SUBDIR}:    FRC
  25.     @echo "Building and installing files from: $@"
  26.     cd $@; $(MAKE) ${MFLAGS} DESTDIR=${DESTDIR} CFLAGS=${CFLAGS};\
  27.         $(MAKE) ${MFLAGS} install DESTDIR=${DESTDIR}
  28.  
  29. FRC:
  30.  
  31.