# Makefile for pbmplus programs. # # Copyright (C) 1989, 1991, 1994, 1999 by Jef Poskanzer. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, provided # that the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation. This software is provided "as is" without express or # implied warranty. # Default values for inherited defines. CC = cc CFLAGS = -O -ansi -pedantic -U__STRICT_ANSI__ -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-long-long LDFLAGS = -s RGBDEF = -DRGB_DB=\"/usr/lib/X11/rgb\" TIFFDEF = -DLIBTIFF TIFFDIR = /usr/local/lib TIFFINC = -I$(TIFFDIR) TIFFLIB = -L$(TIFFDIR) -ltiff DEPTIFFLIB = $(TIFFDIR)/libtiff.a PNMTIFFBINS = tifftopnm pnmtotiff PNMTIFFOBJS = tifftopnm.o pnmtotiff.o INSTBINS = /usr/local/bin/pbmplus INSTSCRIPTS = $(INSTBINS) INSTMANS1 = /usr/local/man/man1 SUFFMANS1 = 1 MANCP = cp all: merge install: all install.merge install.scripts install.man INCLUDE = -I../inc -I/usr/local/include ALLCFLAGS = $(CFLAGS) $(RGBDEF) $(TIFFDEF) $(TIFFINC) $(INCLUDE) ALLLDFLAGS = -L. $(LDFLAGS)