This repository has been archived on 2023-11-11. You can view files and clone it, but cannot push or open issues or pull requests.
libpng/contrib/pngminus/makefile.std

66 lines
1.3 KiB
Plaintext
Raw Normal View History

1999-10-23 13:39:18 +00:00
# Makefile for PngMinus (png2pnm and pnm2png)
# Linux / Unix
#CC=cc
CC=gcc
LD=$(CC)
2001-10-19 01:55:13 +00:00
RM=rm -f
#PNGPATH = /usr/local
2002-03-08 07:31:27 +00:00
#PNGINC = -I$(PNGPATH)/include/libpng12
#PNGLIB = -L$(PNGPATH)/lib -lpng12
#PNGLIBS = $(PNGPATH)/lib/libpng12.a
2001-10-19 01:55:13 +00:00
PNGINC = -I../..
PNGLIB = -L../.. -lpng
PNGLIBS = ../../libpng.a
#ZPATH = /usr/local
#ZINC = -I$(ZPATH)/include
#ZLIB = -L$(ZPATH)/lib -lz
#ZLIBS = $(ZPATH)/lib/libz.a
ZINC = -I../../../zlib
ZLIB = -L../../../zlib -lz
ZLIBS = ../../../zlib/libz.a
CFLAGS=$(PNGINC) $(ZINC)
LDLIBS=$(PNGLIB) $(ZLIB)
LDLIBSS=$(PNGLIBS) $(ZLIBS)
1999-10-23 13:39:18 +00:00
C=.c
O=.o
L=.a
E=
# dependencies
2001-10-19 01:55:13 +00:00
#all: png2pnm$(E) pnm2png$(E)
all: png2pnm$(E) pnm2png$(E) png2pnm-static$(E) pnm2png-static$(E)
1999-10-23 13:39:18 +00:00
png2pnm$(O): png2pnm$(C)
2001-10-19 01:55:13 +00:00
$(CC) -c $(CFLAGS) png2pnm$(C)
1999-10-23 13:39:18 +00:00
png2pnm$(E): png2pnm$(O)
$(LD) $(LDFLAGS) -o png2pnm$(E) png2pnm$(O) $(LDLIBS) -lm
2001-10-19 01:55:13 +00:00
png2pnm-static$(E): png2pnm$(O)
$(LD) $(LDFLAGS) -o png2pnm-static$(E) png2pnm$(O) $(LDLIBSS) -lm
1999-10-23 13:39:18 +00:00
pnm2png$(O): pnm2png$(C)
2001-10-19 01:55:13 +00:00
$(CC) -c $(CFLAGS) pnm2png$(C)
1999-10-23 13:39:18 +00:00
pnm2png$(E): pnm2png$(O)
$(LD) $(LDFLAGS) -o pnm2png$(E) pnm2png$(O) $(LDLIBS) -lm
2001-10-19 01:55:13 +00:00
pnm2png-static$(E): pnm2png$(O)
$(LD) $(LDFLAGS) -o pnm2png-static$(E) pnm2png$(O) $(LDLIBSS) -lm
1999-10-23 13:39:18 +00:00
clean:
$(RM) png2pnm$(O)
$(RM) pnm2png$(O)
$(RM) png2pnm$(E)
$(RM) pnm2png$(E)
2001-10-19 01:55:13 +00:00
$(RM) png2pnm-static$(E)
$(RM) pnm2png-static$(E)
1999-10-23 13:39:18 +00:00
# End of makefile for png2pnm / pnm2png