| 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 |
|
|---|
| 13 | CC=gcc -Zomf -s
|
|---|
| 14 |
|
|---|
| 15 | CFLAGS=-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
|
|---|
| 25 | CFLAGS+=-fno-force-mem
|
|---|
| 26 |
|
|---|
| 27 | LDFLAGS=-s -L. -lzdll -Zcrtdll
|
|---|
| 28 | LDSHARED=$(CC) -s -Zomf -Zdll -Zcrtdll
|
|---|
| 29 |
|
|---|
| 30 | VER=1.1.0
|
|---|
| 31 | ZLIB=z.lib
|
|---|
| 32 | SHAREDLIB=z.dll
|
|---|
| 33 | SHAREDLIBIMP=zdll.lib
|
|---|
|
|---|