home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume15 / tpscript / part01 / opscript / Makefile next >
Encoding:
Makefile  |  1988-05-25  |  933 b   |  33 lines

  1. # SYS should be one of AUSAM, BSD, SYSV, V7
  2. # This is only really important if VERBOSE (below) is 1.
  3. SYS=BSD
  4. # VERBOSE should be 1 to generate postscript code to echo stuff
  5. # back down the communication line. Otherwise 0.
  6. VERBOSE=1
  7. CFLAGS = -O -DALW -DALWPLUS -D$(SYS) -DVERBOSE=$(VERBOSE)
  8. INSTALL = :
  9. BINDIR=/bin
  10. I=/usr/include
  11. #I=/srce/include
  12.  
  13. all: lpscript ipscript
  14.  
  15.  
  16. lpscript: $(BINDIR)/lpscript
  17. $(BINDIR)/lpscript: lpscript.c $I/stdio.h $I/strings.h pcom.c pscript.h
  18.     $(CC) $(CFLAGS) -o lpscript lpscript.c pcom.c
  19.     $(INSTALL) - lpscript bin 711 $(BINDIR)/lpscript
  20.  
  21. ipscript: $(BINDIR)/ipscript
  22. $(BINDIR)/ipscript: ipscript.c $I/stdio.h pcom.c pscript.h
  23.     $(CC) $(CFLAGS) -o ipscript ipscript.c pcom.c
  24.     $(INSTALL) - ipscript bin 711 $(BINDIR)/ipscript
  25.  
  26. lint:    lint.ipscript lint.lpscript
  27.  
  28. lint.ipscript:
  29.     lint -DALW -D$(SYS) ipscript.c pcom.c > ipscript.lint
  30.  
  31. lint.lpscript:
  32.     lint -DALW -D$(SYS) lpscript.c pcom.c > lpscript.lint
  33.