pci: don't do sanity check for missing pci bus, the check can misfire.
[minix.git] / commands / flex-2.5.4 / MISC / Borland.old / Turbo-C
blobc15ee6783918e583e63e6a641bd4769accf237f0
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]
17 Mime-Version: 1.0
18 Content-Type: text/plain; charset=US-ASCII
19 Content-Transfer-Encoding: 7bit
20 Content-Length: 2739
22 Hello
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
32 # @(#) $Header$ (LBL)
34 # Porting considerations:
36 #    For BSD machines:
37 #  CFLAGS =
38 #  LDFLAGS = -s
39 #  LINK = $(CC) $(CFLAGS) -o flex $(LDFLAGS) $(FLEXOBJS)
40 #  SKELETON_DIR = .
41 #  SKELETON_FILE = flex.skel
42 #  SKELFLAGS = -DDEFAULT_SKELETON_FILE=\"$(SKELETON_DIR)/$(SKELETON_FILE)\"
43 #  O = o
44 #  YTAB = y.tab
45 #  FLEX = ./flex
47 #    For System V Unix or Vax/VMS machines, merely add:
48 #  CFLAGS = -DSYS_V
50 #    For MS-DOS, Turbo C:
51 CC = tcc
52 # -2+ 286 Options
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
58 SKELETON_DIR = .
59 SKELETON_FILE = flex.skl
60 SKELFLAGS = -DDEFAULT_SKELETON_FILE="$(SKELETON_DIR)/$(SKELETON_FILE)"
61 O = obj
62 EXE = .exe
63 YTAB = y_tab
64 FLEX = flex
65 YACC = /yacc/byacc
68 # the first time around use "make first_flex"
71 FLEX_FLAGS =
73 FLEXOBJS = \
74         ccl.$O \
75         dfa.$O \
76         ecs.$O \
77         gen.$O \
78         main.$O \
79         misc.$O \
80         nfa.$O \
81         parse.$O \
82         scan.$O \
83         sym.$O \
84         tblcmp.$O \
85         yylex.$O
87 FLEX_C_SOURCES = \
88         ccl.c \
89         dfa.c \
90         ecs.c \
91         gen.c \
92         main.c \
93         misc.c \
94         nfa.c \
95         parse.c \
96         scan.c \
97         sym.c \
98         tblcmp.c \
99         yylex.c
101 FLEX_C_SOURCES_1 = \
102         ccl.c \
103         dfa.c \
104         ecs.c \
105         gen.c \
106         main.c \
107         misc.c
109 FLEX_C_SOURCES_2 = \
110         nfa.c \
111         parse.c \
112         scan.c \
113         sym.c \
114         tblcmp.c \
115         yylex.c
117 flex.exe: $(FLEXOBJS)
118         $(LINK)
121 flex: $(FLEX_C_SOURCES)
122         $(CC) $(CFLAGS) -c $(SKELFLAGS) $(FLEX_C_SOURCES_1)
123         $(CC) $(CFLAGS) -c $(SKELFLAGS) $(FLEX_C_SOURCES_2)
124         $(LINK)
127 first_flex:
128         copy initscan.c scan.c
129         $(MAKE) flex
131 parse.h parse.c: parse.y
132         $(YACC) -d parse.y
133         @rename $(YTAB).c parse.c
134         @rename $(YTAB).h parse.h
136 scan.c: scan.l
137         $(FLEX) -ist $(FLEX_FLAGS) scan.l >scan.c
139 scan.$O: scan.c parse.h
141 main.$O: main.c
142         $(CC) $(CFLAGS) -c $(SKELFLAGS) main.c
144 flex.man: flex.1
145         nroff -man flex.1 >flex.man
147 lint: $(FLEX_C_SOURCES)
148         lint $(FLEX_C_SOURCES) > flex.lint
150 distrib:
151         rename scan.c initscan.c
152         attrib +R -A -H -S initscan.c
153         $(MAKE) clean
155 clean:
156         del *.obj
157         del *.lint
158         del core
159         del errs
160         del flex.exe
161         del parse.c
162         del parse.h
163         del flex.man
164         del tags
166 tags:
167         ctags $(FLEX_C_SOURCES)
169 vms:    flex.man
170         $(MAKE) distrib
172 test:
173         $(FLEX) -ist $(FLEX_FLAGS) scan.l | diff scan.c -
175 ############################################################################
177 I think this Makefile will help some other simple DOS user
179         M. Beigl