]>
Commit | Line | Data |
---|---|---|
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 | ||
9 | CC=gcc -Zomf -s | |
10 | ||
11 | # Where the zlib library and include files are located | |
12 | ZLIBLIB=../zlib | |
13 | ZLIBINC=../zlib | |
14 | ||
15 | WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ | |
16 | -Wmissing-declarations -Wtraditional -Wcast-align \ | |
17 | -Wstrict-prototypes -Wmissing-prototypes #-Wconversion | |
970f6abe | 18 | CFLAGS=-I$(ZLIBINC) -W -Wall -O6 -funroll-loops -malign-loops=2 \ |
0272a10d VZ |
19 | -malign-functions=2 #$(WARNMORE) -g -DPNG_DEBUG=5 |
20 | LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lzdll -Zcrtdll | |
21 | AR=emxomfar | |
22 | ||
23 | PNGLIB=png.lib | |
24 | IMPLIB=emximp | |
25 | SHAREDLIB=png.dll | |
26 | SHAREDLIBIMP=pngdll.lib | |
27 | ||
28 | OBJS = 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 | ||
34 | all: $(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 | ||
45 | pngtest.exe: pngtest.o png.dll pngdll.lib | |
46 | $(CC) -o $@ $(CFLAGS) $< $(LDFLAGS) | |
47 | ||
48 | test: pngtest.exe | |
49 | ./pngtest.exe | |
50 | ||
51 | clean: | |
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 |
56 | png.o png.pic.o: png.h pngconf.h pngpriv.h |
57 | pngerror.o pngerror.pic.o: png.h pngconf.h pngpriv.h | |
58 | pngrio.o pngrio.pic.o: png.h pngconf.h pngpriv.h | |
59 | pngwio.o pngwio.pic.o: png.h pngconf.h pngpriv.h | |
60 | pngmem.o pngmem.pic.o: png.h pngconf.h pngpriv.h | |
61 | pngset.o pngset.pic.o: png.h pngconf.h pngpriv.h | |
62 | pngget.o pngget.pic.o: png.h pngconf.h pngpriv.h | |
63 | pngread.o pngread.pic.o: png.h pngconf.h pngpriv.h | |
64 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pngpriv.h | |
65 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pngpriv.h | |
66 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pngpriv.h | |
67 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pngpriv.h | |
68 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pngpriv.h | |
69 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pngpriv.h | |
70 | pngpread.o pngpread.pic.o: png.h pngconf.h pngpriv.h | |
0272a10d VZ |
71 | |
72 | pngtest.o: png.h pngconf.h |