Revision 1372 trunk/src/GNUmakefile

GNUmakefile (revision 1372)
1
ifeq ($(OS),Windows_NT)
2
  SET_VARIABLES=$(shell set)
3
  HAS_CYGWIN=$(findstring OSTYPE=cygwin,$(SET_VARIABLES))
4
  ifeq ("$(HAS_CYGWIN)","")
5
    SHELL=cmd
6
  endif
7
  HAS_MSYS=$(findstring OSTYPE=msys,$(SET_VARIABLES))
8
  ifeq ("$(HAS_MSYS)","")
9
    SHELL=cmd
10
  endif
11
endif
12

  
13
ifeq ($(SHELL),cmd)
1
ifeq ($(SHELL),sh.exe)
14 2
  PWD=$(shell cd)
15 3
  PATH:=$(PWD)\..\utilities;$(PATH)
16 4
  ifdef MINGW_HOME
......
63 51

  
64 52
CXXFLAGS_DEFINES:=-D__GNUDOS__ -Dlinux -D__SPDLL__ -DUSE_LAPLACE
65 53

  
66
ifeq ($(SHELL),cmd)
54
ifeq ($(SHELL),sh.exe)
67 55
CXXFLAGS_INCLUDES:=-I..\build\dist\include
68 56
else
69 57
CXXFLAGS_INCLUDES:=-I../build/dist/include
......
107 95
	@echo For installation, check README.txt.
108 96

  
109 97
revision:
110
ifeq ($(SHELL),cmd)
98
ifeq ($(SHELL),sh.exe)
111 99
	-svnversion .. > ..\REVISION
112 100
else
113 101
	-svnversion .. > ../REVISION
114 102
endif
115 103

  
116 104
contrib:
117
ifeq ($(SHELL),cmd)
105
ifeq ($(SHELL),sh.exe)
118 106
	if not exist ${DIST}\contrib md ${DIST}\contrib
119 107
	if not exist ${DIST}\contrib\lib md ${DIST}\contrib\lib
120 108
	if not exist ${DIST}\contrib\bin md ${DIST}\contrib\bin
......
130 118
dist: libs bins docs
131 119

  
132 120
libs: includes objects_dir objects
133
ifeq ($(SHELL),cmd)
121
ifeq ($(SHELL),sh.exe)
134 122
	if not exist ${DIST}\lib md ${DIST}\lib
135 123
	if exist ${DIST}\lib\libadmb.a del ${DIST}\lib\libadmb.a
136 124
	if exist ${DIST}\lib\libadmbo.a del ${DIST}\lib\libadmbo.a
......
151 139
	$(AR) -rs $(LIBSDIR)libadmbo.a $(OBJSDIR)optlp-sparse-*.obj
152 140

  
153 141
bins:
154
ifeq ($(SHELL),cmd)
142
ifeq ($(SHELL),sh.exe)
155 143
	if not exist ${DIST}\bin md ${DIST}\bin
156 144
	copy df1b2-separable\seddf1b* ${DIST}\bin
157 145
	copy df1b2-separable\sedf1b2* ${DIST}\bin
......
213 201
endif
214 202

  
215 203
docs:
216
ifeq ($(SHELL),cmd)
204
ifeq ($(SHELL),sh.exe)
217 205
	if not exist ${DIST}\contrib md ${DIST}\contrib
218 206
	xcopy ..\contrib $(DIST)\contrib /S /Y /D
219 207
	if not exist ${DIST}\docs md ${DIST}\docs
......
249 237
endif
250 238

  
251 239
includes:
252
ifeq ($(SHELL),cmd)
240
ifeq ($(SHELL),sh.exe)
253 241
	if not exist ${DIST}\include md ${DIST}\include
254 242
	copy linad99\fvar.hpp ${DIST}\include
255 243
	copy linad99\dfpool.h ${DIST}\include
......
300 288
endif
301 289

  
302 290
objects_dir:
303
ifeq ($(SHELL),cmd)
291
ifeq ($(SHELL),sh.exe)
304 292
	if not exist $(OBJSDIR) md $(OBJSDIR)
305 293
else
306 294
	mkdir -p $(OBJSDIR)
......
308 296

  
309 297
objects: $(OBJECTS)
310 298

  
311
ifeq ($(SHELL),cmd)
299
ifeq ($(SHELL),sh.exe)
312 300
$(OBJSDIR)optlp-nh99-banner.obj: nh99\banner.cpp
313 301
	$(CXX) -c $(CXXFLAGS_OPT) -DADMB_VERSION=$(shell if exist ..\VERSION type ..\VERSION) -o$@ $<
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff