]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.os2
don't include windows.h unless neccessary
[wxWidgets.git] / src / png / scripts / makefile.os2
CommitLineData
c801d85f
KB
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
6CC=gcc -Zomf -s
7
8# Where the zlib library and include files are located
9ZLIBLIB=../zlib
10ZLIBINC=../zlib
11
12WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
13 -Wmissing-declarations -Wtraditional -Wcast-align \
14 -Wstrict-prototypes -Wmissing-prototypes #-Wconversion
15CFLAGS=-I$(ZLIBINC) -Wall -O6 -funroll-loops -malign-loops=2 \
16 -malign-functions=2 #$(WARNMORE) -g -DPNG_DEBUG=5
17LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lzdll -Zcrtdll
18AR=emxomfar
19
20PNGLIB=png.lib
21IMPLIB=emximp
22SHAREDLIB=png.dll
23SHAREDLIBIMP=pngdll.lib
24
25OBJS = 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
31all: $(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
42pngtest.exe: pngtest.o png.dll pngdll.lib
43 $(CC) -o $@ $(CFLAGS) $< $(LDFLAGS)
44
45test: pngtest.exe
46 ./pngtest.exe
47
48clean:
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
53png.o png.pic.o: png.h pngconf.h
54pngerror.o pngerror.pic.o: png.h pngconf.h
55pngrio.o pngrio.pic.o: png.h pngconf.h
56pngwio.o pngwio.pic.o: png.h pngconf.h
57pngmem.o pngmem.pic.o: png.h pngconf.h
58pngset.o pngset.pic.o: png.h pngconf.h
59pngget.o pngget.pic.o: png.h pngconf.h
60pngread.o pngread.pic.o: png.h pngconf.h
61pngrtran.o pngrtran.pic.o: png.h pngconf.h
62pngrutil.o pngrutil.pic.o: png.h pngconf.h
63pngtrans.o pngtrans.pic.o: png.h pngconf.h
64pngwrite.o pngwrite.pic.o: png.h pngconf.h
65pngwtran.o pngwtran.pic.o: png.h pngconf.h
66pngwutil.o pngwutil.pic.o: png.h pngconf.h
67pngpread.o pngpread.pic.o: png.h pngconf.h
68
69pngtest.o: png.h pngconf.h