1 | # makefile for cxref -- C cross referencing program |
---|
2 | # |
---|
3 | # Arnold Robbins, Information and Computer Science, Georgia Tech |
---|
4 | # gatech!arnold |
---|
5 | # Copyright (c) 1985 by Arnold Robbins. |
---|
6 | # All rights reserved. |
---|
7 | # This program may not be sold, but may be distributed |
---|
8 | # provided this header is included. |
---|
9 | |
---|
10 | # some files are system dependant, e.g. where sort is. |
---|
11 | # change the appropriate macro definitions and recompile. |
---|
12 | |
---|
13 | |
---|
14 | ### definitions of files to compile and load, and other targets for make |
---|
15 | |
---|
16 | SCANOBJS= docxref.o cscan.o |
---|
17 | SCANSRCS= docxref.c cscan.l |
---|
18 | |
---|
19 | INCLS= constdefs.h basename.c |
---|
20 | SRCS= $(SCANSRCS) fmtxref.c cxrfilt.c cxref.c |
---|
21 | DOCS= README makefile cxref.1 |
---|
22 | |
---|
23 | PRINTS= $(INCLS) $(SRCS) $(DOCS) |
---|
24 | |
---|
25 | ### system dependant definitions, change when you install cxref |
---|
26 | |
---|
27 | # for my use during development, put in my bin, but see next few lines. |
---|
28 | CONFDIR=$(ATHBINDIR) |
---|
29 | LIB= /usr/athena/lib/cxref |
---|
30 | |
---|
31 | # may be /bin/sort on some systems |
---|
32 | SORT=/usr/bin/sort |
---|
33 | |
---|
34 | # printer program, prt is for me, use pr on other systems |
---|
35 | P=pr |
---|
36 | |
---|
37 | SimpleProgram(docxref,$(SCANOBJS),-ll,$(LIB)) |
---|
38 | SimpleProgram(fmtxref,fmtxref.c,,$(LIB)) |
---|
39 | SimpleProgram(cxrfilt,cxrfilt.c,,$(LIB)) |
---|
40 | |
---|
41 | cscan.o docxref.o cxrfilt.o: $(INCLS) |
---|
42 | |
---|
43 | SimpleProgram(cxref,cxref.o,,$(ATHBINDIR)) |
---|
44 | SpecialObject(cxref.o,cxref.c,-DSRCDIR='"$(LIB)"' -DSORT='"$(SORT)"') |
---|
45 | |
---|
46 | print: |
---|
47 | $(P) $(PRINTS) | lpr -b 'Cxref Source' |
---|
48 | touch print2 |
---|
49 | |
---|
50 | print2: $(PRINTS) |
---|
51 | $(P) $? | lpr -b 'Cxref New Source' |
---|
52 | touch print2 |
---|
53 | |
---|
54 | create_dir($(LIB)) |
---|
55 | install_man(cxref.1,cxref.1) |
---|
56 | |
---|
57 | clean:: |
---|
58 | $(RM) $(PROGS) print2 |
---|
59 | |
---|
60 | |
---|
61 | #if 0 |
---|
62 | depend: |
---|
63 | touch Make.depend; makedepend -fMake.depend ${CFLAGS} ${SRCS} |
---|
64 | #endif |
---|
65 | |
---|
66 | docxref.o: docxref.c basename.c |
---|
67 | cscan.o: cscan.l constdefs.h |
---|
68 | fmtxref.o: fmtxref.c basename.c |
---|
69 | cxrfilt.o: cxrfilt.c constdefs.h basename.c |
---|
70 | cxref.o: cxref.c |
---|
71 | cxref.o: basename.c |
---|
72 | |
---|