1 Received: from 128.84.254.220 by ee.lbl.gov for <vern@ee.lbl.gov> (8.6.8.1/1.43r)
2 id PAA27266; Mon, 18 Apr 1994 15:08:26 -0700
3 Received: from CLOYD.CS.CORNELL.EDU by thialfi.cs.cornell.edu (5.67/I-1.99E)
4 id AA28742; Mon, 18 Apr 94 18:08:14 -0400
5 Received: from iraun1.ira.uka.de by cloyd.cs.cornell.edu (5.67/I-1.99D)
6 id AA19613; Mon, 18 Apr 94 18:08:19 -0400
7 Received: from t500i2.telematik.informatik. (actually t500i2.telematik.informatik.uni-karlsruhe.de)
8 by iraun1.ira.uka.de with SMTP (PP); Tue, 19 Apr 1994 00:07:55 +0200
9 Received: by t500i2.telematik.informatik.uni-karlsruhe.de (5.57/Ultrix3.0-C)
10 id AA10269; Tue, 19 Apr 94 00:09:14 +0200
11 From: beigl@t500i2.telematik.informatik.uni-karlsruhe.de (Michael Beigl)
12 Message-Id: <9404182209.AA10269@t500i2.telematik.informatik.uni-karlsruhe.de>
13 Subject: Makefile-TurboC
14 To: vern@cs.cornell.edu
15 Date: Tue, 19 Apr 1994 00:09:13 +0200 (MET DST)
16 X-Mailer: ELM [version 2.4 PL22]
18 Content-Type: text/plain; charset=US-ASCII
19 Content-Transfer-Encoding: 7bit
24 Here are some additional adjustments to my Makefile. I was using "pure" DOS
25 and an old Turbo C++ 1.0 version, so I had some problems with systemtools
26 like mv etc. and problems with variables in my Makefile.
28 Now follows my Makefile
29 ############################################################################
30 # make file for "flex" tool
34 # Porting considerations:
39 # LINK = $(CC) $(CFLAGS) -o flex $(LDFLAGS) $(FLEXOBJS)
41 # SKELETON_FILE = flex.skel
42 # SKELFLAGS = -DDEFAULT_SKELETON_FILE=\"$(SKELETON_DIR)/$(SKELETON_FILE)\"
47 # For System V Unix or Vax/VMS machines, merely add:
50 # For MS-DOS, Turbo C:
53 CFLAGS = -DSYS_V -DMS_DOS -O -G -Z -ml -v -2
54 # /3 enable 32 bit processing
55 # /ye expanded memory swapping
56 # /yx extended memory swapping
57 LINK = tlink @flex.lnk/c/x/v/3/ye
59 SKELETON_FILE = flex.skl
60 SKELFLAGS = -DDEFAULT_SKELETON_FILE="$(SKELETON_DIR)/$(SKELETON_FILE)"
68 # the first time around use "make first_flex"
117 flex.exe: $(FLEXOBJS)
121 flex: $(FLEX_C_SOURCES)
122 $(CC) $(CFLAGS) -c $(SKELFLAGS) $(FLEX_C_SOURCES_1)
123 $(CC) $(CFLAGS) -c $(SKELFLAGS) $(FLEX_C_SOURCES_2)
128 copy initscan.c scan.c
131 parse.h parse.c: parse.y
133 @rename $(YTAB).c parse.c
134 @rename $(YTAB).h parse.h
137 $(FLEX) -ist $(FLEX_FLAGS) scan.l >scan.c
139 scan.$O: scan.c parse.h
142 $(CC) $(CFLAGS) -c $(SKELFLAGS) main.c
145 nroff -man flex.1 >flex.man
147 lint: $(FLEX_C_SOURCES)
148 lint $(FLEX_C_SOURCES) > flex.lint
151 rename scan.c initscan.c
152 attrib +R -A -H -S initscan.c
167 ctags $(FLEX_C_SOURCES)
173 $(FLEX) -ist $(FLEX_FLAGS) scan.l | diff scan.c -
175 ############################################################################
177 I think this Makefile will help some other simple DOS user