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
2001-10-19 01:55:13 +00:00
#CC=cc
CC=gcc
LD=$(CC)
RM=rm -f
#PNGPATH = /usr/local
#PNGINC = -I$(PNGPATH)/include
#PNGLIB = -L$(PNGPATH)/lib -lpng
#PNGLIBS = $(PNGPATH)/lib/libpng.a
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=-O3 $(PNGINC) $(ZINC)
LDFLAGS=$(PNGLIB) $(ZLIB)
LDFLAGSS=$(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)
2001-10-19 01:55:13 +00:00
$(LD) -o png2pnm$(E) png2pnm$(O) $(LDFLAGS) -lm
png2pnm-static$(E): png2pnm$(O)
$(LD) -o png2pnm-static$(E) png2pnm$(O) $(LDFLAGSS) -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)
2001-10-19 01:55:13 +00:00
$(LD) -o pnm2png$(E) pnm2png$(O) $(LDFLAGS) -lm
pnm2png-static$(E): pnm2png$(O)
$(LD) -o pnm2png-static$(E) pnm2png$(O) $(LDFLAGSS) -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