15f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott# Makefile for PngMinus (pnm2pngm) 25f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott# Linux / Unix 35f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 45f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott#CC=cc 55f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottCC=gcc 65f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottLD=$(CC) 75f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 85f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottRM=rm -f 95f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 105f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottCFLAGS=-DPNG_USER_CONFIG -DNO_GZIP -I. -O1 115f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 125f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottC=.c 135f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottO=.o 145f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottL=.a 155f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottE= 165f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 175f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottZOBJS = adler32$(O) compress$(O) crc32$(O) deflate$(O) \ 185f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott dummy_inflate$(O) \ 195f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott trees$(O) uncompr$(O) zutil$(O) 205f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 215f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottOBJS = pnm2pngm$(O) png$(O) pngerror$(O) pngget$(O) pngmem$(O) \ 225f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott pngset$(O) pngtrans$(O) pngwio$(O) pngwrite$(O) \ 235f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott pngwtran$(O) pngwutil$(O) $(ZOBJS) 245f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 255f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott# implicit make rules ------------------------------------------------------- 265f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 275f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott.c$(O): png.h pngconf.h pngusr.h zlib.h 285f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott $(CC) -c $(CFLAGS) $< 295f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 305f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott# dependencies 315f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 325f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scottall: pnm2pngm$(E) 335f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 345f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scottpnm2pngm$(E): $(OBJS) 355f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott $(LD) -o pnm2pngm$(E) $(OBJS) 365f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott strip pnm2pngm$(E) 375f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 385f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scottclean: 395f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott $(RM) pnm2pngm$(O) 405f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott $(RM) pnm2pngm$(E) 415f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott $(RM) $(OBJS) 425f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 435f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott# End of makefile for pnm2pngm 44