1999-10-23 09:39:18 -04:00
|
|
|
# Makefile for PngMinus (png2pnm and pnm2png)
|
|
|
|
# Linux / Unix
|
|
|
|
|
|
|
|
CC=cc -O
|
|
|
|
LD=cc -O
|
|
|
|
#CC=gcc -O
|
|
|
|
#LD=gcc -O
|
|
|
|
LB=ar
|
|
|
|
RM=rm
|
|
|
|
CP=cp
|
|
|
|
|
|
|
|
PNGPATH = /usr/local
|
1999-11-27 11:22:33 -05:00
|
|
|
PNGINC = $(PNGPATH)/include
|
|
|
|
#PNGLIB = $(PNGPATH)/lib -lpng
|
1999-10-23 09:39:18 -04:00
|
|
|
PNGLIB = $(PNGPATH)/lib/libpng.a
|
|
|
|
|
|
|
|
ZPATH = /usr/local
|
1999-11-27 11:22:33 -05:00
|
|
|
ZINC = $(ZPATH)/include
|
|
|
|
#ZLIB = $(ZPATH)/lib -lz
|
1999-10-23 09:39:18 -04:00
|
|
|
ZLIB = $(ZPATH)/lib/libz.a
|
|
|
|
|
|
|
|
CCFLAGS=-I$(PNGINC) -I$(ZINC)
|
|
|
|
LDFLAGS=-L$(PNGLIB) -L$(ZLIB)
|
|
|
|
C=.c
|
|
|
|
O=.o
|
|
|
|
L=.a
|
|
|
|
E=
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
|
|
|
|
all: png2pnm$(E) pnm2png$(E)
|
|
|
|
|
|
|
|
png2pnm$(O): png2pnm$(C)
|
|
|
|
$(CC) -c $(CCFLAGS) png2pnm$(C)
|
|
|
|
|
|
|
|
png2pnm$(E): png2pnm$(O)
|
|
|
|
$(LD) -o png2pnm$(E) png2pnm$(O) $(LDFLAGS) -lpng -lz -lm
|
|
|
|
|
|
|
|
pnm2png$(O): pnm2png$(C)
|
|
|
|
$(CC) -c $(CCFLAGS) pnm2png$(C)
|
|
|
|
|
|
|
|
pnm2png$(E): pnm2png$(O)
|
|
|
|
$(LD) -o pnm2png$(E) pnm2png$(O) $(LDFLAGS) -lpng -lz -lm
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) png2pnm$(O)
|
|
|
|
$(RM) pnm2png$(O)
|
|
|
|
$(RM) png2pnm$(E)
|
|
|
|
$(RM) pnm2png$(E)
|
|
|
|
|
|
|
|
# End of makefile for png2pnm / pnm2png
|
|
|
|
|