source: trunk/tools/cvtasm/Makefile.os2@ 10366

Last change on this file since 10366 was 10219, checked in by sandervl, 22 years ago

Header parser and assembly wrapper generator

File size: 1.5 KB
Line 
1# Makefile for bison for OS/2 2.0 with emx/gcc 2.1
2# Copyright (C) 1984, 1989, 1991 Bob Corbett and Free Software Foundation, Inc.
3#
4# This file is part of Bison, the GNU Compiler Compiler.
5#
6# Bison is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)
9# any later version.
10#
11# Bison is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with Bison; see the file COPYING. If not, write to
18# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
19
20#### Start of system configuration section. ####
21
22CC = gcc -O -Zomf
23O = .o
24
25# Things you might add to DEFS:
26# -DSTDC_HEADERS If you have ANSI C headers and libraries.
27# -DUSG If you have System V/ANSI C string and
28# memory functions and headers.
29
30DEFS = -DSTDC_HEADERS -DUSG -DOS2
31CFLAGS = $(DEFS)
32LDFLAGS = -s -Zcrtdll -Zstack 32768
33LIBS =
34
35#### End of system configuration section. ####
36
37OBJECTS = cvt.tab.o lexyy.o
38
39all: cvt.exe cvt.tab.c lexyy.c
40
41cvt.exe: $(OBJECTS)
42 $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
43
44cvt.tab.c: cvt.y
45 bison -d cvt.y
46
47cvt.tab.h: cvt.tab.c
48
49lexyy.c: cvt.l cvt.tab.h
50 flex cvt.l
51
52cvt.tab.o: cvt.tab.c
53
54.SUFFIXES: .c $O
55
56.c$O:
57 $(CC) $(CFLAGS) -c $<
58
Note: See TracBrowser for help on using the repository browser.