Revision 1528 trunk/tests/GNUmakefile

GNUmakefile (revision 1528)
1
ifeq ($(OS),Windows_NT)
2
  ifeq (sh.exe,$(findstring sh.exe,$(SHELL)))
3
    SHELL = cmd
4
    ifeq ($(SHELL),cmd)
5
      MYPWD=$(shell cd)
6
    else
7
      MYPWD=$(shell cmd /C cd)
8
    endif
9
    PATH:=$(MYPWD)\..\utilities\mingw\bin;$(PATH);$(MYPWD)\..\utilities
10
  else
11
    ifneq ($(TERM),xterm)
12
      MYPWD=$(shell pwd)
13
      PATH:=$(MYPWD)/../utilities/mingw/bin:$(PATH)
14
    endif
15
    PATH:=$(PATH):$(MYPWD)/../utilities
16
  endif
17
endif
18

  
19
ifeq ($(DEBUG),yes)
20
DEBUG_OPTION=-g
21
endif
22

  
1 23
DIST=../build/dist
2 24

  
3 25
GTEST_DIR=googletest-read-only
......
114 136
	OPTIONS=-s $(MAKE) --directory=$@
115 137

  
116 138
verify:
117
ifeq ($(SHELL),sh.exe)
118
	$(MAKE) FAST_OPTION=-f -C $(DIST)\examples --file=Makefile all
139
ifeq ($(SHELL),cmd)
140
	$(MAKE) DEBUG_OPTION=$(DEBUG_OPTION) FAST_OPTION=-f -C $(DIST)\examples --file=Makefile all
119 141
	pushd ..\build\dist & ..\..\scripts\get-outputs.bat > "..\..\benchmarks-opt.txt" & popd
120
	$(MAKE) -C $(DIST)\examples --file=Makefile all
142
	$(MAKE) DEBUG_OPTION=$(DEBUG_OPTION) -C $(DIST)\examples --file=Makefile all
121 143
	pushd ..\build\dist & ..\..\scripts\get-outputs.bat > "..\..\benchmarks-saf.txt" & popd
122 144
else
123
	$(MAKE) FAST_OPTION=-f -C $(DIST)/examples all
145
	$(MAKE) DEBUG_OPTION=$(DEBUG_OPTION) FAST_OPTION=-f -C $(DIST)/examples all
124 146
	-../scripts/get-outputs.sh ${DIST}/examples/ > "../benchmarks-opt.txt"
125
	$(MAKE) -C $(DIST)/examples all
147
	$(MAKE) DEBUG_OPTION=$(DEBUG_OPTION) -C $(DIST)/examples all
126 148
	-../scripts/get-outputs.sh ${DIST}/examples/ > "../benchmarks-saf.txt"
127 149
endif
128 150

  
129 151
clean:
130
ifeq ($(SHELL),sh.exe)
152
ifeq ($(SHELL),cmd)
131 153
	$(MAKE) --directory=expm --file=Makefile clean
132 154
else
133 155
	$(MAKE) --directory=expm clean
......
163 185
endif
164 186

  
165 187
copy:
166
ifeq ($(SHELL),sh.exe)
188
ifeq ($(SHELL),cmd)
167 189
	if not exist ${DIST}\tests md ${DIST}\tests
168 190
	xcopy ..\tests $(DIST)\tests /S /Y /D
169 191
else

Also available in: Unified diff