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 )
65
# removed -ansi (rtm 11/25/03)
75
# -Wstrict-prototypes \
79
#CFLAGS= $(PORG) -DFIFO -DTTY -D__MSDOS__
80
CFLAGS= $(PORG) -DFIFO -DTTY -D__WIN32__ -D_NT_SOURCE
86
# end of system makefile definitions
109
OBJS= ${CFILES:.c=.o}
112
### MKMF:LINTOBJS ###
114
LINTOBJS= ${CFILES:.c=.ln}
119
# system targets for program makefile
121
$(PROGRAM): $(OBJS) $(XOBJS) $(LIBS)
122
@echo -n loading $(PROGRAM) ...
123
@$(CC) -o $(PROGRAM) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) $(EXTLIBS)
127
@$(PRINTER) $(PRINTFLAGS) $(CFILES)
130
@vgrind $(CFILES) | $(TROFFPRINTER) $(TROFFPRINTERFLAGS)
133
lint $(LINTFLAGS) $(LINTOBJS) $(LINTLIBS)
137
@rm -f $(OBJS) $(PROGRAM)
139
tags: $(CFILES) $(HDRS)
140
ctags $(CFILES) $(HDRS)
142
# end of system targets for program makefile
145
echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
146
echo '$$r makedep' >>eddep
148
cp Makefile Makefile.bak
149
ed - Makefile < eddep
150
rm eddep makedep makedep1 makedeperrs
153
@cat /dev/null >makedep
154
-(for i in ${CFILES} ; do \
155
${CPP} -M ${CPPOPTS} $$i >> makedep; done) \
158
-e 's,^.*genassym\.o:,assym.s assym.L:,' \
159
-e 's,^\(.*\)\.o:,\1.o \1.ln:,' makedep > makedep1
160
${AWK} ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
161
else { if (length(rec $$3) > 78) { print rec; rec = $$0; } \
162
else rec = rec " " $$3 } } \
163
END { print rec } ' makedep1 > makedep
165
@(if [ -s makedeperrs ]; then false; fi)
168
# DO NOT DELETE THIS LINE