diff options
Diffstat (limited to 'indexing/makeindex/src/makefile.kcc')
-rw-r--r-- | indexing/makeindex/src/makefile.kcc | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/indexing/makeindex/src/makefile.kcc b/indexing/makeindex/src/makefile.kcc new file mode 100644 index 0000000000..034e734a77 --- /dev/null +++ b/indexing/makeindex/src/makefile.kcc @@ -0,0 +1,123 @@ +# Makefile modified for DEC-20 (KCC-20 compiler) [13-Jan-88] (only major +# targets supported) +# +# Makefile for the program `makeindex' +# +# Copyright (C) 1987 Pehong Chen (phc@renoir.berkeley.edu) +# Computer Science Division +# University of California, Berkeley +# + +CC = kcc +O = .rel +X = .exe +INCLUDE = /usr/include/ +INCLUDE = c: + +DEST = /usr/local/bin +DEST = TEX: + +MANDIR = /usr/local/man/manl +MANDIR = NUL: + +MANUAL = makeindex.l + +DOC = makeindex.tex + +EXTHDRS = ${INCLUDE}ctype.h \ + ${INCLUDE}stdio.h + +HDRS = genind.h \ + mkind.h \ + scanid.h \ + scanst.h + +# The -Dshort=int is needed for KCC versions before 583 (13-Jan-88); +# that version or later works correctly if it is dropped +CFLAGS = -DOS_TOPS20 -DKCC_20 -DSHORTNAMES -Dshort=int + +LDFLAGS = $(CFLAGS) + +LIBS = + +LINKER = $(CC) + +MAKEFILE = Makefile + +OBJS = genind${O} \ + mkind${O} \ + qsort${O} \ + scanid${O} \ + scanst${O} \ + sortid${O} + +PRINT = psgrind + +SRCS = genind.c \ + mkind.c \ + qsort.c \ + scanid.c \ + scanst.c \ + sortid.c + +PROGRAM = makeindex + +TAR = $(PROGRAM).tar + +SHAR = $(PROGRAM).shar + +ALL = $(MAKEFILE) $(DOC) $(MANUAL) $(HDRS) $(SRCS) + +$(PROGRAM): $(PROGRAM)$(X) + +$(PROGRAM)$(X): $(OBJS) + $(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o makidx$(X) + reset + ${MV} makidx$(X) $(PROGRAM)$(X) + +install: $(PROGRAM) + install -c -s -m 0755 $(PROGRAM) $(DEST) + @ls -lgs $(DEST)/$(PROGRAM) + +tar:; @rm -f $(TAR) + tar -cf $(TAR) $(ALL) + +shar:; @rm -f $(SHAR) + shar $(SHAR) $(ALL) + +dist:; cp $(PROGRAM) $(DEST) + rcp $(PROGRAM) monet:$(DEST) + rcp $(PROGRAM) arpa:$(DEST) + rcp $(PROGRAM) harrison@vangogh:bin + +clean:; @rm -f $(OBJS) core $(PROGRAM) *${O}ut + +depend:; @rm -f .#*.[chly] + mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST) + +index:; @ctags -wx $(HDRS) $(SRCS) + +print:; @$(PRINT) $(HDRS) $(SRCS) + +man:; ptroff -man $(MANUAL) + +program: $(PROGRAM) + +tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS) + +update: $(DEST)/$(PROGRAM) + +$(DEST)/$(PROGRAM): $(SRCS) $(HDRS) $(EXTHDRS) + @make -f $(MAKEFILE) DEST=$(DEST) install + +# .DEFAULT:; co $@ +### +genind${O}: mkind.h ${INCLUDE}stdio.h ${INCLUDE}ctype.h \ + genind.h +mkind${O}: mkind.h ${INCLUDE}stdio.h ${INCLUDE}ctype.h +qsort${O}: mkind.h ${INCLUDE}stdio.h +scanid${O}: mkind.h ${INCLUDE}stdio.h ${INCLUDE}ctype.h \ + scanid.h +scanst${O}: mkind.h ${INCLUDE}stdio.h ${INCLUDE}ctype.h \ + scanst.h +sortid${O}: mkind.h ${INCLUDE}stdio.h ${INCLUDE}ctype.h |