source: trunk/athena/bin/cxref/Imakefile @ 6954

Revision 6954, 1.7 KB checked in by probe, 31 years ago (diff)
Initial revision
  • Property svn:executable set to *
Line 
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
16SCANOBJS= docxref.o cscan.o
17SCANSRCS= docxref.c cscan.l
18
19INCLS= constdefs.h basename.c
20SRCS=  $(SCANSRCS) fmtxref.c cxrfilt.c cxref.c
21DOCS=  README makefile cxref.1
22
23PRINTS= $(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.
28CONFDIR=$(ATHBINDIR)
29LIB= /usr/athena/lib/cxref
30
31# may be /bin/sort on some systems
32SORT=/usr/bin/sort
33
34# printer program, prt is for me, use pr on other systems
35P=pr
36
37SimpleProgram(docxref,$(SCANOBJS),-ll,$(LIB))
38SimpleProgram(fmtxref,fmtxref.c,,$(LIB))
39SimpleProgram(cxrfilt,cxrfilt.c,,$(LIB))
40
41cscan.o docxref.o cxrfilt.o: $(INCLS)
42
43SimpleProgram(cxref,cxref.o,,$(ATHBINDIR))
44SpecialObject(cxref.o,cxref.c,-DSRCDIR='"$(LIB)"' -DSORT='"$(SORT)"')
45
46print:
47        $(P) $(PRINTS) | lpr -b 'Cxref Source'
48        touch print2
49
50print2: $(PRINTS)
51        $(P) $? | lpr -b 'Cxref New Source'
52        touch print2
53
54create_dir($(LIB))
55install_man(cxref.1,cxref.1)
56
57clean::
58        $(RM) $(PROGS) print2
59
60
61#if 0
62depend:
63        touch Make.depend; makedepend -fMake.depend ${CFLAGS} ${SRCS}
64#endif
65
66docxref.o: docxref.c basename.c
67cscan.o: cscan.l constdefs.h
68fmtxref.o: fmtxref.c basename.c
69cxrfilt.o: cxrfilt.c constdefs.h basename.c
70cxref.o: cxref.c
71cxref.o: basename.c
72
Note: See TracBrowser for help on using the repository browser.