|
Packit |
78deda |
ifeq ($(SRCDIR)x,x)
|
|
Packit |
78deda |
SRCDIR = $(CURDIR)/..
|
|
Packit |
78deda |
BUILDDIR = $(SRCDIR)
|
|
Packit |
78deda |
endif
|
|
Packit |
78deda |
SUBDIR = generator
|
|
Packit |
78deda |
VPATH=.:$(SRCDIR)/$(SUBDIR)
|
|
Packit |
78deda |
|
|
Packit |
78deda |
include $(BUILDDIR)/config.mk
|
|
Packit |
78deda |
|
|
Packit |
78deda |
# We tend to separate out the build targets so that we don't have
|
|
Packit |
78deda |
# any more dependencies for a given target than it really needs.
|
|
Packit |
78deda |
# That way, if there is a problem with a dependency, we can still
|
|
Packit |
78deda |
# successfully build all the stuff that doesn't depend upon it.
|
|
Packit |
78deda |
# This package is so big, it's useful even when some parts won't
|
|
Packit |
78deda |
# build.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
PORTBINARIES = pamcrater pamgauss pamgradient \
|
|
Packit |
78deda |
pamseq pamshadedrelief pamstereogram \
|
|
Packit |
78deda |
pbmpage pbmmake pbmtext pbmupc \
|
|
Packit |
78deda |
pgmkernel pgmmake pgmnoise pgmramp \
|
|
Packit |
78deda |
ppmcie ppmcolors ppmforge ppmmake ppmpat ppmrough ppmwheel \
|
|
Packit |
78deda |
|
|
Packit |
78deda |
ifneq ($(DONT_HAVE_PROCESS_MGMT),Y)
|
|
Packit |
78deda |
PORTBINARIES += pbmtextps
|
|
Packit |
78deda |
endif
|
|
Packit |
78deda |
# We don't include programs that have special library dependencies in the
|
|
Packit |
78deda |
# merge scheme, because we don't want those dependencies to prevent us
|
|
Packit |
78deda |
# from building all the other programs.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
NOMERGEBINARIES =
|
|
Packit |
78deda |
MERGEBINARIES = $(PORTBINARIES)
|
|
Packit |
78deda |
|
|
Packit |
78deda |
|
|
Packit |
78deda |
BINARIES = $(MERGEBINARIES) $(NOMERGEBINARIES)
|
|
Packit |
78deda |
SCRIPTS = pgmcrater ppmrainbow
|
|
Packit |
78deda |
|
|
Packit |
78deda |
OBJECTS = $(BINARIES:%=%.o)
|
|
Packit |
78deda |
|
|
Packit |
78deda |
MERGE_OBJECTS = $(MERGEBINARIES:%=%.o2)
|
|
Packit |
78deda |
|
|
Packit |
78deda |
.PHONY: all
|
|
Packit |
78deda |
all: $(BINARIES)
|
|
Packit |
78deda |
|
|
Packit |
78deda |
include $(SRCDIR)/common.mk
|