[go: up one dir, main page]

Menu

[8e227d]: / GNUmakefile.mk  Maximize  Restore  History

Download this file

41 lines (27 with data), 875 Bytes

 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
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# HowTo use GNUmakefile.mk: create GNUMAKEfile containing:
#
## # override MODE, NICE if you want
##
## # select your favorite subset of targets
## all: lib tests header-compile-test doxy
##
## include GNUmakefile.mk
MODE ?= g++
MODE ?= icpc
NICE ?= nice
MCSTL ?= mcstl # undefine to disable
default-all: lib tests header-compile-test
lib:
$(MAKE) -f Makefile library_$(MODE) $(if $(MCSTL),library_$(MODE)_mcstl)
tests: lib
$(NICE) $(MAKE) -f Makefile tests_$(MODE) $(if $(MCSTL),tests_$(MODE)_mcstl)
header-compile-test: lib
$(NICE) $(MAKE) -C test/compile-stxxl-headers
$(if $(MCSTL),$(NICE) $(MAKE) -C test/compile-stxxl-headers INSTANCE=mcstxxl)
clean:
$(MAKE) -f Makefile clean_$(MODE) clean_$(MODE)_mcstl clean_doxy
$(MAKE) -C test/compile-stxxl-headers clean
%::
$(MAKE) -f Makefile $@
.PHONY: all default-all lib tests header-compile-test clean