Debian Codegraph @

texk/bibtex-x/os2.mak

raw
1 #############################################################################*
2 ##############################################################################
3 ##
4 ## MODULE
5 ##
6 ## $RCSfile: os2.mak,v $
7 ## $Revision: 3.71 $
8 ## $Date: 1996/08/18 20:37:06 $
9 ##
10 ## DESCRIPTION
11 ##
12 ## A 32-bit implementation of BibTeX v0.99c for MS-DOS, OS/2 2.x,
13 ## Unix and VMS. This C language implementation is based on the
14 ## original WEB source but it has been enhanced to support 8-bit input
15 ## characters and a very large processing capacity.
16 ##
17 ## For documentation describing how to use and build this program,
18 ## see the 00README.TXT file that accompanies this distribution.
19 ##
20 ## MODULE CONTENTS
21 ##
22 ## This is the BibTeX makefile to build an OS/2 32-bit executable
23 ## using the EMX development system. This file should be called
24 ## "os2.mak" and used with a command like:
25 ##
26 ## [C:\] make -f os2.mak bibtex
27 ##
28 ## If you omit the "bibtex" argument, the Makefile will display a list
29 ## of the supported targets.
30 ##
31 ## If you port BibTeX to a new environment or find that it works
32 ## unchanged in a new environment, please report back to the author
33 ## so that this file can be updated for everyone else.
34 ##
35 ## AUTHORS
36 ##
37 ## Original WEB translation to C, conversion to "big" (32-bit) capacity,
38 ## addition of run-time selectable capacity and 8-bit support extensions
39 ## by:
40 ##
41 ## Niel Kempson
42 ## Snowy Owl Systems Limited, Cheltenham, England
43 ## E-mail: [email protected]
44 ##
45 ## 8-bit support extensions also by:
46 ##
47 ## Alejandro Aguilar-Sierra
48 ## Centro de Ciencias de la Atm\'osfera,
49 ## Universidad Nacional Autonoma de M\'exico, M\'exico
50 ## E-mail: [email protected]
51 ##
52 ## COPYRIGHT
53 ##
54 ## This implementation copyright (c) 1991-1996 by Niel Kempson
55 ## and copyright (c) 1995-1996 by Alejandro Aguilar-Sierra.
56 ##
57 ## This program is free software; you can redistribute it and/or
58 ## modify it under the terms of the GNU General Public License as
59 ## published by the Free Software Foundation; either version 1, or
60 ## (at your option) any later version.
61 ##
62 ## This program is distributed in the hope that it will be useful,
63 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
64 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
65 ## General Public License for more details.
66 ##
67 ## You should have received a copy of the GNU General Public License
68 ## along with this program; if not, write to the Free Software
69 ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
70 ##
71 ## In other words, you are welcome to use, share and improve this
72 ## program. You are forbidden to forbid anyone else to use, share
73 ## and improve what you give them. Help stamp out software-hoarding!
74 ##
75 ## ACKNOWLEDGEMENT
76 ##
77 ## The original BibTeX was written by Oren Patashnik using Donald
78 ## Knuth's WEB system. This format produces a PASCAL program for
79 ## execution and a TeX documented version of the source code. This
80 ## program started as a (manual) translation of the WEB source into C.
81 ##
82 ## CHANGE LOG
83 ##
84 ## $Log: os2.mak,v $
85 ## Revision 3.71 1996/08/18 20:37:06 kempson
86 ## Official release 3.71 (see HISTORY file for details).
87 ##
88 ## Revision 3.70 1996/04/08 10:17:58 kempson
89 ## Final documentation & cosmetic changes for official release 3.70.
90 ##
91 ## Revision 1.0 1995/10/21 21:52:44 kempson
92 ## Placed under RCS control
93 ##
94 ##############################################################################
95 ##############################################################################
96
97
98 ##############################################################################
99 ##############################################################################
100 #
101 # Start of local definitions for file types and compilation / linking. There
102 # are three small sections to customise:
103 #
104 # BibTeX File Searching
105 # - specifies the names of environment variables and paths to be used when
106 # searching for input files
107 #
108 # Utility Programs
109 # - specifies the names of programs to be used for simple functions
110 #
111 # Compiler/Linker
112 # - specifies compiler/linker command lines
113 #
114 # If your system is already supported it should not be necessary to modify
115 # any part of the Makefile except these three sections.
116 #
117 ##############################################################################
118 ##############################################################################
119
120 #-----------------------------------------------------------------------------
121 # BIBTEX FILE SEARCHING
122 #
123 # The macros in this section define the environment variables and default
124 # search paths that will be used by BibTeX. 8-bit BibTeX looks for input
125 # files in three different steps as summarised below. As soon as 8-bit
126 # BibTeX finds a matching file, it stops looking (i.e. only the first
127 # matching file is used). In order, the three steps are:
128 #
129 # - look for the file in the current working directory.
130 #
131 # - if the appropriate environment variable has been set (e.g. BSTINPUT),
132 # treat its value as a list of directories to be searched. Look for the
133 # file in each of the directories in the list.
134 #
135 # - if the appropriate environment variable (e.g. BSTINPUT) has not been
136 # set, use a predefined "fallback" path as a list of directories to be
137 # searched.
138 #
139 # A search list consists of a number of directories separated by semicolons.
140 #
141 # The following entries must be defined:
142 #
143 # AUX_ENVVAR the name of the environment variable defining the path
144 # to be searched for .aux files.
145 #
146 # AUX_INPUT_PATH the fallback path to be searched for .aux files.
147 #
148 # BIB_ENVVAR the name of the environment variable defining the path
149 # to be searched for .bib files (e.g. BIBINPUT).
150 #
151 # BIB_INPUT_PATH the fallback path to be searched for .bib files
152 # (e.g. e:/usr/latex/bibtex;e:/emtex/bibtex/bib).
153 #
154 # BST_ENVVAR the name of the environment variable defining the path
155 # to be searched for .bst files (e.g. BSTINPUT).
156 #
157 # BST_INPUT_PATH the fallback path to be searched for .bst files
158 # (e.g. e:/usr/latex/bibtex;e:/emtex/bibtex/bst).
159 #
160 # CSF_ENVVAR the name of the environment variable defining the path
161 # to be searched for .csf files (e.g. CSFINPUT).
162 #
163 # CSF_INPUT_PATH the fallback path to be searched for .csf files
164 # (e.g. e:/usr/latex/bibtex;e:/emtex/bibtex/csf).
165 #
166 # CSF_FILE_ENVVAR the name of the environment variable defining the
167 # fallback CS file (e.g. BIBTEX_CSFILE).
168 #
169 # CSF_FILE_NAME the name of the fallback CS file to be used if one is
170 # not specified on the command line and the above-named
171 # environment variable is not defined (e.g. cp850lat.csf).
172 #-----------------------------------------------------------------------------
173 AUX_INPUT_ENVVAR =
174 AUX_INPUT_PATH =
175
176 BIB_INPUT_ENVVAR = BIBINPUT
177 BIB_INPUT_PATH = c:/emtex/bibtex/bib
178
179 BST_INPUT_ENVVAR = BSTINPUT
180 BST_INPUT_PATH = c:/emtex/bibtex/bst
181
182 CSF_INPUT_ENVVAR = CSFINPUT
183 CSF_INPUT_PATH = c:/emtex/bibtex/csf
184
185 CSF_FILE_ENVVAR = BIBTEX_CSFILE
186 CSF_FILE_NAME = cp850lat.csf
187
188
189 #-----------------------------------------------------------------------------
190 # UTILITY PROGRAMS
191 #
192 # MAKE the command used to invoke Make to process this file.
193 # As distributed, it is defined as "make -f os2.mak"
194 #
195 # RM rm program that won't complain (e.g. /bin/rm -f) if a
196 # file is missing
197 #-----------------------------------------------------------------------------
198 MAKE = make -f os2.mak
199 RM = -DEL
200
201
202 #-----------------------------------------------------------------------------
203 # COMPILER/LINKER
204 #
205 # CC the command used to invoke the C compiler
206 # CFLAGS compiler command line flags to be used
207 # CCDEFINES symbols to be #defined when compiling
208 #
209 # LD the command used to invoke the linker
210 # LDFLAGS linker command line flags to be used
211 # LDLIBS linker command line option to search the specified
212 # library files
213 #
214 # EMX/GNU C compiler v0.9b
215 #
216 # Compiling: gcc -DMSDOS -Wall -Wconversion -Wno-char-subscripts
217 # -funsigned-char -c BIBTEX.C
218 #
219 # -DOS2 we're building for OS/2
220 # -Wall generate lots of warnings
221 # -Wconversion warn about suspicious type conversions
222 # -Wno-char-subscripts don't moan about character type subscripts
223 # -funsigned-char unsigned chars
224 # -c compile only
225 #
226 # Linking: gcc BIBTEX.O BIBTEX-1.O -o BIBTEX.EXE
227 #
228 # -o BIBTEX.EXE produce executable BIBTEX.EXE
229 #
230 #-----------------------------------------------------------------------------
231 CC = gcc
232 CFLAGS = -c -DOS2 -Wall -Wno-char-subscripts -funsigned-char
233 CCDEFINES =
234 LD = gcc
235 LDFLAGS = -o $@
236 LDLIBS =
237
238 ##############################################################################
239 ##############################################################################
240 #
241 # End of local definitions. You shouldn't need to change anything below.
242 #
243 ##############################################################################
244 ##############################################################################
245
246
247 ##############################################################################
248 # File types and default rule for compilation
249 ##############################################################################
250 BIBTEX_DEFINES = -DSUPPORT_8BIT \
251 -DAUX_INPUT_ENVVAR=\"$(AUX_INPUT_ENVVAR)\" \
252 -DAUX_INPUT_PATH=\"$(AUX_INPUT_PATH)\" \
253 -DBIB_INPUT_ENVVAR=\"$(BIB_INPUT_ENVVAR)\" \
254 -DBIB_INPUT_PATH=\"$(BIB_INPUT_PATH)\" \
255 -DBST_INPUT_ENVVAR=\"$(BST_INPUT_ENVVAR)\" \
256 -DBST_INPUT_PATH=\"$(BST_INPUT_PATH)\" \
257 -DCSF_INPUT_ENVVAR=\"$(CSF_INPUT_ENVVAR)\" \
258 -DCSF_INPUT_PATH=\"$(CSF_INPUT_PATH)\" \
259 -DCSF_FILE_ENVVAR=\"$(CSF_FILE_ENVVAR)\" \
260 -DCSF_FILE_NAME=\"$(CSF_FILE_NAME)\"
261
262 EXE = .exe
263 O = .o
264
265 .SUFFIXES: .c .h $(O) $(EXE)
266
267 .c.o:
268 $(CC) $(CFLAGS) $(BIBTEX_DEFINES) $*.c
269
270
271 ##############################################################################
272 # Target Groupings
273 ##############################################################################
274 HDRFILES = bibtex.h datatype.h gblprocs.h gblvars.h sysdep.h \
275 getopt.h utils.h version.h
276
277 OBJFILES = bibtex$(O) \
278 bibtex-1$(O) bibtex-2$(O) bibtex-3$(O) bibtex-4$(O) \
279 getopt$(O) getopt1$(O) utils$(O)
280
281 EXEFILES = bibtex$(EXE)
282
283
284 ##############################################################################
285 # Top level targets
286 ##############################################################################
287 make:
288 @ echo You must specify what to make.
289 @ echo .
290 @ echo For example: $(MAKE) bibtex
291 @ echo .
292 @ echo Valid system targets are:
293 @ echo .
294 @ echo clean - delete $(O) files
295 @ echo veryclean - delete $(O) and $(EXE) files
296 @ echo .
297 @ echo bibtex - EMX/GNU C for OS/2
298
299 clean:
300 @ echo Cleaning up ...
301 $(RM) bibtex$(O)
302 $(RM) bibtex-1$(O)
303 $(RM) bibtex-2$(O)
304 $(RM) bibtex-3$(O)
305 $(RM) bibtex-4$(O)
306 $(RM) getopt$(O)
307 $(RM) getopt1$(O)
308 $(RM) utils$(O)
309
310 veryclean: clean
311 @ echo Really cleaning up ...
312 $(RM) bibtex$(EXE)
313
314 bibtex: $(EXEFILES)
315 @ echo BibTeX built
316
317
318 ##############################################################################
319 # Dependencies for executables.
320 ##############################################################################
321 bibtex$(EXE): $(OBJFILES)
322 $(LD) $(OBJFILES) $(LFLAGS)
323
324 ##############################################################################
325 # Dependencies for object files
326 ##############################################################################
327 bibtex$(O): bibtex.c $(HDRFILES)
328
329 bibtex-1$(O): bibtex-1.c $(HDRFILES)
330
331 bibtex-2$(O): bibtex-2.c $(HDRFILES)
332
333 bibtex-3$(O): bibtex-3.c $(HDRFILES)
334
335 bibtex-4$(O): bibtex-4.c $(HDRFILES)
336
337 getopt$(O): getopt.c getopt.h
338
339 getopt1$(O): getopt1.c getopt.h
340
341 utils$(O): utils.c $(HDRFILES)