Blame thirdparty/libpng-1.6.21/contrib/pngminus/makefile.std
|
fukasawa |
e60969 |
# Makefile for PngMinus (png2pnm and pnm2png)
|
|
fukasawa |
e60969 |
# Linux / Unix
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
#CC=cc
|
|
fukasawa |
e60969 |
CC=gcc
|
|
fukasawa |
e60969 |
LD=$(CC)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
RM=rm -f
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
#PNGPATH = /usr/local
|
|
fukasawa |
e60969 |
#PNGINC = -I$(PNGPATH)/include/libpng16
|
|
fukasawa |
e60969 |
#PNGLIB = -L$(PNGPATH)/lib -lpng16
|
|
fukasawa |
e60969 |
#PNGLIBS = $(PNGPATH)/lib/libpng16.a
|
|
fukasawa |
e60969 |
PNGINC = -I../..
|
|
fukasawa |
e60969 |
PNGLIB = -L../.. -lpng
|
|
fukasawa |
e60969 |
PNGLIBS = ../../libpng.a
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
#ZPATH = /usr/local
|
|
fukasawa |
e60969 |
#ZINC = -I$(ZPATH)/include
|
|
fukasawa |
e60969 |
#ZLIB = -L$(ZPATH)/lib -lz
|
|
fukasawa |
e60969 |
#ZLIBS = $(ZPATH)/lib/libz.a
|
|
fukasawa |
e60969 |
ZINC = -I../../../zlib
|
|
fukasawa |
e60969 |
ZLIB = -L../../../zlib -lz
|
|
fukasawa |
e60969 |
ZLIBS = ../../../zlib/libz.a
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
CPPFLAGS=$(PNGINC) $(ZINC)
|
|
fukasawa |
e60969 |
CFLAGS=
|
|
fukasawa |
e60969 |
LDLIBS=$(PNGLIB) $(ZLIB)
|
|
fukasawa |
e60969 |
LDLIBSS=$(PNGLIBS) $(ZLIBS)
|
|
fukasawa |
e60969 |
C=.c
|
|
fukasawa |
e60969 |
O=.o
|
|
fukasawa |
e60969 |
L=.a
|
|
fukasawa |
e60969 |
E=
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# dependencies
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
#all: png2pnm$(E) pnm2png$(E)
|
|
fukasawa |
e60969 |
all: png2pnm$(E) pnm2png$(E) png2pnm-static$(E) pnm2png-static$(E)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
png2pnm$(O): png2pnm$(C)
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) png2pnm$(C)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
png2pnm$(E): png2pnm$(O)
|
|
fukasawa |
e60969 |
$(LD) $(LDFLAGS) -o png2pnm$(E) png2pnm$(O) $(LDLIBS) -lm
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
png2pnm-static$(E): png2pnm$(O)
|
|
fukasawa |
e60969 |
$(LD) $(LDFLAGS) -o png2pnm-static$(E) png2pnm$(O) $(LDLIBSS) -lm
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pnm2png$(O): pnm2png$(C)
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) pnm2png$(C)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pnm2png$(E): pnm2png$(O)
|
|
fukasawa |
e60969 |
$(LD) $(LDFLAGS) -o pnm2png$(E) pnm2png$(O) $(LDLIBS) -lm
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pnm2png-static$(E): pnm2png$(O)
|
|
fukasawa |
e60969 |
$(LD) $(LDFLAGS) -o pnm2png-static$(E) pnm2png$(O) $(LDLIBSS) -lm
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
clean:
|
|
fukasawa |
e60969 |
$(RM) png2pnm$(O)
|
|
fukasawa |
e60969 |
$(RM) pnm2png$(O)
|
|
fukasawa |
e60969 |
$(RM) png2pnm$(E)
|
|
fukasawa |
e60969 |
$(RM) pnm2png$(E)
|
|
fukasawa |
e60969 |
$(RM) png2pnm-static$(E)
|
|
fukasawa |
e60969 |
$(RM) pnm2png-static$(E)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# End of makefile for png2pnm / pnm2png
|