/* Imakefile for pnm tools * * Copyright (C) 1991 Rainer Klute * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation, and that the copyright holder's name not be used in * advertising or publicity pertaining to distribution of the software * without specific, written prior permission. The copyright holder makes * no representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty. */ #define LibPnm libpnm.a #define DepLibPnm LibPnm #include <../Pbmplus.tmpl> #if BuildLibTiff CURRENTLIBS = $(LIBTIFF) $(LIBPNM) $(LIBPPM) $(LIBPGM) $(LIBPBM) CURRENTDEPLIBS = $(DEPLIBTIFF) $(DEPLIBPNM) $(DEPLIBPPM) $(DEPLIBPGM) $(DEPLIBPBM) INCLUDES = -I.. -I$(PBMDIR) -I$(PGMDIR) -I$(PPMDIR) -I$(TIFFDIR) DEFINES = -DLIBTIFF MERGE = pnmmerge TIFFMAN1 = tifftopnm.1 pnmtotiff.1 TIFFSRCS = tifftopnm.c pnmtotiff.c TIFFOBJS = tifftopnm.o pnmtotiff.o TIFFBINS = tifftopnm pnmtotiff #else CURRENTLIBS = $(LIBPNM) $(LIBPPM) $(LIBPGM) $(LIBPBM) CURRENTDEPLIBS = $(DEPLIBPNM) $(DEPLIBPPM) $(DEPLIBPGM) $(DEPLIBPBM) INCLUDES = -I.. -I$(PBMDIR) -I$(PGMDIR) -I$(PPMDIR) MERGE = pnmmerge TIFFMAN1 = TIFFSRCS = TIFFOBJS = TIFFBINS = #endif MAN1 = pnmarith.1 pnmcat.1 pnmconvol.1 pnmcrop.1 pnmcut.1 \ pnmdepth.1 pnmenlarge.1 pnmfile.1 pnmflip.1 pnminvert.1 \ pnmnoraw.1 pnmpaste.1 pnmscale.1 pnmtile.1 pnmtops.1 \ pnmtorast.1 pnmtoxwd.1 rasttopnm.1 xwdtopnm.1 \ pnmgamma.1 pnmrotate.1 pnmshear.1 \ anytopnm.1 pnmindex.1 pnmmargin.1 pnmsmooth.1 \ $(TIFFMAN1) MAN3 = libpnm.3 MAN5 = pnm.5 SRCS = pnmarith.c pnmcat.c pnmconvol.c pnmcrop.c pnmcut.c \ pnmdepth.c pnmenlarge.c pnmfile.c pnmflip.c pnminvert.c \ pnmnoraw.c pnmpaste.c pnmscale.c pnmtile.c pnmtops.c \ pnmtorast.c pnmtoxwd.c rasttopnm.c xwdtopnm.c \ pnmgamma.c pnmrotate.c pnmshear.c \ $(TIFFSRCS) OBJS = pnmarith.o pnmcat.o pnmconvol.o pnmcrop.o pnmcut.o \ pnmdepth.o pnmenlarge.o pnmfile.o pnmflip.o pnminvert.o \ pnmnoraw.o pnmpaste.o pnmscale.o pnmtile.o pnmtops.o \ pnmtorast.o pnmtoxwd.o rasttopnm.o xwdtopnm.o \ pnmgamma.o pnmrotate.o pnmshear.o \ $(TIFFOBJS) BINS = pnmarith pnmcat pnmconvol pnmcrop pnmcut \ pnmdepth pnmenlarge pnmfile pnmflip pnminvert \ pnmnoraw pnmpaste pnmscale pnmtile pnmtops \ pnmtorast pnmtoxwd rasttopnm xwdtopnm \ pnmgamma pnmrotate pnmshear \ $(TIFFBINS) includes:: anytopnm.script pnmindex.script pnmmargin.script pnmsmooth.script anytopnm.script: $(LN) anytopnm anytopnm.script pnmindex.script: $(LN) pnmindex pnmindex.script pnmmargin.script: $(LN) pnmmargin pnmmargin.script pnmsmooth.script: $(LN) pnmsmooth pnmsmooth.script AllTarget($(LIBPNM) $(BINS)) DependTarget() NormalPbmplusProgramTarget(pnmarith) NormalPbmplusProgramTarget(pnmcat) NormalPbmplusProgramTarget(pnmconvol) NormalPbmplusProgramTarget(pnmcrop) NormalPbmplusProgramTarget(pnmcut) NormalPbmplusProgramTarget(pnmdepth) NormalPbmplusProgramTarget(pnmenlarge) NormalPbmplusProgramTarget(pnmfile) NormalPbmplusProgramTarget(pnmflip) NormalPbmplusProgramTarget(pnminvert) NormalPbmplusProgramTarget(pnmnoraw) NormalPbmplusProgramTarget(pnmpaste) NormalPbmplusProgramTarget(pnmscale) NormalPbmplusProgramTarget(pnmtile) NormalPbmplusProgramTarget(pnmtops) NormalPbmplusProgramTarget(pnmtorast) NormalPbmplusProgramTarget(pnmtoxwd) NormalPbmplusProgramTarget(rasttopnm) NormalPbmplusProgramTarget(xwdtopnm) NormalPbmplusMathProgramTarget(pnmgamma) NormalPbmplusMathProgramTarget(pnmrotate) NormalPbmplusMathProgramTarget(pnmshear) #if BuildLibTiff NormalPbmplusProgramTarget(tifftopnm) NormalPbmplusProgramTarget(pnmtotiff) #endif NormalLibraryObjectRule() NormalLibraryTarget(pnm,libpnm1.o libpnm2.o libpnm3.o libpnm4.o) #if InstallMerged NormalProgramTarget($(MERGE),$(MERGE).o $(OBJS),$(CURRENTDEPLIBS),$(CURRENTLIBS),-lm) #if InstallBinaries InstallProgram($(MERGE),$(PBMPLUSDIR)$(PBMPLUSBINDIR)) #endif #endif #if InstallBinaries InstallPbmplusPrograms($(BINS),$(PBMPLUSDIR)$(PBMPLUSBINDIR),$(INSTPGMFLAGS)) InstallScript(anytopnm,$(PBMPLUSDIR)$(PBMPLUSBINDIR)) InstallScript(pnmindex,$(PBMPLUSDIR)$(PBMPLUSBINDIR)) InstallScript(pnmmargin,$(PBMPLUSDIR)$(PBMPLUSBINDIR)) InstallScript(pnmsmooth,$(PBMPLUSDIR)$(PBMPLUSBINDIR)) #endif #if InstallManuals InstallMultipleMan($(MAN1),$(PBMPLUSDIR)$(PBMPLUSMANDIR)/man1) InstallMultipleMan($(MAN3),$(PBMPLUSDIR)$(PBMPLUSMANDIR)/man3) InstallMultipleMan($(MAN5),$(PBMPLUSDIR)$(PBMPLUSMANDIR)/man5) #endif #if InstallLibraries InstallLibrary(pnm,$(PBMPLUSDIR)$(PBMPLUSLIBDIR)) #endif #if InstallIncludes InstallMultipleFlags(pnm.h,$(PBMPLUSDIR)$(PBMPLUSINCDIR),$(INSTINCFLAGS)) #endif