--- Makefile.orig Wed Jan 26 12:47:35 1994 +++ Makefile Wed Feb 25 02:22:04 1998 @@ -48,31 +48,31 @@ # By the way, you must have at least version 2.4 of libtiff. Earlier # versions will not work. TIFFDEF = -DLIBTIFF -TIFFINC = -I../libtiff -TIFFLIB = ../libtiff/libtiff.a +TIFFINC = -I$(PREFIX)/include +TIFFLIB = -L$(PREFIX)/lib -ltiff -ljpeg TIFFBINARIES = tifftopnm pnmtotiff TIFFOBJECTS = tifftopnm.o pnmtotiff.o # CONFIGURE: Define the directory that you want the binaries copied to. # If you need scripts and binaries to be in different directories, you # can set that up too. -INSTALLBINARIES = /usr/local/netpbm +INSTALLBINARIES = $(PREFIX)/bin INSTALLSCRIPTS = $(INSTALLBINARIES) # CONFIGURE: Define the directories that you want the manual sources copied to, # plus the suffix you want them to have. -INSTALLMANUALS1 = /usr/local/man/man1 +INSTALLMANUALS1 = $(PREFIX)/man/man1 SUFFIXMANUALS1 = 1 -INSTALLMANUALS3 = /usr/local/man/man3 +INSTALLMANUALS3 = $(PREFIX)/man/man3 SUFFIXMANUALS3 = 3 -INSTALLMANUALS5 = /usr/local/man/man5 +INSTALLMANUALS5 = $(PREFIX)/man/man5 SUFFIXMANUALS5 = 5 # CONFIGURE: Normally the man pages are installed using "cp". By changing # this define you can use something else, for example a script that calls # compress or pack. The ../mantocat is used on systems which use man pages # in the "cat" format. -MANCP = cp +MANCP = ${INSTALL_MAN} #MANCP = ../mantocat # CONFIGURE: Normally the Makefiles build and install separate binaries for @@ -87,10 +87,10 @@ # # Note that if you make a "merge", the executables don't get created # until you do the install. -#all: binaries -#install: install.bin install.man -all: merge -install: install.merge install.man +all: binaries +install: install.bin install.man +#all: merge +#install: install.merge install.man # End of configurable definitions. @@ -99,8 +99,8 @@ SUBDIRS = pbm pgm ppm pnm binaries: - ./stamp-date - ( echo "libtiff" ; cd libtiff ; make ) +# ./stamp-date +# ( echo "libtiff" ; cd libtiff ; make ) for i in $(SUBDIRS) ; do \ ( echo $$i ; cd $$i ; $(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'TIFFDEF=$(TIFFDEF)' 'TIFFINC=$(TIFFINC)' 'TIFFLIB=$(TIFFLIB)' 'TIFFBINARIES=$(TIFFBINARIES)' 'TIFFOBJECTS=$(TIFFOBJECTS)' 'LDFLAGS=$(LDFLAGS)' binaries ); \ done