2009-05-19 14:10:55 -04:00
|
|
|
# Makefile for PngMinus (pnm2pngm)
|
|
|
|
# Linux / Unix
|
|
|
|
|
|
|
|
#CC=cc
|
|
|
|
CC=gcc
|
|
|
|
LD=$(CC)
|
|
|
|
|
|
|
|
RM=rm -f
|
|
|
|
|
2009-12-11 08:56:25 -05:00
|
|
|
CFLAGS=-DPNG_USER_CONFIG -DNO_GZIP -I. -O1
|
2009-05-19 14:10:55 -04:00
|
|
|
|
|
|
|
C=.c
|
|
|
|
O=.o
|
|
|
|
L=.a
|
|
|
|
E=
|
|
|
|
|
2010-02-22 00:07:13 -05:00
|
|
|
ZOBJS = adler32$(O) compress$(O) crc32$(O) deflate$(O) \
|
2009-05-19 14:10:55 -04:00
|
|
|
dummy_inflate$(O) \
|
|
|
|
trees$(O) uncompr$(O) zutil$(O)
|
|
|
|
|
|
|
|
OBJS = pnm2pngm$(O) png$(O) pngerror$(O) pngget$(O) pngmem$(O) \
|
|
|
|
pngset$(O) pngtrans$(O) pngwio$(O) pngwrite$(O) \
|
|
|
|
pngwtran$(O) pngwutil$(O) $(ZOBJS)
|
|
|
|
|
|
|
|
# implicit make rules -------------------------------------------------------
|
|
|
|
|
2010-02-07 19:08:50 -05:00
|
|
|
.c$(O): png.h pngconf.h pngpriv.h pngstruct.h pnginfo.h pngusr.h zlib.h
|
2009-05-19 14:10:55 -04:00
|
|
|
$(CC) -c $(CFLAGS) $<
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
|
|
|
|
all: pnm2pngm$(E)
|
|
|
|
|
|
|
|
pnm2pngm$(E): $(OBJS)
|
|
|
|
$(LD) -o pnm2pngm$(E) $(OBJS)
|
|
|
|
strip pnm2pngm$(E)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) pnm2pngm$(O)
|
|
|
|
$(RM) pnm2pngm$(E)
|
|
|
|
$(RM) $(OBJS)
|
|
|
|
|
|
|
|
# End of makefile for pnm2pngm
|