Debian Codegraph @

generator/Makefile

raw
1 ifeq ($(SRCDIR)x,x)
2 SRCDIR = $(CURDIR)/..
3 BUILDDIR = $(SRCDIR)
4 endif
5 SUBDIR = generator
6 VPATH=.:$(SRCDIR)/$(SUBDIR)
7
8 include $(BUILDDIR)/config.mk
9
10 SUBDIRS = pamtris
11
12 # We tend to separate out the build targets so that we don't have
13 # any more dependencies for a given target than it really needs.
14 # That way, if there is a problem with a dependency, we can still
15 # successfully build all the stuff that doesn't depend upon it.
16 # This package is so big, it's useful even when some parts won't
17 # build.
18
19 PORTBINARIES = pamcrater pamgauss pamgradient \
20 pamseq pamshadedrelief pamstereogram \
21 pbmpage pbmmake pbmnoise pbmtext pbmupc \
22 pgmkernel pgmmake pgmnoise pgmramp \
23 ppmcie ppmcolors ppmforge ppmmake ppmpat ppmrough ppmwheel \
24
25 ifneq ($(DONT_HAVE_PROCESS_MGMT),Y)
26 PORTBINARIES += pbmtextps
27 endif
28 # We don't include programs that have special library dependencies in the
29 # merge scheme, because we don't want those dependencies to prevent us
30 # from building all the other programs.
31
32 NOMERGEBINARIES =
33 MERGEBINARIES = $(PORTBINARIES)
34
35
36 BINARIES = $(MERGEBINARIES) $(NOMERGEBINARIES)
37 SCRIPTS = pgmcrater ppmrainbow
38
39 OBJECTS = $(BINARIES:%=%.o)
40
41 MERGE_OBJECTS = $(MERGEBINARIES:%=%.o2)
42
43 .PHONY: all
44 all: $(BINARIES) $(SUBDIRS:%=%/all)
45
46 include $(SRCDIR)/common.mk