]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/png/scripts/makefile.os2
Add various selection menu items to the sample.
[wxWidgets.git] / src / png / scripts / makefile.os2
... / ...
CommitLineData
1# makefile for libpng on OS/2 with gcc
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
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
18CFLAGS=-I$(ZLIBINC) -W -Wall -O6 -funroll-loops -malign-loops=2 \
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
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
71
72pngtest.o: png.h pngconf.h