home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2785 / Makefile < prev    next >
Encoding:
Makefile  |  1991-02-20  |  1.2 KB  |  58 lines

  1. # @(#)Makefile - makefile for rje print spool manager 02-07-91
  2. # Arthur W. Neilson III
  3. # art@bohtsg.pegasus.com
  4.  
  5. SHELL = /bin/sh
  6.  
  7. # your c compiler, gcc maybe ?
  8. CC = cc
  9.  
  10. # where shall we install ?
  11. BINDIR = /usr/local/bin
  12.  
  13. # directory routine library ?
  14. DIRLIB = #-ldir
  15.  
  16. # HASVOID  define this if your compiler understands the void type
  17. # SIGVOID  define this if your signal() returns void
  18. # LPR      define this if your print spooler is lpr 
  19. # SYSERR   define this if your errno.h doesn't declare sys_errlist
  20. DEFS = -DHASVOID -DSIGVOID -DSYSERR
  21.  
  22. CFLAGS = -O $(DEFS)
  23. LIBES  = -lcurses $(DIRLIB)
  24.  
  25. HFILES = main.h node.h
  26. CFILES = main.c node.c funcs.c mass.c tag.c support.c job.c
  27. OFILES = main.o node.o funcs.o mass.o tag.o support.o job.o
  28.  
  29. all: splmgr
  30.  
  31. splmgr: $(OFILES)
  32.     $(CC) $(CFLAGS) -o $@ $(OFILES) $(LIBES)
  33.     strip $@
  34.     mcs -d $@
  35.     chmod u+s $@
  36.  
  37.     rm -f splmgr *.o *.BAK tags MANIFEST Part* core
  38.  
  39.     @for f in $(CFILES); do \
  40.         echo "\tformatting $$f"; \
  41.         indent $$f; \
  42.     done
  43.  
  44.     ctags $(HFILES) $(CFILES)
  45.  
  46.     tar cvf splmgr.tar Makefile $(CFILES) $(HFILES)
  47.  
  48.     makekit -m
  49.  
  50. # dependency rules
  51. main.o:        main.c $(HFILES)
  52. node.o:        node.c $(HFILES)
  53. funcs.o:    funcs.c $(HFILES)
  54. mass.o:        mass.c $(HFILES)
  55. tag.o:        tag.c $(HFILES)
  56. support.o:    support.c $(HFILES)
  57. job.o:        job.c $(HFILES)
  58.