source: trunk/src/gcc/zlib/os2/Makefile.os2@ 1928

Last change on this file since 1928 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 4.0 KB
Line 
1# Makefile for zlib under OS/2 using GCC (PGCC)
2# For conditions of distribution and use, see copyright notice in zlib.h
3
4# To compile and test, type:
5# cp Makefile.os2 ..
6# cd ..
7# make -f Makefile.os2 test
8
9# This makefile will build a static library z.lib, a shared library
10# z.dll and a import library zdll.lib. You can use either z.lib or
11# zdll.lib by specifying either -lz or -lzdll on gcc's command line
12
13CC=gcc -Zomf -s
14
15CFLAGS=-O6 -Wall
16#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
17#CFLAGS=-g -DDEBUG
18#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
19# -Wstrict-prototypes -Wmissing-prototypes
20
21#################### BUG WARNING: #####################
22## infcodes.c hits a bug in pgcc-1.0, so you have to use either
23## -O# where # <= 4 or one of (-fno-ommit-frame-pointer or -fno-force-mem)
24## This bug is reportedly fixed in pgcc >1.0, but this was not tested
25CFLAGS+=-fno-force-mem
26
27LDFLAGS=-s -L. -lzdll -Zcrtdll
28LDSHARED=$(CC) -s -Zomf -Zdll -Zcrtdll
29
30VER=1.1.0
31ZLIB=z.lib
32SHAREDLIB=z.dll
33SHAREDLIBIMP=zdll.lib