]> git.saurik.com Git - wxWidgets.git/blob - src/png/scripts/makefile.os2
Tinderbox build fix (wxCococa).
[wxWidgets.git] / src / png / scripts / makefile.os2
1 # makefile for libpng on OS/2 with gcc
2 # For conditions of distribution and use, see copyright notice in png.h
3
4 # Related files: pngos2.def
5
6 CC=gcc -Zomf -s
7
8 # Where the zlib library and include files are located
9 ZLIBLIB=../zlib
10 ZLIBINC=../zlib
11
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
18 AR=emxomfar
19
20 PNGLIB=png.lib
21 IMPLIB=emximp
22 SHAREDLIB=png.dll
23 SHAREDLIBIMP=pngdll.lib
24
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
28
29 .SUFFIXES: .c .o
30
31 all: $(PNGLIB) $(SHAREDLIB) $(SHAREDLIBIMP)
32
33 $(PNGLIB): $(OBJS)
34 $(AR) rc $@ $(OBJS)
35
36 $(SHAREDLIB): $(OBJS) pngos2.def
37 $(CC) $(LDFLAGS) -Zdll -o $@ $^
38
39 $(SHAREDLIBIMP): pngos2.def
40 $(IMPLIB) -o $@ $^
41
42 pngtest.exe: pngtest.o png.dll pngdll.lib
43 $(CC) -o $@ $(CFLAGS) $< $(LDFLAGS)
44
45 test: pngtest.exe
46 ./pngtest.exe
47
48 clean:
49 rm -f *.o $(PNGLIB) png.dll pngdll.lib pngtest.exe pngout.png
50
51 # DO NOT DELETE THIS LINE -- make depend depends on it.
52
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
68
69 pngtest.o: png.h pngconf.h