Revision 1085 trunk/src/GNUmakefile

GNUmakefile (revision 1085)
2 2

  
3 3
INSTALL_DIR=/usr/local/
4 4

  
5
ifeq ($(SHELL),sh.exe)
5
ifeq ($(OS),Windows_NT)
6
  ifeq ($(TERM),cygwin)
7
    TERMINAL=cygwin
8
  else
9
    TERMINAL=dos
10
  endif
11
endif
12

  
13
ifeq ($(TERMINAL),dos)
6 14
  DISK=..\build\dist
7 15
  LIBPATH=..\build\objects\dist
8 16
  CXXFLAGS_INCLUDES:=-I..\${DISK}\include
......
19 27
  PWD=$(shell pwd)
20 28
endif
21 29

  
22
ifeq ($(SHELL),sh.exe)
23
CXXFLAGS:=-D__GNUDOS__ -Dlinux -D__SPDLL__ -DUSE_LAPLACE -I..\build\dist\include $(CXXFLAGS)
30
ifeq ($(TERMINAL),dos)
31
CXXFLAGS:=-I..\build\dist\include $(CXXFLAGS)
24 32
else
25
CXXFLAGS:=-D__GNUDOS__ -Dlinux -D__SPDLL__ -DUSE_LAPLACE -I../build/dist/include $(CXXFLAGS)
33
CXXFLAGS:=-I../build/dist/include $(CXXFLAGS)
26 34
endif
27 35

  
36
CXXFLAGS:=-D__GNUDOS__ -Dlinux -D__SPDLL__ -DUSE_LAPLACE $(CXXFLAGS)
37

  
28 38
ifneq ($(CXX),CC)
29 39
CXXFLAGS:=-Wall $(CXXFLAGS)
30 40
endif
......
40 50
endif
41 51

  
42 52
include df1b2-separable/objects.lst
53
ifeq ($(TERMINAL),dos)
54
OPTLP_DF1B2_SEPARABLE_OBJS=$(sort $(addprefix ..\build\objects\dist\optlp-df1b2-separable-,$(OBJ0)))
55
SAFLP_DF1B2_SEPARABLE_OBJS=$(sort $(addprefix ..\build\objects\dist\saflp-df1b2-separable-,$(OBJ0)))
56
else
43 57
OPTLP_DF1B2_SEPARABLE_OBJS=$(sort $(addprefix ../build/objects/dist/optlp-df1b2-separable-,$(OBJ0)))
44 58
SAFLP_DF1B2_SEPARABLE_OBJS=$(sort $(addprefix ../build/objects/dist/saflp-df1b2-separable-,$(OBJ0)))
59
endif
45 60

  
46 61
include linad99/objects.lst
62
ifeq ($(TERMINAL),dos)
63
OPTLP_LINAD99_OBJS=$(sort $(addprefix ..\build\objects\dist\optlp-linad99-,$(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)))
64
SAFLP_LINAD99_OBJS=$(sort $(addprefix ..\build\objects\dist\saflp-linad99-,$(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)))
65
else
47 66
OPTLP_LINAD99_OBJS=$(sort $(addprefix ../build/objects/dist/optlp-linad99-,$(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)))
48 67
SAFLP_LINAD99_OBJS=$(sort $(addprefix ../build/objects/dist/saflp-linad99-,$(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)))
68
endif
49 69

  
50 70
include nh99/objects.lst
51
OPTLP_NH99_OBJS=$(sort $(addprefix ../build/objects/dist/optlp-nh99-,$(filter-out dfqromb.obj,$(OBJ6))))
52
SAFLP_NH99_OBJS=$(sort $(addprefix ../build/objects/dist/saflp-nh99-,$(filter-out dfqromb.obj,$(OBJ6))))
53

  
71
ifeq ($(TERMINAL),dos)
72
OPTLP_NH99_OBJS=$(sort $(addprefix ..\build\objects\dist\optlp-nh99-,$(filter-out dfqromb.obj,$(OBJ6)))) ..\build\objects\dist\optlp-sparse-hs_sparse.obj
73
SAFLP_NH99_OBJS=$(sort $(addprefix ..\build\objects\dist\saflp-nh99-,$(filter-out dfqromb.obj,$(OBJ6)))) ..\build\objects\dist\saflp-sparse-hs_sparse.obj
74
else
75
OPTLP_NH99_OBJS=$(sort $(addprefix ../build/objects/dist/optlp-nh99-,$(filter-out dfqromb.obj,$(OBJ6)))) ../build/objects/dist/optlp-sparse-hs_sparse.obj
76
SAFLP_NH99_OBJS=$(sort $(addprefix ../build/objects/dist/saflp-nh99-,$(filter-out dfqromb.obj,$(OBJ6)))) ../build/objects/dist/saflp-sparse-hs_sparse.obj
77
endif
54 78
include tools99/objects.lst
79
ifeq ($(TERMINAL),dos)
80
OPTLP_TOOLS99_OBJS=$(sort $(addprefix ..\build\objects\dist\optlp-tools99-,$(OBJ7)))
81
SAFLP_TOOLS99_OBJS=$(sort $(addprefix ..\build\objects\dist\saflp-tools99-,$(OBJ7)))
82
else
55 83
OPTLP_TOOLS99_OBJS=$(sort $(addprefix ../build/objects/dist/optlp-tools99-,$(OBJ7)))
56 84
SAFLP_TOOLS99_OBJS=$(sort $(addprefix ../build/objects/dist/saflp-tools99-,$(OBJ7)))
85
endif
57 86

  
58 87
all: revision dist contrib
59
ifeq ($(SHELL),sh.exe)
88
ifdef USE_DOS
60 89
	pushd $(DISK) & cscript ..\..\scripts\create-admb-shortcut.vbs & popd
61 90
endif
62 91
ifndef BUILD_SHARED_LIBRARY
......
75 104
revision:
76 105
	-svnversion .. > ../REVISION
77 106
dist:
78
ifneq ($(SHELL),sh.exe)
107
ifeq ($(TERMINAL),dos)
108
	if not exist ${DISK} md ${DISK}
109
	if not exist ${LIBPATH} md ${LIBPATH}
110
	if not exist ${DISK}\contrib md ${DISK}\contrib
111
	xcopy ..\contrib $(DISK)\contrib /S /Y /D
112
	if not exist ${DISK}\docs md ${DISK}\docs
113
	xcopy ..\docs $(DISK)\docs /S /Y /D
114
	if not exist ${DISK}\examples md ${DISK}\examples
115
	xcopy ..\examples $(DISK)\examples /S /Y /D
116
	if not exist ${DISK}\src md ${DISK}\src
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff