home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-02-20 | 1.2 KB | 58 lines |
- # @(#)Makefile - makefile for rje print spool manager 02-07-91
- # Arthur W. Neilson III
- # art@bohtsg.pegasus.com
-
- SHELL = /bin/sh
-
- # your c compiler, gcc maybe ?
- CC = cc
-
- # where shall we install ?
- BINDIR = /usr/local/bin
-
- # directory routine library ?
- DIRLIB = #-ldir
-
- # HASVOID define this if your compiler understands the void type
- # SIGVOID define this if your signal() returns void
- # LPR define this if your print spooler is lpr
- # SYSERR define this if your errno.h doesn't declare sys_errlist
- DEFS = -DHASVOID -DSIGVOID -DSYSERR
-
- CFLAGS = -O $(DEFS)
- LIBES = -lcurses $(DIRLIB)
-
- HFILES = main.h node.h
- CFILES = main.c node.c funcs.c mass.c tag.c support.c job.c
- OFILES = main.o node.o funcs.o mass.o tag.o support.o job.o
-
- all: splmgr
-
- splmgr: $(OFILES)
- $(CC) $(CFLAGS) -o $@ $(OFILES) $(LIBES)
- strip $@
- mcs -d $@
- chmod u+s $@
-
- rm -f splmgr *.o *.BAK tags MANIFEST Part* core
-
- @for f in $(CFILES); do \
- echo "\tformatting $$f"; \
- indent $$f; \
- done
-
- ctags $(HFILES) $(CFILES)
-
- tar cvf splmgr.tar Makefile $(CFILES) $(HFILES)
-
- makekit -m
-
- # dependency rules
- main.o: main.c $(HFILES)
- node.o: node.c $(HFILES)
- funcs.o: funcs.c $(HFILES)
- mass.o: mass.c $(HFILES)
- tag.o: tag.c $(HFILES)
- support.o: support.c $(HFILES)
- job.o: job.c $(HFILES)
-