diff options
Diffstat (limited to 'analyzer/Makefile')
-rw-r--r-- | analyzer/Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/analyzer/Makefile b/analyzer/Makefile new file mode 100644 index 00000000..6a447ea7 --- /dev/null +++ b/analyzer/Makefile @@ -0,0 +1,48 @@ +ifeq ($(SRCDIR)x,x) + SRCDIR = $(CURDIR)/.. + BUILDDIR = $(SRCDIR) +endif +SUBDIR = analyzer +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 = pamfile pamslice pamsumm pamtilt \ + pgmhist pnmhistmap ppmhist pgmminkowski +MATHBINARIES = pamsharpmap pamsharpness pgmtexture pnmpsnr + +BINARIES = $(PORTBINARIES) $(MATHBINARIES) +SCRIPT = + +OBJECTS = $(BINARIES:%=%.o) + +# 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. + +MERGEBINARIES = $(BINARIES) +MERGE_OBJECTS = $(MERGEBINARIES:%=%.o2) + +.PHONY: all +all: $(BINARIES) + +include $(SRCDIR)/Makefile.common + +install.bin: install.bin.local +.PHONY: install.bin.local +install.bin.local: $(PKGDIR)/bin +# Remember that $(SYMLINK) might just be a copy command. + cd $(PKGDIR)/bin ; \ + $(SYMLINK) pamslice$(EXE) pgmslice + cd $(PKGDIR)/bin ; \ + $(SYMLINK) pamfile$(EXE) pnmfile + +FORCE: + |