VirtualBox

source: vbox/trunk/src/libs/libpng-1.2.8/scripts/makefile.tc3@ 35628

Last change on this file since 35628 was 6395, checked in by vboxsync, 17 years ago

export libpng and zlib so Windows and OS/2 build cleanly.

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1# Makefile for libpng
2# TurboC/C++ (Note: All modules are compiled in C mode)
3
4# To use, do "make -fmakefile.tc3"
5
6# ----- Turbo C 3.00 (can be modified to work with earlier versions) -----
7
8MODEL=l
9CFLAGS=-O2 -Z -m$(MODEL) -I..\zlib
10#CFLAGS=-D_NO_PROTO -O2 -Z -m$(MODEL) -I..\zlib # Turbo C older than 3.00
11CC=tcc
12LD=tcc
13LIB=tlib
14LDFLAGS=-m$(MODEL) -L..\zlib
15O=.obj
16E=.exe
17
18# variables
19OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
20OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
21OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
22OBJSL1 = +png$(O) +pngset$(O) +pngget$(O) +pngrutil$(O) +pngtrans$(O)
23OBJSL2 = +pngwutil$(O) +pngmem$(O) +pngpread$(O) +pngread$(O) +pngerror$(O)
24OBJSL3 = +pngwrite$(O) +pngrtran$(O) +pngwtran$(O) +pngrio$(O) +pngwio$(O)
25
26all: libpng$(MODEL).lib pngtest$(E)
27
28pngtest: pngtest$(E)
29
30test: pngtest$(E)
31 pngtest$(E)
32
33png$(O): png.h pngconf.h
34 $(CC) -c $(CFLAGS) $*.c
35
36pngset$(O): png.h pngconf.h
37 $(CC) -c $(CFLAGS) $*.c
38
39pngget$(O): png.h pngconf.h
40 $(CC) -c $(CFLAGS) $*.c
41
42pngread$(O): png.h pngconf.h
43 $(CC) -c $(CFLAGS) $*.c
44
45pngpread$(O): png.h pngconf.h
46 $(CC) -c $(CFLAGS) $*.c
47
48pngrtran$(O): png.h pngconf.h
49 $(CC) -c $(CFLAGS) $*.c
50
51pngrutil$(O): png.h pngconf.h
52 $(CC) -c $(CFLAGS) $*.c
53
54pngerror$(O): png.h pngconf.h
55 $(CC) -c $(CFLAGS) $*.c
56
57pngmem$(O): png.h pngconf.h
58 $(CC) -c $(CFLAGS) $*.c
59
60pngrio$(O): png.h pngconf.h
61 $(CC) -c $(CFLAGS) $*.c
62
63pngwio$(O): png.h pngconf.h
64 $(CC) -c $(CFLAGS) $*.c
65
66pngtest$(O): png.h pngconf.h
67 $(CC) -c $(CFLAGS) $*.c
68
69pngtrans$(O): png.h pngconf.h
70 $(CC) -c $(CFLAGS) $*.c
71
72pngwrite$(O): png.h pngconf.h
73 $(CC) -c $(CFLAGS) $*.c
74
75pngwtran$(O): png.h pngconf.h
76 $(CC) -c $(CFLAGS) $*.c
77
78pngwutil$(O): png.h pngconf.h
79 $(CC) -c $(CFLAGS) $*.c
80
81libpng$(MODEL).lib: $(OBJS1) $(OBJS2) $(OBJS3)
82 $(LIB) libpng$(MODEL) +$(OBJSL1)
83 $(LIB) libpng$(MODEL) +$(OBJSL2)
84 $(LIB) libpng$(MODEL) +$(OBJSL3)
85
86pngtest$(E): pngtest$(O) libpng$(MODEL).lib
87 $(LD) $(LDFLAGS) pngtest.obj libpng$(MODEL).lib zlib_$(MODEL).lib
88
89# End of makefile for libpng
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