1 # Makefile for PngMinus (png2pnm and pnm2png)
11 #PNGINC = -I$(PNGPATH)/include/libpng16
12 #PNGLIB = -L$(PNGPATH)/lib -lpng16
13 #PNGLIBS = $(PNGPATH)/lib/libpng16.a
15 PNGLIB = -L../.. -lpng
16 PNGLIBS = ../../libpng.a
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
26 CFLAGS=$(PNGINC) $(ZINC)
27 LDLIBS=$(PNGLIB) $(ZLIB)
28 LDLIBSS=$(PNGLIBS) $(ZLIBS)
36 #all: png2pnm$(E) pnm2png$(E)
37 all: png2pnm$(E) pnm2png$(E) png2pnm-static$(E) pnm2png-static$(E)
39 png2pnm$(O): png2pnm$(C)
40 $(CC) -c $(CFLAGS) png2pnm$(C)
42 png2pnm$(E): png2pnm$(O)
43 $(LD) $(LDFLAGS) -o png2pnm$(E) png2pnm$(O) $(LDLIBS) -lm
45 png2pnm-static$(E): png2pnm$(O)
46 $(LD) $(LDFLAGS) -o png2pnm-static$(E) png2pnm$(O) $(LDLIBSS) -lm
48 pnm2png$(O): pnm2png$(C)
49 $(CC) -c $(CFLAGS) pnm2png$(C)
51 pnm2png$(E): pnm2png$(O)
52 $(LD) $(LDFLAGS) -o pnm2png$(E) pnm2png$(O) $(LDLIBS) -lm
54 pnm2png-static$(E): pnm2png$(O)
55 $(LD) $(LDFLAGS) -o pnm2png-static$(E) pnm2png$(O) $(LDLIBSS) -lm
62 $(RM) png2pnm-static$(E)
63 $(RM) pnm2png-static$(E)
65 # End of makefile for png2pnm / pnm2png