Revision 1409 trunk/contrib/GNUmakefile

GNUmakefile (revision 1409)
1
ifneq (,$(findstring sh.exe,$(SHELL)))
1
ifeq ($(SHELL),sh.exe)
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
9 8
else
10 9
  OBJSDIR=../../build/objects/dist
11 10
  OBJSDIR:=$(addsuffix /,$(OBJSDIR))
......
18 17
all: libs build-ad2csv
19 18

  
20 19
libs: build-gdbprintlib build-statslib build-ecolib build-qfclib build-src
21
ifeq ($(SHELL),cmd)
20
ifeq ($(SHELL),sh.exe)
22 21
	$(AR) -rs $(CONTRIBDIR)lib\libcontrib.a ..\build\objects\dist\saflp-contrib-*.obj
23 22
	$(AR) -rs $(CONTRIBDIR)lib\libcontribo.a ..\build\objects\dist\optlp-contrib-*.obj
24 23
else
......
29 28
build-gdbprintlib:
30 29
	$(MAKE) --directory=gdbprintlib PREFIX_OBJ=$(OBJSDIR)saflp-contrib-gdbprintlib-
31 30
	$(MAKE) --directory=gdbprintlib PREFIX_OBJ=$(OBJSDIR)optlp-contrib-gdbprintlib-
32
ifeq ($(SHELL),cmd)
31
ifeq ($(SHELL),sh.exe)
33 32
	copy gdbprintlib\gdbprintlib.h $(CONTRIBDIR)include
34 33
else
35 34
	cp gdbprintlib/gdbprintlib.h $(CONTRIBDIR)include
......
38 37
build-statslib:
39 38
	$(MAKE) --directory=statslib PREFIX_OBJ=$(OBJSDIR)saflp-contrib-statslib-
40 39
	$(MAKE) --directory=statslib OPTION=-f PREFIX_OBJ=$(OBJSDIR)optlp-contrib-statslib-
41
ifeq ($(SHELL),cmd)
40
ifeq ($(SHELL),sh.exe)
42 41
	copy statslib\statsLib.h $(CONTRIBDIR)include
43 42
else
44 43
	cp statslib/statsLib.h $(CONTRIBDIR)include
......
47 46
build-ecolib:
48 47
	$(MAKE) --directory=ecolib PREFIX_OBJ=$(OBJSDIR)saflp-contrib-ecolib-
49 48
	$(MAKE) --directory=ecolib OPTION=-f PREFIX_OBJ=$(OBJSDIR)optlp-contrib-ecolib-
50
ifeq ($(SHELL),cmd)
49
ifeq ($(SHELL),sh.exe)
51 50
	copy ecolib\ecolib.h $(CONTRIBDIR)include
52 51
else
53 52
	cp ecolib/ecolib.h $(CONTRIBDIR)include
......
56 55
build-qfclib:
57 56
	$(MAKE) --directory=qfclib PREFIX_OBJ=$(OBJSDIR)saflp-contrib-qfclib-
58 57
	$(MAKE) --directory=qfclib OPTION=-f PREFIX_OBJ=$(OBJSDIR)optlp-contrib-qfclib-
59
ifeq ($(SHELL),cmd)
58
ifeq ($(SHELL),sh.exe)
60 59
	copy qfclib\qfclib.h $(CONTRIBDIR)include
61 60
else
62 61
	cp qfclib/qfclib.h $(CONTRIBDIR)include
......
71 70
build-src:
72 71
	$(MAKE) --directory=src OPTION=-f PREFIX_OBJ=$(OBJSDIR)optlp-contrib-
73 72
	$(MAKE) --directory=src PREFIX_OBJ=$(OBJSDIR)saflp-contrib-
74
ifeq ($(SHELL),cmd)
73
ifeq ($(SHELL),sh.exe)
75 74
	copy src\contrib.h $(CONTRIBDIR)include
76 75
else
77 76
	cp src/contrib.h $(CONTRIBDIR)include

Also available in: Unified diff