Revision 1450 trunk/src/Makefile

Makefile (revision 1450)
7 7
!IF DEFINED(DEBUG)
8 8
CXXFLAGS_SAF=/nologo /G7 /W4 /GF /EHsc /DSAFE_ALL /DUSE_LAPLACE /DWIN32 /D__MSVC32__=8 /I$(DESTDIR)\include
9 9
CXXFLAGS_OPT=/nologo /G7 /W4 /GF /EHsc /DOPT_LIB  /DUSE_LAPLACE /DWIN32 /D__MSVC32__=8 /I$(DESTDIR)\include
10
CXXFLAGS_SAF2=/nologo /G7 /W4 /GF /EHsc /DSAFE_ALL /DUSE_LAPLACE /DWIN32 /D__MSVC32__=8 /I..\$(DESTDIR)\include
11
CXXFLAGS_OPT2=/nologo /G7 /W4 /GF /EHsc /DOPT_LIB  /DUSE_LAPLACE /DWIN32 /D__MSVC32__=8 /I..\$(DESTDIR)\include
12 10
!ELSE
13 11
CXXFLAGS_SAF=/nologo /O2 /W4 /GF /EHsc /DSAFE_ALL /DUSE_LAPLACE /DWIN32 /D__MSVC32__=8 /I$(DESTDIR)\include
14 12
CXXFLAGS_OPT=/nologo /O2 /W4 /GF /EHsc /DOPT_LIB  /DUSE_LAPLACE /DWIN32 /D__MSVC32__=8 /I$(DESTDIR)\include
15
CXXFLAGS_SAF2=/nologo /O2 /W4 /GF /EHsc /DSAFE_ALL /DUSE_LAPLACE /DWIN32 /D__MSVC32__=8 /I..\$(DESTDIR)\include
16
CXXFLAGS_OPT2=/nologo /O2 /W4 /GF /EHsc /DOPT_LIB  /DUSE_LAPLACE /DWIN32 /D__MSVC32__=8 /I..\$(DESTDIR)\include
17 13
!ENDIF
18 14

  
19 15
!INCLUDE df1b2-separable\objects.lst
......
32 28
OPTLP_TOOLS99_OBJS=$(OBJ7: = ..\build\objects\dist\optlp-tools99-)
33 29
SAFLP_TOOLS99_OBJS=$(OBJ7: = ..\build\objects\dist\saflp-tools99-)
34 30

  
35
all: dist bins contrib
31
all: dist
36 32
	pushd $(DESTDIR) & cscript ..\..\scripts\create-admb-shortcut.vbs & popd
37 33
	@echo ADMB build completed.
38 34
	@echo Check README.txt for usage and installation information.
39 35

  
40
dist: srcs
41

  
42
srcs:
36
dist: bins
43 37
	IF NOT EXIST $(DESTDIR) md $(DESTDIR)
44 38
	copy ..\LICENSE.txt $(DESTDIR)
45 39
	copy ..\CHANGES.txt $(DESTDIR)
46 40
	copy ..\README.txt $(DESTDIR)
47 41
	copy ..\VERSION $(DESTDIR)
48
	IF NOT EXIST $(DESTDIR) md $(DESTDIR)\contrib
49
	IF NOT EXIST $(DESTDIR)\contrib xcopy /I /E /Y ..\contrib $(DESTDIR)\contrib
50
	IF NOT EXIST $(DESTDIR) md $(DESTDIR)\docs
51
	IF NOT EXIST $(DESTDIR)\docs xcopy /I /E /Y ..\docs $(DESTDIR)\docs
52
	IF NOT EXIST $(DESTDIR) md $(DESTDIR)\examples
53
	IF NOT EXIST $(DESTDIR)\examples xcopy /I /E /Y ..\examples $(DESTDIR)\examples
54
	IF NOT EXIST $(DESTDIR) md $(DESTDIR)\scripts
55
	IF NOT EXIST $(DESTDIR)\scripts xcopy /I /E /Y ..\scripts $(DESTDIR)\scripts
56
	IF NOT EXIST $(DESTDIR) md $(DESTDIR)\tests
57
	IF NOT EXIST $(DESTDIR)\tests xcopy /I /E /Y ..\tests $(DESTDIR)\tests
42
	$(MAKE) lexfiles
58 43
	IF NOT EXIST $(DESTDIR) md $(DESTDIR)\utilities
59 44
	IF NOT EXIST $(DESTDIR)\utilities xcopy /I /E /Y ..\utilities $(DESTDIR)\utilities
60
	IF NOT EXIST $(DESTDIR) md $(DESTDIR)\src
61
	IF NOT EXIST $(DESTDIR)\src xcopy /I /E /Y ..\src $(DESTDIR)\src
62 45

  
63
bins: lexfiles libs
46
bins: libs
64 47
	IF NOT EXIST $(DESTDIR)\bin md $(DESTDIR)\bin
48
	echo set ADMB_CFG_CXX=$(CXX)>$(DESTDIR)\bin\admb-cfg.bat
49
	echo set ADMB_CFG_CXXFLAGS=$(CXXFLAGS)>>$(DESTDIR)\bin\admb-cfg.bat
50
	echo set ADMB_CFG_LDFLAGS=$(LDFLAGS)>>$(DESTDIR)\bin\admb-cfg.bat
65 51
	copy df1b2-separable\sed* $(DESTDIR)\bin
66
	copy ..\scripts\cl\*.bat $(DESTDIR)\bin
67
	copy ..\scripts\admb\admb.bat $(DESTDIR)\bin
68
	copy ..\scripts\admb\root-admb.bat ..\admb.bat
69
	copy ..\scripts\admb\root-admb.bat $(DESTDIR)\admb.bat
52
	copy ..\scripts\admb\admb.bat $(DESTDIR)\bin\admb.cmd
53
	copy ..\scripts\admb\root-admb.bat ..\admb.cmd
54
	copy ..\scripts\admb\root-admb.bat $(DESTDIR)\admb.cmd
70 55
	copy ..\utilities\sed.exe $(DESTDIR)\bin
71 56
	copy ..\utilities\*.dll $(DESTDIR)\bin
72 57

  
......
90 75
	..\utilities\flex -o$(LEXDESTDIR)\lex.yy.c df1b2-separable\tpl2rem.lex
91 76
	..\utilities\sed -f df1b2-separable\sedflex $(LEXDESTDIR)\lex.yy.c > $@
92 77

  
93
includes:
94
	IF NOT EXIST $(DESTDIR)\include md $(DESTDIR)\include
95
	copy df1b2-separable\df1b2fun.h $(DESTDIR)\include
96
	copy df1b2-separable\adpool.h $(DESTDIR)\include
97
	copy df1b2-separable\adrndeff.h $(DESTDIR)\include
98
	copy df1b2-separable\df1b2fnl.h $(DESTDIR)\include
99
	copy df1b2-separable\df3fun.h $(DESTDIR)\include
100
	copy df1b2-separable\df32fun.h $(DESTDIR)\include
101
	copy df1b2-separable\df1b2loc.h $(DESTDIR)\include
102
	copy linad99\fvar.hpp $(DESTDIR)\include
103
	copy linad99\d4arr.hpp $(DESTDIR)\include
104
	copy linad99\dfpool.h $(DESTDIR)\include
105
	copy linad99\factors.h $(DESTDIR)\include
106
	copy nh99\admodel.h $(DESTDIR)\include
107
	copy nh99\adsplus.h $(DESTDIR)\include
108
	copy nh99\spcomm.h $(DESTDIR)\include
109
	copy nh99\param_init_bounded_number_matrix.h $(DESTDIR)\include
110
	copy tools99\clist.h $(DESTDIR)\include
111
	copy tools99\cifstrem.h $(DESTDIR)\include
112
	copy tools99\adstring.hpp $(DESTDIR)\include
113
	copy tools99\admb_messages.h $(DESTDIR)\include
114

  
115
libs: includes objects
78
libs: objects
116 79
	IF NOT EXIST $(DESTDIR)\lib md $(DESTDIR)\lib
117 80
	IF EXIST $(DESTDIR)\lib\admb.lib del $(DESTDIR)\lib\admb.lib
118 81
	pushd $(OBJDESTDIR) & lib /OUT:..\..\$(DESTDIR)\lib\admb.lib /NOLOGO /IGNORE:4006 saflp-df1b2-separable*.obj saflp-linad99*.obj saflp-nh99*.obj saflp-tools99*.obj saflp-sparse*.obj
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff