]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.os2
Account for indentation in wxDataViewCtrl::GetBestColumnWidth().
[wxWidgets.git] / src / png / scripts / makefile.os2
CommitLineData
0272a10d 1# makefile for libpng on OS/2 with gcc
b61cc19c
PC
2#
3# This code is released under the libpng license.
4# For conditions of distribution and use, see the disclaimer
5# and license in png.h
0272a10d
VZ
6
7# Related files: pngos2.def
8
9CC=gcc -Zomf -s
10
11# Where the zlib library and include files are located
12ZLIBLIB=../zlib
13ZLIBINC=../zlib
14
15WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
16 -Wmissing-declarations -Wtraditional -Wcast-align \
17 -Wstrict-prototypes -Wmissing-prototypes #-Wconversion
970f6abe 18CFLAGS=-I$(ZLIBINC) -W -Wall -O6 -funroll-loops -malign-loops=2 \
0272a10d
VZ
19 -malign-functions=2 #$(WARNMORE) -g -DPNG_DEBUG=5
20LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lzdll -Zcrtdll
21AR=emxomfar
22
23PNGLIB=png.lib
24IMPLIB=emximp
25SHAREDLIB=png.dll
26SHAREDLIBIMP=pngdll.lib
27
28OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
29 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
30 pngwtran.o pngmem.o pngerror.o pngpread.o
31
32.SUFFIXES: .c .o
33
34all: $(PNGLIB) $(SHAREDLIB) $(SHAREDLIBIMP)
35
36$(PNGLIB): $(OBJS)
37 $(AR) rc $@ $(OBJS)
38
39$(SHAREDLIB): $(OBJS) pngos2.def
40 $(CC) $(LDFLAGS) -Zdll -o $@ $^
41
42$(SHAREDLIBIMP): pngos2.def
43 $(IMPLIB) -o $@ $^
44
45pngtest.exe: pngtest.o png.dll pngdll.lib
46 $(CC) -o $@ $(CFLAGS) $< $(LDFLAGS)
47
48test: pngtest.exe
49 ./pngtest.exe
50
51clean:
52 rm -f *.o $(PNGLIB) png.dll pngdll.lib pngtest.exe pngout.png
53
54# DO NOT DELETE THIS LINE -- make depend depends on it.
55
b61cc19c
PC
56png.o png.pic.o: png.h pngconf.h pngpriv.h
57pngerror.o pngerror.pic.o: png.h pngconf.h pngpriv.h
58pngrio.o pngrio.pic.o: png.h pngconf.h pngpriv.h
59pngwio.o pngwio.pic.o: png.h pngconf.h pngpriv.h
60pngmem.o pngmem.pic.o: png.h pngconf.h pngpriv.h
61pngset.o pngset.pic.o: png.h pngconf.h pngpriv.h
62pngget.o pngget.pic.o: png.h pngconf.h pngpriv.h
63pngread.o pngread.pic.o: png.h pngconf.h pngpriv.h
64pngrtran.o pngrtran.pic.o: png.h pngconf.h pngpriv.h
65pngrutil.o pngrutil.pic.o: png.h pngconf.h pngpriv.h
66pngtrans.o pngtrans.pic.o: png.h pngconf.h pngpriv.h
67pngwrite.o pngwrite.pic.o: png.h pngconf.h pngpriv.h
68pngwtran.o pngwtran.pic.o: png.h pngconf.h pngpriv.h
69pngwutil.o pngwutil.pic.o: png.h pngconf.h pngpriv.h
70pngpread.o pngpread.pic.o: png.h pngconf.h pngpriv.h
0272a10d
VZ
71
72pngtest.o: png.h pngconf.h