Revision 1640

trunk/src/bcc.mak (revision 1640)
1
DISK=..\build\admb-bcc5.5-32bit
2
CXXFLAGS:=$(CXXFLAGS) -DADMB_VERSION=$(shell cat ../VERSION)
3

  
4
OPT_CXXFLAGS ="-c -q -f -WC -O2 -5 -I${BCC55_HOME}\Include -DADMB_VERSION=11 -DUSE_LAPLACE -DDOS386 -DOPT_LIB -I..\linad99 -I..\nh99 -I..\df1b2-separable -I..\tools99"
5
SAFE_CXXFLAGS ="-c -q -f -WC -O2 -5 -I${BCC55_HOME}\Include -DADMB_VERSION=11 -DUSE_LAPLACE -DDOS386 -DSAFE_ALL -I..\linad99 -I..\nh99 -I..\df1b2-separable -I..\tools99"
6

  
7
all: dist
8

  
9
dist:
10
	IF NOT EXIST $(DISK)\dist\bin md $(DISK)\dist\bin
11
	IF NOT EXIST $(DISK)\dist\lib md $(DISK)\dist\lib
12
	IF NOT EXIST $(DISK)\dist\include md $(DISK)\dist\include
13
	IF NOT EXIST $(DISK)\objects\linad99-olp md $(DISK)\objects\linad99-olp
14
	IF NOT EXIST $(DISK)\objects\linad99-slp md $(DISK)\objects\linad99-slp
15
	cd linad99
16
	$(MAKE) CC=bcc32 CXXFLAGS=$(OPT_CXXFLAGS) LIBPATH=..\$(DISK)\objects\linad99-olp DISKDIR=..\$(DISK) -f optbor32-laplace.mak all
17
	$(MAKE) CC=bcc32 CXXFLAGS=$(SAFE_CXXFLAGS) LIBPATH=..\$(DISK)\objects\linad99-slp DISKDIR=..\$(DISK) -f safbor32-laplace.mak all
18
	cd ..
19
	IF NOT EXIST $(DISK)\objects\tools99-olp md $(DISK)\objects\tools99-olp
20
	IF NOT EXIST $(DISK)\objects\tools99-slp md $(DISK)\objects\tools99-slp
21
	cd tools99
22
	$(MAKE) CC=bcc32 CXXFLAGS=$(OPT_CXXFLAGS) LIBPATH=..\$(DISK)\objects\tools99-olp DISKDIR=..\$(DISK) -f optbor32-laplace.mak all
23
	$(MAKE) CC=bcc32 CXXFLAGS=$(SAFE_CXXFLAGS) LIBPATH=..\$(DISK)\objects\tools99-slp DISKDIR=..\$(DISK) -f safbor32-laplace.mak all
24
	cd ..
25
	IF NOT EXIST $(DISK)\objects\df1b2-separable-olp md $(DISK)\objects\df1b2-separable-olp
26
	IF NOT EXIST $(DISK)\objects\df1b2-separable-slp md $(DISK)\objects\df1b2-separable-slp
27
	cd df1b2-separable
28
	$(MAKE) CC=bcc32 CXXFLAGS=$(OPT_CXXFLAGS) LIBPATH=..\$(DISK)\objects\df1b2-separable-olp DISKDIR=..\$(DISK) -f optbor32-laplace.mak all
29
	$(MAKE) CC=bcc32 CXXFLAGS=$(SAFE_CXXFLAGS) LIBPATH=..\$(DISK)\objects\df1b2-separable-slp DISKDIR=..\$(DISK) -f safbor32-laplace.mak all
30
	cd ..
31
	IF NOT EXIST $(DISK)\objects\nh99-olp md $(DISK)\objects\nh99-olp
32
	IF NOT EXIST $(DISK)\objects\nh99-slp md $(DISK)\objects\nh99-slp
33
	cd nh99
34
	$(MAKE) CC=bcc32 CXXFLAGS=$(OPT_CXXFLAGS) LIBPATH=..\$(DISK)\objects\nh99-olp DISKDIR=..\$(DISK) -f optbor32-laplace.mak all
35
	$(MAKE) CC=bcc32 CXXFLAGS=$(SAFE_CXXFLAGS) LIBPATH=..\$(DISK)\objects\nh99-slp DISKDIR=..\$(DISK) -f safbor32-laplace.mak all
36
	cd ..
37
	copy ..\LICENSE.txt $(DISK)\dist
38
	copy ..\README.txt $(DISK)\dist
39
	copy ..\CHANGES.txt $(DISK)\dist
40
	copy ..\VERSION $(DISK)\dist
41
	copy ..\utilities\sed.exe $(DISK)\dist\bin
42
	copy ..\scripts\bcc32\contrib.h $(DISK)\dist\include
43
	copy ..\scripts\bcc32\adcomp.bat $(DISK)\dist\bin
44
	copy ..\scripts\bcc32\adlink.bat $(DISK)\dist\bin
45
	copy ..\scripts\bcc32\set-admb-bcc551.bat $(DISK)\dist\bin
46
	copy ..\scripts\admb\admb.bat $(DISK)\dist\bin
47
	IF NOT EXIST $(DISK)\dist\examples md $(DISK)\dist\examples
48
	xcopy ..\examples $(DISK)\dist\examples /S /Y
49

  
50
verify:
51
	cd $(DISK)\dist
52
	cmd /C "set ADMB_HOME=%CD%& set PATH=%CD%\bin;$(PATH)& cd examples& make all"
53
	-..\..\..\scripts\get-outputs.bat > ..\..\..\benchmarks-opt.txt
54
	cmd /C "set ADMB_HOME=%CD%& set PATH=%CD%\bin;$(PATH)& cd examples& make OPTION=-s all"
55
	-..\..\..\scripts\get-outputs.bat > ..\..\..\benchmarks-saf.txt
56

  
57
clean:
58
	IF EXIST $(DISK) rd /S /Q ..\build
trunk/src/nh99/deprecated/bcc.mak (revision 1640)
1
DISK=..\build\admb-bcc5.5-32bit
2
CXXFLAGS:=$(CXXFLAGS) -DADMB_VERSION=$(shell cat ../VERSION)
3

  
4
OPT_CXXFLAGS ="-c -q -f -WC -O2 -5 -I${BCC55_HOME}\Include -DADMB_VERSION=11 -DUSE_LAPLACE -DDOS386 -DOPT_LIB -I..\linad99 -I..\nh99 -I..\df1b2-separable -I..\tools99"
5
SAFE_CXXFLAGS ="-c -q -f -WC -O2 -5 -I${BCC55_HOME}\Include -DADMB_VERSION=11 -DUSE_LAPLACE -DDOS386 -DSAFE_ALL -I..\linad99 -I..\nh99 -I..\df1b2-separable -I..\tools99"
6

  
7
all: dist
8

  
9
dist:
10
	IF NOT EXIST $(DISK)\dist\bin md $(DISK)\dist\bin
11
	IF NOT EXIST $(DISK)\dist\lib md $(DISK)\dist\lib
12
	IF NOT EXIST $(DISK)\dist\include md $(DISK)\dist\include
13
	IF NOT EXIST $(DISK)\objects\linad99-olp md $(DISK)\objects\linad99-olp
14
	IF NOT EXIST $(DISK)\objects\linad99-slp md $(DISK)\objects\linad99-slp
15
	cd linad99
16
	$(MAKE) CC=bcc32 CXXFLAGS=$(OPT_CXXFLAGS) LIBPATH=..\$(DISK)\objects\linad99-olp DISKDIR=..\$(DISK) -f optbor32-laplace.mak all
17
	$(MAKE) CC=bcc32 CXXFLAGS=$(SAFE_CXXFLAGS) LIBPATH=..\$(DISK)\objects\linad99-slp DISKDIR=..\$(DISK) -f safbor32-laplace.mak all
18
	cd ..
19
	IF NOT EXIST $(DISK)\objects\tools99-olp md $(DISK)\objects\tools99-olp
20
	IF NOT EXIST $(DISK)\objects\tools99-slp md $(DISK)\objects\tools99-slp
21
	cd tools99
22
	$(MAKE) CC=bcc32 CXXFLAGS=$(OPT_CXXFLAGS) LIBPATH=..\$(DISK)\objects\tools99-olp DISKDIR=..\$(DISK) -f optbor32-laplace.mak all
23
	$(MAKE) CC=bcc32 CXXFLAGS=$(SAFE_CXXFLAGS) LIBPATH=..\$(DISK)\objects\tools99-slp DISKDIR=..\$(DISK) -f safbor32-laplace.mak all
24
	cd ..
25
	IF NOT EXIST $(DISK)\objects\df1b2-separable-olp md $(DISK)\objects\df1b2-separable-olp
26
	IF NOT EXIST $(DISK)\objects\df1b2-separable-slp md $(DISK)\objects\df1b2-separable-slp
27
	cd df1b2-separable
28
	$(MAKE) CC=bcc32 CXXFLAGS=$(OPT_CXXFLAGS) LIBPATH=..\$(DISK)\objects\df1b2-separable-olp DISKDIR=..\$(DISK) -f optbor32-laplace.mak all
29
	$(MAKE) CC=bcc32 CXXFLAGS=$(SAFE_CXXFLAGS) LIBPATH=..\$(DISK)\objects\df1b2-separable-slp DISKDIR=..\$(DISK) -f safbor32-laplace.mak all
30
	cd ..
31
	IF NOT EXIST $(DISK)\objects\nh99-olp md $(DISK)\objects\nh99-olp
32
	IF NOT EXIST $(DISK)\objects\nh99-slp md $(DISK)\objects\nh99-slp
33
	cd nh99
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff