Last change
on this file since 92274 was 76030, checked in by vboxsync, 6 years ago |
libpng-1.6.36: properly export to OSE, and while at it fix EOL style for shell scripts
|
-
Property svn:eol-style
set to
native
|
File size:
1.4 KB
|
Line | |
---|
1 | # Makefile for PngMinus (png2pnm and pnm2png)
|
---|
2 | # Linux / Unix
|
---|
3 |
|
---|
4 | #CC=cc
|
---|
5 | CC=gcc
|
---|
6 | LD=$(CC)
|
---|
7 |
|
---|
8 | RM=rm -f
|
---|
9 |
|
---|
10 | #PNGPATH = /usr/local
|
---|
11 | #PNGINC = -I$(PNGPATH)/include/libpng16
|
---|
12 | #PNGLIB = -L$(PNGPATH)/lib -lpng16
|
---|
13 | #PNGLIBS = $(PNGPATH)/lib/libpng16.a
|
---|
14 | PNGINC = -I../..
|
---|
15 | PNGLIB = -L../.. -lpng
|
---|
16 | PNGLIBS = ../../libpng.a
|
---|
17 |
|
---|
18 | #ZPATH = /usr/local
|
---|
19 | #ZINC = -I$(ZPATH)/include
|
---|
20 | #ZLIB = -L$(ZPATH)/lib -lz
|
---|
21 | #ZLIBS = $(ZPATH)/lib/libz.a
|
---|
22 | ZINC = -I../../../zlib
|
---|
23 | ZLIB = -L../../../zlib -lz
|
---|
24 | ZLIBS = ../../../zlib/libz.a
|
---|
25 |
|
---|
26 | CPPFLAGS=$(PNGINC) $(ZINC)
|
---|
27 | CFLAGS=
|
---|
28 | LDLIBS=$(PNGLIB) $(ZLIB)
|
---|
29 | LDLIBSS=$(PNGLIBS) $(ZLIBS)
|
---|
30 | C=.c
|
---|
31 | O=.o
|
---|
32 | L=.a
|
---|
33 | E=
|
---|
34 |
|
---|
35 | # dependencies
|
---|
36 |
|
---|
37 | #all: png2pnm$(E) pnm2png$(E)
|
---|
38 | all: png2pnm$(E) pnm2png$(E) png2pnm-static$(E) pnm2png-static$(E)
|
---|
39 |
|
---|
40 | png2pnm$(O): png2pnm$(C)
|
---|
41 | $(CC) -c $(CPPFLAGS) $(CFLAGS) png2pnm$(C)
|
---|
42 |
|
---|
43 | png2pnm$(E): png2pnm$(O)
|
---|
44 | $(LD) $(LDFLAGS) -o png2pnm$(E) png2pnm$(O) $(LDLIBS) -lm
|
---|
45 |
|
---|
46 | png2pnm-static$(E): png2pnm$(O)
|
---|
47 | $(LD) $(LDFLAGS) -o png2pnm-static$(E) png2pnm$(O) $(LDLIBSS) -lm
|
---|
48 |
|
---|
49 | pnm2png$(O): pnm2png$(C)
|
---|
50 | $(CC) -c $(CPPFLAGS) $(CFLAGS) pnm2png$(C)
|
---|
51 |
|
---|
52 | pnm2png$(E): pnm2png$(O)
|
---|
53 | $(LD) $(LDFLAGS) -o pnm2png$(E) pnm2png$(O) $(LDLIBS) -lm
|
---|
54 |
|
---|
55 | pnm2png-static$(E): pnm2png$(O)
|
---|
56 | $(LD) $(LDFLAGS) -o pnm2png-static$(E) pnm2png$(O) $(LDLIBSS) -lm
|
---|
57 |
|
---|
58 | clean:
|
---|
59 | $(RM) png2pnm$(O)
|
---|
60 | $(RM) pnm2png$(O)
|
---|
61 | $(RM) png2pnm$(E)
|
---|
62 | $(RM) pnm2png$(E)
|
---|
63 | $(RM) png2pnm-static$(E)
|
---|
64 | $(RM) pnm2png-static$(E)
|
---|
65 |
|
---|
66 | # End of makefile for png2pnm / pnm2png
|
---|
Note:
See
TracBrowser
for help on using the repository browser.