summaryrefslogtreecommitdiff
path: root/indexing/makeindex/src/makefile.tcc
blob: 7ad0c12c9188d3645c2c0421e5271679f1e77781 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#  Makefile modified for IBM PC DOS (Turbo C 2.0) [11-Dec-89] (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 = tcc
O = .obj
X = .exe
INCLUDE = /usr/include
INCLUDE = c:/sys/tc/include

DEST	      = /usr/local/bin
DEST	      = c:/usr/bin

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

XCFLAGS=

LDFLAGS	      = -A -N -ml -v -y $(XCFLAGS)

CFLAGS	      = -DOS_PCDOS=1 -DIBM_PC_TURBO=1 $(LDFLAGS)

LIBS	      =

LINKER	      = link

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	      = makeindx

TAR	      = $(PROGRAM).tar

SHAR	      = $(PROGRAM).shar

ALL	      = $(MAKEFILE) $(DOC) $(MANUAL) $(HDRS) $(SRCS)

# Default stack is too small--increase
STACKSIZE=8000

LINKFLAGS=/MAP/LINE/ST:$(STACKSIZE)

# Rules...

.SUFFIXES:
.SUFFIXES:	.obj .c .sym .map

.c.obj:
		$(CC) -c $(CFLAGS) $*.c
#		$(CC) -c $(CFLAGS) $*.c >$*.clg
#		errshow <$*.clg >$*.cer
#		del $*.clg

.map.sym:
		mapsym $*
		del $*.map

RM = del

$(PROGRAM):	$(PROGRAM)$(X)

$(PROGRAM)$(X):	$(OBJS)
#		@rm -f $(PROGRAM)
		$(CC) $(LDFLAGS) -e$(PROGRAM)$(X) $(OBJS)
#		@size $(PROGRAM)

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	genind.h
mkind${O}:	mkind.h
qsort${O}:	mkind.h
scanid${O}:	mkind.h scanid.h
scanst${O}:	mkind.h scanst.h
sortid${O}:	mkind.h