home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / TELECOM / OS9_Unix.lzh / RSHSRC / Makefile < prev    next >
Makefile  |  1992-10-08  |  2KB  |  70 lines

  1. RDIR=    .
  2. ODIR=    /h0/local/cmds
  3. IDIR=    ../defs
  4. NLDIR=    /h0/isp/lib
  5. CFLAGS=    -k=2f -i -v=$(IDIR) -v=/h0/isp/defs
  6. LFLAGS=    -l=unet.l -l=$(NLDIR)/netdb.l -l=$(NLDIR)/socklib.l
  7.  
  8. #
  9. # Define the library contents. UOBJS are my modified versions of standard
  10. # stuff. BLAROBJS are straight from blarslib. NOBJS are the network routines 
  11. #
  12. UOBJS=    _open.r dup2.r getpw.r getppid.r isatty.r \
  13.     stat.r strerror.r utime.r
  14. BLARSOBJS=    bstring.r exec.r getopt.r \
  15.     mkdir.r strtok.r perror.r umask.r
  16. NOBJS=    tcpopen.r rcmd.r rresvport.r ruserok.r io.r g_hostname.r set_block.r 
  17.  
  18. #
  19. # For convenience group some of the utility files in macros
  20. #
  21. LPROBJS=    lpr.r printbsd.r seqno.r
  22. RSHDOBJS=    rshd.r doit.r
  23.  
  24. #
  25. # Do the business....
  26. #
  27. all:    unet.l lpr rsh rshd rshdc rcp rmt
  28.     @echo "Because the executables (other than rmt) have to do a setuid to";\
  29.     echo "become super-user you should make them to be owned by root (0.0)"
  30.  
  31. # remote line printer client
  32.  
  33. lpr:    $(LPROBJS) unet.l
  34.     cc $(CFLAGS) $(LPROBJS) $(LFLAGS) -f=$(ODIR)/lpr
  35.  
  36. printbsd.r: printbsd.c
  37.     cc $(CFLAGS) -v=$(IDIR) printbsd.c -r=$(RDIR)
  38.  
  39. #remote shell client
  40.  
  41. rsh:    rsh.r unet.l
  42.     cc $(CFLAGS) rsh.r $(LFLAGS) -f=$(ODIR)/rsh
  43.  
  44. rsh.r:    rsh.c
  45.     cc $(CFLAGS) -v=$(IDIR) rsh.c -r=$(RDIR)
  46.  
  47. #remote shell server
  48.  
  49. rshd:    $(RSHDOBJS) unet.l rshd.h
  50.     cc $(CFLAGS) $(RSHDOBJS) $(LFLAGS) -f=$(ODIR)/rshd
  51.  
  52. rshdc:    rshdc.r
  53.     cc $(CFLAGS) rshdc.r $(LFLAGS) -f=$(ODIR)/rshdc
  54.  
  55. #remote copy client/server
  56.  
  57. rcp:    rcp.r unet.l
  58.     cc $(CFLAGS) rcp.r $(LFLAGS) -f=$(ODIR)/rcp
  59.  
  60. #rmt remote tape server
  61.  
  62. rmt:    rmt.r
  63.     cc $(CFLAGS) rmt.r $(LFLAGS) -f=$(ODIR)/rmt
  64.  
  65. # support library
  66.  
  67. unet.l:    $(NOBJS) $(UOBJS) $(BLARSOBJS)
  68.     merge $(NOBJS) $(UOBJS) $(BLARSOBJS) >-unet.l
  69.  
  70.