forked from Eyescale/Equalizer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
GNUmakefile
86 lines (64 loc) · 2.08 KB
/
GNUmakefile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!gmake
.PHONY: debug cdash release xcode debug_glx docs clean clobber
BUILD ?= debug
CMAKE ?= cmake
ifeq ($(wildcard Makefile), Makefile)
all:
@$(MAKE) -f Makefile $(MAKECMDGOALS)
clean:
@$(MAKE) -f Makefile $(MAKECMDGOALS)
.DEFAULT:
@$(MAKE) -f Makefile $(MAKECMDGOALS)
else
default: $(BUILD)
all: debug release
clobber:
rm -rf debug release XCode debug_glx man cdash
clean:
@-$(MAKE) -C debug clean
@-$(MAKE) -C release clean
@-$(MAKE) -C XCode clean
@-$(MAKE) -C debug_glx clean
@-$(MAKE) -C cdash clean
@rm -rf man
.DEFAULT:
@$(MAKE) -C $(BUILD) $(MAKECMDGOALS)
debug: debug/Makefile
@$(MAKE) -C $@
release: release/Makefile
@$(MAKE) -C $@
debug_glx: debug_glx/Makefile
@$(MAKE) -C $@
cdash: cdash/Makefile
@$(MAKE) -C cdash clean
@$(MAKE) -C cdash Continuous
debug/Makefile:
@mkdir -p debug
@cd debug; $(CMAKE) .. -DCMAKE_BUILD_TYPE=Debug \
-DEQUALIZER_RUN_GPU_TESTS=ON
release/Makefile:
@mkdir -p release
@cd release; $(CMAKE) .. -DCMAKE_BUILD_TYPE=Release
cdash/Makefile:
@mkdir -p cdash
@cd cdash; env CXXFLAGS="-fprofile-arcs -ftest-coverage" CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="-fprofile-arcs -ftest-coverage" $(CMAKE) ..
debug_glx/Makefile:
@mkdir -p debug_glx
@cd debug_glx; $(CMAKE) .. -DEQUALIZER_PREFER_AGL=OFF
package: release/Makefile ../equalizergraphics/build/documents/Developer/API
@$(MAKE) -C release doxygen
@$(MAKE) -C release package
XCode/Equalizer.xcodeproj: CMakeLists.txt
@mkdir -p XCode
@cd XCode; $(CMAKE) -G Xcode ..
xcode: XCode/Equalizer.xcodeproj
open XCode/Equalizer.xcodeproj
docs: ../equalizergraphics/build/documents/Developer/API
@$(MAKE) -C $(BUILD) doxygen
.PHONY: ../equalizergraphics/build/documents/Developer/API/internal
../equalizergraphics/build/documents/Developer/API/internal:
@mkdir -p ../equalizergraphics/build/documents/Developer/API/internal
.PHONY: ../equalizergraphics/build/documents/Developer/API
../equalizergraphics/build/documents/Developer/API: ../equalizergraphics/build/documents/Developer/API/internal $(BUILD)/Makefile
@mkdir -p ../equalizergraphics/build/collage/documents/Developer/API
endif