15f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott# Makefile for PngMinus (rpng2) 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 Scott#XINC = -I/usr/include # old-style, stock X distributions 115f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott#XLIB = -L/usr/lib/X11 -lX11 # (including SGI IRIX) 125f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 135f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott#XINC = -I/usr/openwin/include # Sun workstations (OpenWindows) 145f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott#XLIB = -L/usr/openwin/lib -lX11 155f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 165f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottXINC = -I/usr/X11R6/include # new X distributions (X.org, etc.) 175f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottXLIB = -L/usr/X11R6/lib -lX11 185f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott#XLIB = -L/usr/X11R6/lib64 -lX11 # e.g., Red Hat on AMD64 195f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 205f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott#XINC = -I/usr/local/include # FreeBSD 215f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott#XLIB = -L/usr/local/lib -lX11 225f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 235f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott#LIBS = $(XLIB) 245f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottLIBS = $(XLIB) -lm #platforms that need libm 255f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 265f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottCFLAGS=-DPNG_USER_CONFIG -DNO_GZCOMPRESS -DNO_GZIP \ 275f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott -DdeflateParams\(a,b,c\)=Z_OK -I. $(XINC) -O1 285f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 295f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottC=.c 305f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottO=.o 315f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottL=.a 325f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottE= 335f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 345f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottZOBJS = adler32$(O) crc32$(O) \ 355f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott infback$(O) inffast$(O) inflate$(O) inftrees$(O) \ 365f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott trees$(O) uncompr$(O) zutil$(O) 375f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 385f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick ScottOBJS = rpng2-x$(O) readpng2$(O) png$(O) pngerror$(O) pngget$(O) pngmem$(O) \ 395f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott pngpread$(O) pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) \ 405f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott pngset$(O) pngtrans$(O) $(ZOBJS) 415f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 425f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott# implicit make rules ------------------------------------------------------- 435f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 445f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott.c$(O): png.h pngconf.h readpng2.h pngusr.h zlib.h 455f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott $(CC) -c $(CFLAGS) $< 465f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 475f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott# dependencies 485f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 495f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scottall: rpng2-x$(E) 505f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 515f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scottrpng2-x$(E): $(OBJS) 525f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott $(LD) -o rpng2-x$(E) $(OBJS) $(LIBS) 535f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott strip rpng2-x$(E) 545f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 555f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scottclean: 565f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott $(RM) rpng2-x$(O) 575f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott $(RM) rpng2-x$(E) 585f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott $(RM) $(OBJS) 595f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott 605f6bd84e375226bf228fc8ac90318957ec9e1e7fPatrick Scott# End of makefile for rpng2-x 61