Revision 1389 trunk/contrib/GNUmakefile

GNUmakefile (revision 1389)
1
.NOPARALLEL: all
2

  
3 1
ifeq ($(SHELL),sh.exe)
4
  PREFIX_DIR=..\..\build\objects\dist
5
  PREFIX_DIR:=$(addsuffix \,$(PREFIX_DIR))
6
  DISK=$(addsuffix \,$(DIST))
2
  OBJSDIR=..\..\build\objects\dist
3
  OBJSDIR:=$(addsuffix \,$(OBJSDIR))
4
  ifndef DIST
5
    DIST=..\build\dist
6
  endif
7
  CONTRIBDIR=$(addsuffix \contrib\,$(DIST))
7 8
else
8
  PREFIX_DIR=../../build/objects/dist
9
  PREFIX_DIR:=$(addsuffix \,$(PREFIX_DIR))
10
  DISK=$(addsuffix /,$(DIST))
9
  OBJSDIR=../../build/objects/dist
10
  OBJSDIR:=$(addsuffix /,$(OBJSDIR))
11
  ifndef DIST
12
    DIST=../build/dist
13
  endif
14
  CONTRIBDIR=$(addsuffix /contrib/,$(DIST))
11 15
endif
12 16

  
13 17
all: build-gdbprintlib build-statslib build-ecolib build-qfclib build-src
14 18
ifeq ($(SHELL),sh.exe)
15
	$(AR) -rs $(DISK)\contrib\lib\libcontrib.a $(PREFIX_DIR)saflp-contrib-*.obj
16
	$(AR) -rs $(DISK)\contrib\lib\libcontribo.a $(PREFIX_DIR)optlp-contrib-*.obj
19
	$(AR) -rs $(CONTRIBDIR)lib\libcontrib.a ..\build\objects\dist\saflp-contrib-*.obj
20
	$(AR) -rs $(CONTRIBDIR)lib\libcontribo.a ..\build\objects\dist\optlp-contrib-*.obj
17 21
else
18
	$(AR) -rs $(DISK)/contrib/lib/libcontrib.a $(PREFIX_DIR)saflp-contrib-*.obj
19
	$(AR) -rs $(DISK)/contrib/lib/libcontribo.a $(PREFIX_DIR)optlp-contrib-*.obj
22
	$(AR) -rs $(CONTRIBDIR)lib/libcontrib.a ../build/objects/dist/saflp-contrib-*.obj
23
	$(AR) -rs $(CONTRIBDIR)lib/libcontribo.a ../build/objects/dist/optlp-contrib-*.obj
20 24
endif
21 25

  
22 26
ad2csv: build-ad2csv
23 27

  
24 28
build-gdbprintlib:
25
	$(MAKE) --directory=gdbprintlib PREFIX_OBJ=$(PREFIX_DIR)saflp-contrib-gdbprintlib-
26
	$(MAKE) --directory=gdbprintlib PREFIX_OBJ=$(PREFIX_DIR)optlp-contrib-gdbprintlib-
29
	$(MAKE) --directory=gdbprintlib PREFIX_OBJ=$(OBJSDIR)saflp-contrib-gdbprintlib-
30
	$(MAKE) --directory=gdbprintlib PREFIX_OBJ=$(OBJSDIR)optlp-contrib-gdbprintlib-
27 31
ifeq ($(SHELL),sh.exe)
28
	copy gdbprintlib\gdbprintlib.h $(DISK)\contrib\include
32
	copy gdbprintlib\gdbprintlib.h $(CONTRIBDIR)include
29 33
else
30
	cp gdbprintlib/gdbprintlib.h $(DISK)/contrib/include
34
	cp gdbprintlib/gdbprintlib.h $(CONTRIBDIR)include
31 35
endif
32 36

  
33 37
build-statslib:
38
	$(MAKE) --directory=statslib PREFIX_OBJ=$(OBJSDIR)saflp-contrib-statslib-
39
	$(MAKE) --directory=statslib OPTION=-f PREFIX_OBJ=$(OBJSDIR)optlp-contrib-statslib-
34 40
ifeq ($(SHELL),sh.exe)
35
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="$(CXXFLAGS_SAFE_CONTRIB)" PREFIX_OBJ=..\..\build\objects\dist\saflp-contrib-statslib-
36
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="$(CXXFLAGS_OPT_CONTRIB)" PREFIX_OBJ=..\..\build\objects\dist\optlp-contrib-statslib-
37
	copy statslib\statsLib.h $(DISK)\contrib\include
41
	copy statslib\statsLib.h $(CONTRIBDIR)include
38 42
else
39
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="$(CXXFLAGS_SAFE_CONTRIB)" PREFIX_OBJ=../../build/objects/dist/saflp-contrib-statslib-
40
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="$(CXXFLAGS_OPT_CONTRIB)" PREFIX_OBJ=../../build/objects/dist/optlp-contrib-statslib-
41
	cp statslib/statsLib.h $(DISK)/contrib/include
43
	cp statslib/statsLib.h $(CONTRIBDIR)include
42 44
endif
43 45

  
44 46
build-ecolib:
47
	$(MAKE) --directory=ecolib PREFIX_OBJ=$(OBJSDIR)saflp-contrib-ecolib-
48
	$(MAKE) --directory=ecolib OPTION=-f PREFIX_OBJ=$(OBJSDIR)optlp-contrib-ecolib-
45 49
ifeq ($(SHELL),sh.exe)
46
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="$(CXXFLAGS_SAFE_CONTRIB)" PREFIX_OBJ=..\..\build\objects\dist\saflp-contrib-ecolib-
47
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="$(CXXFLAGS_OPT_CONTRIB)" PREFIX_OBJ=..\..\build\objects\dist\optlp-contrib-ecolib-
48
	copy ecolib\ecolib.h $(DISK)\contrib\include
50
	copy ecolib\ecolib.h $(CONTRIBDIR)include
49 51
else
50
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="$(CXXFLAGS_SAFE_CONTRIB)" PREFIX_OBJ=../../build/objects/dist/saflp-contrib-ecolib-
51
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="$(CXXFLAGS_OPT_CONTRIB)" PREFIX_OBJ=../../build/objects/dist/optlp-contrib-ecolib-
52
	cp ecolib/ecolib.h $(DISK)/contrib/include
52
	cp ecolib/ecolib.h $(CONTRIBDIR)include
53 53
endif
54 54

  
55 55
build-qfclib:
56
	$(MAKE) --directory=qfclib PREFIX_OBJ=$(OBJSDIR)saflp-contrib-qfclib-
57
	$(MAKE) --directory=qfclib OPTION=-f PREFIX_OBJ=$(OBJSDIR)optlp-contrib-qfclib-
56 58
ifeq ($(SHELL),sh.exe)
57
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="$(CXXFLAGS_SAFE_CONTRIB)" PREFIX_OBJ=..\..\build\objects\dist\saflp-contrib-qfclib-
58
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="$(CXXFLAGS_OPT_CONTRIB)" PREFIX_OBJ=..\..\build\objects\dist\optlp-contrib-qfclib-
59
	copy qfclib\qfclib.h $(DISK)\contrib\include
59
	copy qfclib\qfclib.h $(CONTRIBDIR)include
60 60
else
61
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="$(CXXFLAGS_SAFE_CONTRIB)" PREFIX_OBJ=../../build/objects/dist/saflp-contrib-qfclib-
62
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="$(CXXFLAGS_OPT_CONTRIB)" PREFIX_OBJ=../../build/objects/dist/optlp-contrib-qfclib-
63
	cp qfclib/qfclib.h $(DISK)/contrib/include
61
	cp qfclib/qfclib.h $(CONTRIBDIR)include
64 62
endif
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff