[10219] | 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 |
|
---|
| 22 | CC = gcc -O -Zomf
|
---|
| 23 | O = .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 |
|
---|
| 30 | DEFS = -DSTDC_HEADERS -DUSG -DOS2
|
---|
| 31 | CFLAGS = $(DEFS)
|
---|
| 32 | LDFLAGS = -s -Zcrtdll -Zstack 32768
|
---|
| 33 | LIBS =
|
---|
| 34 |
|
---|
| 35 | #### End of system configuration section. ####
|
---|
| 36 |
|
---|
| 37 | OBJECTS = cvt.tab.o lexyy.o
|
---|
| 38 |
|
---|
| 39 | all: cvt.exe cvt.tab.c lexyy.c
|
---|
| 40 |
|
---|
| 41 | cvt.exe: $(OBJECTS)
|
---|
| 42 | $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
|
---|
| 43 |
|
---|
| 44 | cvt.tab.c: cvt.y
|
---|
| 45 | bison -d cvt.y
|
---|
| 46 |
|
---|
| 47 | cvt.tab.h: cvt.tab.c
|
---|
| 48 |
|
---|
| 49 | lexyy.c: cvt.l cvt.tab.h
|
---|
| 50 | flex cvt.l
|
---|
| 51 |
|
---|
| 52 | cvt.tab.o: cvt.tab.c
|
---|
| 53 |
|
---|
| 54 | .SUFFIXES: .c $O
|
---|
| 55 |
|
---|
| 56 | .c$O:
|
---|
| 57 | $(CC) $(CFLAGS) -c $<
|
---|
| 58 |
|
---|