ifeq ($(SRCDIR)x,x) SRCDIR = $(CURDIR)/.. BUILDDIR = $(SRCDIR) endif SUBDIR = generator VPATH=.:$(SRCDIR)/$(SUBDIR) include $(BUILDDIR)/Makefile.config # We tend to separate out the build targets so that we don't have # any more dependencies for a given target than it really needs. # That way, if there is a problem with a dependency, we can still # successfully build all the stuff that doesn't depend upon it. # This package is so big, it's useful even when some parts won't # build. PORTBINARIES = pamseq pbmmake pbmtext pbmtextps pbmupc pgmnoise pgmramp \ ppmcolors ppmmake MATHBINARIES = pbmpage pgmcrater pgmkernel \ ppmcie ppmforge ppmpat ppmrough ppmwheel # We don't include programs that have special library dependencies in the # merge scheme, because we don't want those dependencies to prevent us # from building all the other programs. NOMERGEBINARIES = MERGEBINARIES = $(PORTBINARIES) $(MATHBINARIES) BINARIES = $(MERGEBINARIES) $(NOMERGEBINARIES) SCRIPTS = ppmrainbow OBJECTS = $(BINARIES:%=%.o) MERGE_OBJECTS = $(MERGEBINARIES:%=%.o2) .PHONY: all all: $(BINARIES) HEADERLINKS = pm_config.h pm.h pbm.h pgm.h ppm.h ppmcmap.h \ pnm.h pam.h shhopt.h \ nstring.h mallocvar.h pbmfont.h ppmdraw.h include $(SRCDIR)/Makefile.common