2009-05-19 14:10:55 -04:00
|
|
|
# Makefile for PngMinus (pngm2pnm)
|
|
|
|
# Linux / Unix
|
|
|
|
|
|
|
|
#CC=cc
|
|
|
|
CC=gcc
|
|
|
|
LD=$(CC)
|
|
|
|
|
|
|
|
RM=rm -f
|
|
|
|
|
2009-12-11 08:56:25 -05:00
|
|
|
CFLAGS=-DPNG_USER_CONFIG -DNO_GZCOMPRESS -DNO_GZIP \
|
2009-05-19 14:10:55 -04:00
|
|
|
-DdeflateParams\(a,b,c\)=Z_OK -I. -O1
|
|
|
|
|
|
|
|
C=.c
|
|
|
|
O=.o
|
|
|
|
L=.a
|
|
|
|
E=
|
|
|
|
|
2010-02-22 00:07:13 -05:00
|
|
|
ZOBJS = adler32$(O) crc32$(O) \
|
2009-05-19 14:10:55 -04:00
|
|
|
infback$(O) inffast$(O) inflate$(O) inftrees$(O) \
|
|
|
|
trees$(O) uncompr$(O) zutil$(O)
|
|
|
|
|
|
|
|
OBJS = pngm2pnm$(O) png$(O) pngerror$(O) pngget$(O) pngmem$(O) \
|
|
|
|
pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) \
|
|
|
|
pngset$(O) pngtrans$(O) $(ZOBJS)
|
|
|
|
|
|
|
|
# implicit make rules -------------------------------------------------------
|
|
|
|
|
2010-03-08 22:28:21 -05:00
|
|
|
.c$(O): png.h pngconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngusr.h zlib.h
|
2009-05-19 14:10:55 -04:00
|
|
|
$(CC) -c $(CFLAGS) $<
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
|
|
|
|
all: pngm2pnm$(E)
|
|
|
|
|
|
|
|
pngm2pnm$(E): $(OBJS)
|
|
|
|
$(LD) -o pngm2pnm$(E) $(OBJS)
|
|
|
|
strip pngm2pnm$(E)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) pngm2pnm$(O)
|
|
|
|
$(RM) pngm2pnm$(E)
|
|
|
|
$(RM) $(OBJS)
|
|
|
|
|
|
|
|
# End of makefile for pngm2pnm
|