Revision 951

trunk/src/mingw.mak (revision 951)
1
.PHONY: dist verify tests
2

  
3
SHELL:=$(COMSPEC)
4
DISK=..\build\mingw
5
LIBPATH=..\build\objects\mingw
6

  
7
CCVERSION=mingw
8
OSVERSION=win
9
CXX=g++.exe
10

  
11
all: dist contrib
12

  
13
dist:
14
	if exist $(DISK) rd /S /Q $(DISK)
15
	md $(DISK)\bin
16
	md $(DISK)\include
17
	md $(DISK)\lib
18
	if exist $(LIBPATH) rd /S /Q $(LIBPATH)
19
	md $(LIBPATH)
20
	md $(LIBPATH)\df1b2-separable-olp
21
	md $(LIBPATH)\df1b2-separable-slp
22
	md $(LIBPATH)\linad99-olp
23
	md $(LIBPATH)\linad99-slp
24
	md $(LIBPATH)\nh99-olp
25
	md $(LIBPATH)\tools99-olp
26
	$(MAKE) -C df1b2-separable CC=$(CXX) LIBPATH=..\$(LIBPATH)\df1b2-separable-olp DISKDIR=..\$(DISK) -f mingw-optg32-rh8-laplace.mak disk
27
	$(MAKE) -C df1b2-separable CC=$(CXX) LIBPATH=..\$(LIBPATH)\df1b2-separable-slp DISKDIR=..\$(DISK) -f mingw-safg32-rh8-laplace.mak disk
28
	$(MAKE) -C linad99 CC=$(CXX) LIBPATH=..\$(LIBPATH)\linad99-olp DISKDIR=..\$(DISK) -f mingw-optg32-rh8-laplace.mak disk
29
	$(MAKE) -C linad99 CC=$(CXX) LIBPATH=..\$(LIBPATH)\linad99-slp DISKDIR=..\$(DISK) PVMOPTION=-Dlinux -f mingw-safg32-rh8-laplace.mak disk
30
	$(MAKE) -C nh99 CC=$(CXX) LIBPATH=..\$(LIBPATH)\nh99-olp DISKDIR=..\$(DISK) -f mingw-optg32-rh8-laplace.mak disk
31
	$(MAKE) -C tools99 CC=$(CXX) LIBPATH=..\$(LIBPATH)\tools99-olp DISKDIR=..\$(DISK) -f mingw-optg32-rh8-laplace.mak disk
32
	copy ..\LICENSE.txt $(DISK)
33
	copy ..\NEWS.txt $(DISK)
34
	copy ..\README.txt $(DISK)
35
	copy ..\VERSION $(DISK)
36
	copy ..\scripts\admb\*.bat $(DISK)\bin
37
	md ${DISK}\examples
38
	xcopy ..\examples $(DISK)\examples /S
39

  
40
contrib:
41
	$(MAKE) -C ..\contrib CXX=g++.exe LIBPATH=$(LIBPATH) DISK=$(DISK)
42

  
43
verify:
44
	cmd /C "set ADMB_HOME=%CD%\$(DISK)& set PATH=%CD%\$(DISK)\bin;$(PATH)& $(MAKE) -C ${DISK} all"
45

  
46
tests:
47
	pushd ..\tests & $(MAKE) ADMB_HOME="%CD%\$(DISK)" & popd
48

  
49
clean:
50
	if exist build rd /Q /S build
51
	if exist df1b2-separable\${CCVERSION}-${OSVERSION}olp rd /S /Q df1b2-separable\${CCVERSION}-${OSVERSION}olp
52
	if exist df1b2-separable\${CCVERSION}-${OSVERSION}slp rd /S /Q df1b2-separable\${CCVERSION}-${OSVERSION}slp
53
	if exist linad99\\${CCVERSION}-${OSVERSION}olp rd /S /Q linad99\\${CCVERSION}-${OSVERSION}olp
54
	if exist linad99\${CCVERSION}-${OSVERSION}slp rd /S /Q linad99\${CCVERSION}-${OSVERSION}slp
55
	if exist nh99\${CCVERSION}-${OSVERSION}olp rd /S /Q nh99\${CCVERSION}-${OSVERSION}olp
56
	if exist tools99\${CCVERSION}-${OSVERSION}olp rd /S /Q tools99\${CCVERSION}-${OSVERSION}olp
57
	if exist df1b2-separable\lex.yy.c del df1b2-separable\lex.yy.c
58
	if exist df1b2-separable\tpl2rem.c del df1b2-separable\tpl2rem.c
59
	if exist df1b2-separable\tpl2rem.exe del df1b2-separable\tpl2rem.exe
60
	if exist nh99\lex.yy.c del nh99\lex.yy.c
61
	if exist nh99\tpl2cpp.c del nh99\tpl2cpp.c
62
	if exist nh99\tpl2cpp.exe del nh99\tpl2cpp.exe
63
	if exist tests\geolocation\geolocation-read-only rd /S /Q tests\geolocation\geolocation-read-only
trunk/src/linad99/mingw-safg32-rh8-laplace.mak (revision 951)
1
# Make ADMB library for MinGW (safe)
2

  
3
CC = gcc
4
SHELL=sh
5
LL = tlib
6

  
7
CFLAGS=-O3
8
ifdef DEBUG
9
CFLAGS=-g
10
endif
11

  
12
FLAGS = $(CFLAGS) ${OPTIONS} -Wall -Wno-conversion -Wno-non-virtual-dtor -Wno-strict-aliasing -Wno-write-strings -Wno-unused-function -Wno-unknown-pragmas -Wno-sign-compare -Wno-missing-braces -Wno-cast-qual -Wno-uninitialized -Wno-reorder -Wno-deprecated -Wno-unused-label -Wno-unused-variable ${PVMOPTION} -DUSE_LAPLACE -DSAFE_ALL -D__GNUDOS__ -Dlinux -fpermissive -c -I. -I..\nh99 -I..\tools99 -I..\df1b2-separable
13

  
14
FLAGS1 = $(CFLAGS) ${OPTIONS} -w ${PVMOPTION} -g -DUSE_LAPLACE -DSAFE_ALL -D__GNUDOS__ -Dlinux -fpermissive -c -I. -I..\nh99 -I..\tools99 -I..\df1b2-separable
15

  
16
LIBPATH =gcc32-rh8slp
17
LIBNAME = libads.a
18
LIBDIR = lib
19
INCLDIR= include
20
SRCDIR = src
21

  
22
.SUFFIXES: .obj .cpp
23
vpath %.obj $(LIBPATH)$
24

  
25
.PHONY: t0
26
.PHONY: t1
27
.PHONY: t2
28
.PHONY: t3
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff