2
# %Z%%M% %I% %E% 1990 by Robin Miller
4
#/****************************************************************************
6
# * COPYRIGHT (c) 1990 - 2004 *
7
# * This Software Provided *
9
# * Robin's Nest Software Inc. *
11
# * Permission to use, copy, modify, distribute and sell this software and *
12
# * its documentation for any purpose and without fee is hereby granted *
13
# * provided that the above copyright notice appear in all copies and that *
14
# * both that copyright notice and this permission notice appear in the *
15
# * supporting documentation, and that the name of the author not be used *
16
# * in advertising or publicity pertaining to distribution of the software *
17
# * without specific, written prior permission. *
19
# * THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *
20
# * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN *
21
# * NO EVENT SHALL HE BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL *
22
# * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR *
23
# * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS *
24
# * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF *
27
# ****************************************************************************/
29
# Makefile -- makefile for program 'dt'
32
# System makefile definitions for program makefiles
37
@lint -c $(LINTFLAGS) $<
41
@$(GET) -G$*.c $(GFLAGS) $<
42
@lint -c $(LINTFLAGS) $*.c
49
TR_PRINTER= $(PRINTER)
53
# Libraries the program links to which are considered volatile
57
# Libraries considered static
63
# P or G flag ( override on command line by invoking make PORG=-g )
70
CFLAGS= $(PORG) -DFIFO -DTTY -DRAND48 -D_QNX_SOURCE -D_QNX_32BIT -fi=unix.h
71
#CFLAGS= $(PORG) -DFIFO -DTTY -DRAND48 -D_QNX_SOURCE -D_QNX_32BIT -fi=unix.h -v 9.52
73
CPPOPTS= -D_QNX_SOURCE
77
# end of system makefile definitions
100
OBJS= ${CFILES:.c=.o}
103
### MKMF:LINTOBJS ###
105
LINTOBJS= ${CFILES:.c=.ln}
111
# system targets for program makefile
113
$(PROGRAM): $(OBJS) $(XOBJS) $(LIBS)
114
@echo -n loading $(PROGRAM) ...
115
@$(CC) -o $(PROGRAM) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) $(EXTLIBS)
119
@$(PRINTER) $(PRINTFLAGS) $(CFILES)
122
@vgrind $(CFILES) | $(TROFFPRINTER) $(TROFFPRINTERFLAGS)
125
lint $(LINTFLAGS) $(LINTOBJS) $(LINTLIBS)
129
@rm -f $(OBJS) $(PROGRAM)
131
tags: $(CFILES) $(HDRS)
132
ctags -st $(CFILES) $(HDRS)
134
# end of system targets for program makefile
137
echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
138
echo '$$r makedep' >>eddep
140
cp Makefile Makefile.bak
141
ex - Makefile < eddep
142
rm eddep makedep makedep1 makedeperrs
145
@cat /dev/null >makedep
146
-(for i in ${CFILES} ; do \
147
${CPP} -M ${CPPOPTS} $$i >> makedep; done) \
150
-e 's,^.*genassym\.o:,assym.s assym.L:,' \
151
-e 's,^\(.*\)\.o:,\1.o \1.ln:,' makedep > makedep1
152
${AWK} ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
153
else { if (length(rec $$3) > 78) { print rec; rec = $$0; } \
154
else rec = rec " " $$3 } } \
155
END { print rec } ' makedep1 > makedep
157
@(if [ -s makedeperrs ]; then false; fi)
160
# DO NOT DELETE THIS LINE
162
dt.o dt.ln: dt.c ./dt.h /usr/include/stdio.h
163
dt.o dt.ln: /usr/include/float.h
164
dt.o dt.ln: /usr/include/stdlib.h
165
dt.o dt.ln: /usr/include/sys/types.h /usr/include/string.h
166
dt.o dt.ln: /usr/include/termios.h
167
dt.o dt.ln: /usr/include/time.h
168
dt.o dt.ln: /usr/include/unistd.h
169
dt.o dt.ln: /usr/include/errno.h
170
dt.o dt.ln: /usr/include/sys/times.h
171
dt.o dt.ln: /usr/include/fcntl.h
172
dt.o dt.ln: /usr/include/signal.h
173
dt.o dt.ln: /usr/include/sys/wait.h
174
dt.o dt.ln: /usr/include/sys/types.h
175
dt.o dt.ln: /usr/include/signal.h
176
dtread.o dtread.ln: dtread.c ./dt.h /usr/include/stdio.h
177
dtread.o dtread.ln: /usr/include/float.h
178
dtread.o dtread.ln: /usr/include/stdlib.h
179
dtread.o dtread.ln: /usr/include/string.h
180
dtread.o dtread.ln: /usr/include/termios.h
181
dtread.o dtread.ln: /usr/include/time.h
182
dtread.o dtread.ln: /usr/include/unistd.h
183
dtread.o dtread.ln: /usr/include/errno.h
184
dtread.o dtread.ln: /usr/include/sys/times.h
185
dtread.o dtread.ln: /usr/include/sys/types.h
186
dtwrite.o dtwrite.ln: dtwrite.c ./dt.h /usr/include/stdio.h
187
dtwrite.o dtwrite.ln: /usr/include/float.h
188
dtwrite.o dtwrite.ln: /usr/include/stdlib.h
189
dtwrite.o dtwrite.ln: /usr/include/string.h
190
dtwrite.o dtwrite.ln: /usr/include/termios.h
191
dtwrite.o dtwrite.ln: /usr/include/time.h
192
dtwrite.o dtwrite.ln: /usr/include/unistd.h
193
dtwrite.o dtwrite.ln: /usr/include/errno.h
194
dtwrite.o dtwrite.ln: /usr/include/sys/times.h
195
dtwrite.o dtwrite.ln: /usr/include/sys/types.h
196
dtstats.o dtstats.ln: dtstats.c ./dt.h /usr/include/stdio.h
197
dtstats.o dtstats.ln: /usr/include/float.h
198
dtstats.o dtstats.ln: /usr/include/stdlib.h
199
dtstats.o dtstats.ln: /usr/include/string.h
200
dtstats.o dtstats.ln: /usr/include/termios.h
201
dtstats.o dtstats.ln: /usr/include/time.h
202
dtstats.o dtstats.ln: /usr/include/unistd.h
203
dtstats.o dtstats.ln: /usr/include/errno.h
204
dtstats.o dtstats.ln: /usr/include/sys/times.h
205
dtstats.o dtstats.ln: /usr/include/sys/types.h
206
dttty.o dttty.ln: dttty.c ./dt.h /usr/include/stdio.h
207
dttty.o dttty.ln: /usr/include/float.h
208
dttty.o dttty.ln: /usr/include/stdlib.h
209
dttty.o dttty.ln: /usr/include/string.h
210
dttty.o dttty.ln: /usr/include/termios.h
211
dttty.o dttty.ln: /usr/include/time.h
212
dttty.o dttty.ln: /usr/include/unistd.h
213
dttty.o dttty.ln: /usr/include/errno.h
214
dttty.o dttty.ln: /usr/include/sys/times.h
215
dttty.o dttty.ln: /usr/include/sys/types.h
216
dtutil.o dtutil.ln: dtutil.c ./dt.h /usr/include/stdio.h
217
dtutil.o dtutil.ln: /usr/include/float.h
218
dtutil.o dtutil.ln: /usr/include/stdlib.h
219
dtutil.o dtutil.ln: /usr/include/string.h
220
dtutil.o dtutil.ln: /usr/include/termios.h
221
dtutil.o dtutil.ln: /usr/include/time.h
222
dtutil.o dtutil.ln: /usr/include/unistd.h
223
dtutil.o dtutil.ln: /usr/include/errno.h
224
dtutil.o dtutil.ln: /usr/include/sys/times.h
225
dtutil.o dtutil.ln: /usr/include/fcntl.h
226
dtutil.o dtutil.ln: /usr/include/malloc.h
227
dtutil.o dtutil.ln: /usr/include/sys/stat.h
228
dtutil.o dtutil.ln: /usr/include/sys/types.h
229
dtusage.o dtusage.ln: dtusage.c ./dt.h /usr/include/stdio.h
230
dtusage.o dtusage.ln: /usr/include/float.h
231
dtusage.o dtusage.ln: /usr/include/stdlib.h
232
dtusage.o dtusage.ln: /usr/include/sys/types.h /usr/include/string.h
233
dtusage.o dtusage.ln: /usr/include/termios.h
234
dtusage.o dtusage.ln: /usr/include/time.h
235
dtusage.o dtusage.ln: /usr/include/unistd.h
236
dtusage.o dtusage.ln: /usr/include/errno.h
237
dtusage.o dtusage.ln: /usr/include/sys/times.h
238
dtusage.o dtusage.ln: /usr/include/sys/types.h