VirtualBox

source: vbox/trunk/src/libs/libpng-1.2.53/scripts/makefile.os2@ 58100

Last change on this file since 58100 was 58100, checked in by vboxsync, 9 years ago

libpng 1.2.53 export fix

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
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
57pngerror.o pngerror.pic.o: png.h pngconf.h
58pngrio.o pngrio.pic.o: png.h pngconf.h
59pngwio.o pngwio.pic.o: png.h pngconf.h
60pngmem.o pngmem.pic.o: png.h pngconf.h
61pngset.o pngset.pic.o: png.h pngconf.h
62pngget.o pngget.pic.o: png.h pngconf.h
63pngread.o pngread.pic.o: png.h pngconf.h
64pngrtran.o pngrtran.pic.o: png.h pngconf.h
65pngrutil.o pngrutil.pic.o: png.h pngconf.h
66pngtrans.o pngtrans.pic.o: png.h pngconf.h
67pngwrite.o pngwrite.pic.o: png.h pngconf.h
68pngwtran.o pngwtran.pic.o: png.h pngconf.h
69pngwutil.o pngwutil.pic.o: png.h pngconf.h
70pngpread.o pngpread.pic.o: png.h pngconf.h
71
72pngtest.o: png.h pngconf.h
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette