| 1 |
ifeq ($(SRCDIR)x,x) |
| 2 |
SRCDIR = $(CURDIR)/.. |
| 3 |
BUILDDIR = $(SRCDIR) |
| 4 |
endif |
| 5 |
SUBDIR = analyzer |
| 6 |
VPATH=.:$(SRCDIR)/$(SUBDIR) |
| 7 |
|
| 8 |
include $(BUILDDIR)/config.mk |
| 9 |
|
| 10 |
# We tend to separate out the build targets so that we don't have |
| 11 |
# any more dependencies for a given target than it really needs. |
| 12 |
# That way, if there is a problem with a dependency, we can still |
| 13 |
# successfully build all the stuff that doesn't depend upon it. |
| 14 |
# This package is so big, it's useful even when some parts won't |
| 15 |
# build. |
| 16 |
|
| 17 |
PORTBINARIES = \ |
| 18 |
pamfind \ |
| 19 |
pamgetcolor \ |
| 20 |
pamfile \ |
| 21 |
pammosaicknit \ |
| 22 |
pamslice \ |
| 23 |
pamsumm \ |
| 24 |
pamtable \ |
| 25 |
pamtilt \ |
| 26 |
pbmminkowski \ |
| 27 |
pgmhist \ |
| 28 |
pnmhistmap \ |
| 29 |
ppmhist \ |
| 30 |
pgmminkowski \ |
| 31 |
|
| 32 |
MATHBINARIES = \ |
| 33 |
pamsharpmap \ |
| 34 |
pamsharpness \ |
| 35 |
pgmtexture \ |
| 36 |
pnmpsnr \ |
| 37 |
|
| 38 |
BINARIES = $(PORTBINARIES) $(MATHBINARIES) |
| 39 |
SCRIPT = |
| 40 |
|
| 41 |
OBJECTS = $(BINARIES:%=%.o) |
| 42 |
|
| 43 |
# We don't include programs that have special library dependencies in the |
| 44 |
# merge scheme, because we don't want those dependencies to prevent us |
| 45 |
# from building all the other programs. |
| 46 |
|
| 47 |
MERGEBINARIES = $(BINARIES) |
| 48 |
MERGE_OBJECTS = $(MERGEBINARIES:%=%.o2) |
| 49 |
|
| 50 |
HAVE_MERGE_COMPAT=YES |
| 51 |
|
| 52 |
.PHONY: all |
| 53 |
all: $(BINARIES) |
| 54 |
|
| 55 |
include $(SRCDIR)/common.mk |
| 56 |
|
| 57 |
install.bin install.merge: install.bin.local |
| 58 |
.PHONY: install.bin.local |
| 59 |
install.bin.local: $(PKGDIR)/bin |
| 60 |
# Remember that $(SYMLINK) might just be a copy command. |
| 61 |
cd $(PKGDIR)/bin ; \ |
| 62 |
$(SYMLINK) pamslice$(EXE) pgmslice$(EXE) |
| 63 |
cd $(PKGDIR)/bin ; \ |
| 64 |
$(SYMLINK) pamfile$(EXE) pnmfile$(EXE) |
| 65 |
|
| 66 |
mergecomptrylist: |
| 67 |
cat /dev/null >$@ |
| 68 |
echo "TRY(\"pgmslice\", main_pamslice);" >>$@ |
| 69 |
echo "TRY(\"pnmfile\", main_pamfile);" >>$@ |
| 70 |
|
| 71 |
FORCE: |
| 72 |
|