1
# makefile for libpng on OS/2 with gcc
2
# For conditions of distribution and use, see copyright notice in png.h
4
# Related files: pngos2.def
8
# Where the zlib library and include files are located
12
WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
13
-Wmissing-declarations -Wtraditional -Wcast-align \
14
-Wstrict-prototypes -Wmissing-prototypes #-Wconversion
15
CFLAGS=-I$(ZLIBINC) -Wall -O6 -funroll-loops -malign-loops=2 \
16
-malign-functions=2 #$(WARNMORE) -g -DPNG_DEBUG=5
17
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lzdll -Zcrtdll
23
SHAREDLIBIMP=pngdll.lib
25
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
26
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
27
pngwtran.o pngmem.o pngerror.o pngpread.o
31
all: $(PNGLIB) $(SHAREDLIB) $(SHAREDLIBIMP)
36
$(SHAREDLIB): $(OBJS) pngos2.def
37
$(CC) $(LDFLAGS) -Zdll -o $@ $^
39
$(SHAREDLIBIMP): pngos2.def
42
pngtest.exe: pngtest.o png.dll pngdll.lib
43
$(CC) -o $@ $(CFLAGS) $< $(LDFLAGS)
49
rm -f *.o $(PNGLIB) png.dll pngdll.lib pngtest.exe pngout.png
51
# DO NOT DELETE THIS LINE -- make depend depends on it.
53
png.o png.pic.o: png.h pngconf.h
54
pngerror.o pngerror.pic.o: png.h pngconf.h
55
pngrio.o pngrio.pic.o: png.h pngconf.h
56
pngwio.o pngwio.pic.o: png.h pngconf.h
57
pngmem.o pngmem.pic.o: png.h pngconf.h
58
pngset.o pngset.pic.o: png.h pngconf.h
59
pngget.o pngget.pic.o: png.h pngconf.h
60
pngread.o pngread.pic.o: png.h pngconf.h
61
pngrtran.o pngrtran.pic.o: png.h pngconf.h
62
pngrutil.o pngrutil.pic.o: png.h pngconf.h
63
pngtrans.o pngtrans.pic.o: png.h pngconf.h
64
pngwrite.o pngwrite.pic.o: png.h pngconf.h
65
pngwtran.o pngwtran.pic.o: png.h pngconf.h
66
pngwutil.o pngwutil.pic.o: png.h pngconf.h
67
pngpread.o pngpread.pic.o: png.h pngconf.h
69
pngtest.o: png.h pngconf.h