Revision 1408 trunk/contrib/GNUmakefile

GNUmakefile (revision 1408)
1
ifeq ($(SHELL),sh.exe)
1
ifneq (,$(findstring sh.exe,$(SHELL)))
2 2
  OBJSDIR=..\..\build\objects\dist
3 3
  OBJSDIR:=$(addsuffix \,$(OBJSDIR))
4 4
  ifndef DIST
5 5
    DIST=..\build\dist
6 6
  endif
7 7
  CONTRIBDIR=$(addsuffix \contrib\,$(DIST))
8
  SHELL=cmd
8 9
else
9 10
  OBJSDIR=../../build/objects/dist
10 11
  OBJSDIR:=$(addsuffix /,$(OBJSDIR))
......
14 15
  CONTRIBDIR=$(addsuffix /contrib/,$(DIST))
15 16
endif
16 17

  
17
all: build-gdbprintlib build-statslib build-ecolib build-qfclib build-src
18
ifeq ($(SHELL),sh.exe)
18
all: libs build-ad2csv
19

  
20
libs: build-gdbprintlib build-statslib build-ecolib build-qfclib build-src
21
ifeq ($(SHELL),cmd)
19 22
	$(AR) -rs $(CONTRIBDIR)lib\libcontrib.a ..\build\objects\dist\saflp-contrib-*.obj
20 23
	$(AR) -rs $(CONTRIBDIR)lib\libcontribo.a ..\build\objects\dist\optlp-contrib-*.obj
21 24
else
......
23 26
	$(AR) -rs $(CONTRIBDIR)lib/libcontribo.a ../build/objects/dist/optlp-contrib-*.obj
24 27
endif
25 28

  
26
ad2csv: build-ad2csv
27

  
28 29
build-gdbprintlib:
29 30
	$(MAKE) --directory=gdbprintlib PREFIX_OBJ=$(OBJSDIR)saflp-contrib-gdbprintlib-
30 31
	$(MAKE) --directory=gdbprintlib PREFIX_OBJ=$(OBJSDIR)optlp-contrib-gdbprintlib-
31
ifeq ($(SHELL),sh.exe)
32
ifeq ($(SHELL),cmd)
32 33
	copy gdbprintlib\gdbprintlib.h $(CONTRIBDIR)include
33 34
else
34 35
	cp gdbprintlib/gdbprintlib.h $(CONTRIBDIR)include
......
37 38
build-statslib:
38 39
	$(MAKE) --directory=statslib PREFIX_OBJ=$(OBJSDIR)saflp-contrib-statslib-
39 40
	$(MAKE) --directory=statslib OPTION=-f PREFIX_OBJ=$(OBJSDIR)optlp-contrib-statslib-
40
ifeq ($(SHELL),sh.exe)
41
ifeq ($(SHELL),cmd)
41 42
	copy statslib\statsLib.h $(CONTRIBDIR)include
42 43
else
43 44
	cp statslib/statsLib.h $(CONTRIBDIR)include
......
46 47
build-ecolib:
47 48
	$(MAKE) --directory=ecolib PREFIX_OBJ=$(OBJSDIR)saflp-contrib-ecolib-
48 49
	$(MAKE) --directory=ecolib OPTION=-f PREFIX_OBJ=$(OBJSDIR)optlp-contrib-ecolib-
49
ifeq ($(SHELL),sh.exe)
50
ifeq ($(SHELL),cmd)
50 51
	copy ecolib\ecolib.h $(CONTRIBDIR)include
51 52
else
52 53
	cp ecolib/ecolib.h $(CONTRIBDIR)include
......
55 56
build-qfclib:
56 57
	$(MAKE) --directory=qfclib PREFIX_OBJ=$(OBJSDIR)saflp-contrib-qfclib-
57 58
	$(MAKE) --directory=qfclib OPTION=-f PREFIX_OBJ=$(OBJSDIR)optlp-contrib-qfclib-
58
ifeq ($(SHELL),sh.exe)
59
ifeq ($(SHELL),cmd)
59 60
	copy qfclib\qfclib.h $(CONTRIBDIR)include
60 61
else
61 62
	cp qfclib/qfclib.h $(CONTRIBDIR)include
62 63
endif
63 64

  
64 65
build-ad2csv:
65
ifeq ($(SHELL),sh.exe)
66
	$(MAKE) --directory=ad2csv --file=Makefile
67
else
68 66
	$(MAKE) --directory=ad2csv
69
endif
70 67

  
71 68
build-admb2r:
72 69
	$(MAKE) --directory=admb2r ADMB_HOME="$(ADMB_HOME)" gcc
......
74 71
build-src:
75 72
	$(MAKE) --directory=src OPTION=-f PREFIX_OBJ=$(OBJSDIR)optlp-contrib-
76 73
	$(MAKE) --directory=src PREFIX_OBJ=$(OBJSDIR)saflp-contrib-
77
ifeq ($(SHELL),sh.exe)
74
ifeq ($(SHELL),cmd)
78 75
	copy src\contrib.h $(CONTRIBDIR)include
79 76
else
80 77
	cp src/contrib.h $(CONTRIBDIR)include
......
92 89
	@$(MAKE) --directory=ecolib clean
93 90
	@$(MAKE) --directory=qfclib clean
94 91
	@$(MAKE) --directory=statslib clean
95
ifeq ($(SHELL),sh.exe)
96
	@$(MAKE) --file=Makefile --directory=ad2csv clean
97
else
98 92
	@$(MAKE) --directory=ad2csv clean
93
	@$(MAKE) --directory=ad2csv clean
99 94
	@$(MAKE) --directory=src clean
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff