-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 1.09 KB
/
Makefile
File metadata and controls
27 lines (22 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
COMPILER ?= gcc
#COMPILER ?= clang
NO_VISUAL ?= false
USE_PARDISO ?= false
ifeq ($(NO_VISUAL),true)
programs = TextureFiltering TextureStitching TextureMasking TextureDilation GradientDomain.example HierarchicalGradientDomain.example SetExteriorTexels SeamStitcher
else
programs = Geodesics LineIntegralConvolution TextureFiltering TextureStitching ReactionDiffusion TextureMasking TextureDilation GradientDomain.example HierarchicalGradientDomain.example SetExteriorTexels SeamStitcher
endif
# Allow "make -j" to operate in parallel over the programs.
all: $(programs)
$(programs):
$(MAKE) -C $@ COMPILER=$(COMPILER) NO_VISUAL=$(NO_VISUAL) USE_PARDISO=$(USE_PARDISO)
programs_debug = $(foreach n,$(programs),debug_$(n)) # pseudo-dependency to allow "make -j" parallelism
debug: $(programs_debug)
$(programs_debug):
$(MAKE) -C $(@:debug_%:%) debug COMPILER=$(COMPILER)
programs_clean = $(foreach n,$(programs),clean_$(n)) # pseudo-dependency to allow "make -j" parallelism
clean: $(programs_clean)
$(programs_clean):
$(MAKE) -C $(@:clean_%=%) clean
.PHONY: $(programs) $(programs_debug) $(programs_clean)