Revision 1482 trunk/contrib/GNUmakefile

GNUmakefile (revision 1482)
1 1
ifeq ($(OS),Windows_NT)
2 2
  ifeq (sh.exe,$(findstring sh.exe,$(SHELL)))
3 3
    SHELL = cmd
4
    PATH:=..\..\utilities\mingw\bin;..\utilities\mingw\bin;$(PATH)
4
    ifeq ($(SHELL),cmd)
5
      MYPWD=$(shell cd)
6
    else
7
      MYPWD=$(shell cmd /C cd)
8
    endif
9
    PATH:=$(MYPWD)\..\utilities\mingw\bin;$(PATH);$(MYPWD)\..\utilities
5 10
  else
6 11
    ifneq ($(TERM),xterm)
7
      PATH:=../../utilities/mingw/bin:../utilities/mingw/bin:$(PATH)
12
      MYPWD=$(shell pwd)
13
      PATH:=$(MYPWD)/../utilities/mingw/bin:$(PATH)
8 14
    endif
15
    PATH:=$(PATH):$(MYPWD)/../utilities
9 16
  endif
10 17
endif
11 18
ifeq ($(SHELL),cmd)
......
33 40

  
34 41
shared: all
35 42
ifeq ($(SHELL),cmd)
36
	$(CXX) -static -shared $(LDFLAGS) -o ..\build\dist\contrib\lib\contrib.dll ..\build\dist\lib\admb.dll -Wl,--whole-archive ..\build\dist\contrib\lib\libcontrib.a -Wl,--no-whole-archive
37
	$(CXX) -static -shared $(LDFLAGS) -o ..\build\dist\contrib\lib\contribo.dll ..\build\dist\lib\admbo.dll -Wl,--whole-archive ..\build\dist\contrib\lib\libcontribo.a -Wl,--no-whole-archive
43
	$(CXX) -static -shared $(LDFLAGS) -o ..\build\dist\contrib\lib\contrib.dll -Wl,--whole-archive ..\build\dist\contrib\lib\libcontrib.a -Wl,--no-whole-archive -Wl,-Bdynamic ..\build\dist\lib\admb.dll
44
	$(CXX) -static -shared $(LDFLAGS) -o ..\build\dist\contrib\lib\contribo.dll -Wl,--whole-archive ..\build\dist\contrib\lib\libcontribo.a -Wl,--no-whole-archive -Wl,-Bdynamic ..\build\dist\lib\admbo.dll
38 45
else
39 46
  ifeq (LLVM,$(findstring LLVM,$(shell $(CXX) --version)))
40 47
	$(CXX) -shared $(LDFLAGS) -o../build/dist/contrib/lib/libcontrib.so -Wl,-force_load ../build/dist/contrib/lib/libcontrib.a ../build/dist/lib/libadmb.so
......
67 74
endif
68 75

  
69 76
contrib-ad2csv: contrib-dirs
70
	$(MAKE) --directory=ad2csv OPTION=$(OPTION) CONTRIB_BIN=$(CONTRIB_BIN)
77
	$(MAKE) --directory=ad2csv CXXFLAGS= LDFLAGS= OPTION=$(OPTION) CONTRIB_BIN=$(CONTRIB_BIN)
71 78

  
72 79
contrib-ecolib:
73
	$(MAKE) --directory=ecolib OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
80
	$(MAKE) --directory=ecolib CXXFLAGS= LDFLAGS= OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
74 81

  
75 82
contrib-gdbprintlib:
76
	$(MAKE) --directory=gdbprintlib OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
83
	$(MAKE) --directory=gdbprintlib CXXFLAGS= LDFLAGS= OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
77 84

  
78 85
contrib-qfclib:
79
	$(MAKE) --directory=qfclib OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
86
	$(MAKE) --directory=qfclib CXXFLAGS= LDFLAGS= OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
80 87

  
81 88
contrib-statslib:
82
	$(MAKE) --directory=statslib OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
89
	$(MAKE) --directory=statslib CXXFLAGS= LDFLAGS= OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
83 90

  
84 91
contrib-src:
85
	$(MAKE) --directory=src OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
92
	$(MAKE) --directory=src CXXFLAGS= LDFLAGS= OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
86 93

  
87 94
contrib-dirs:
88 95
ifeq ($(SHELL),cmd)
......
124 131
	$(MAKE) --directory=statslib clean
125 132
	$(MAKE) --directory=src clean
126 133
	$(MAKE) --directory=ad2csv clean
134

  
135
check:
136
	@echo "SHELL: $(SHELL)"
137
	@echo "PATH: $(PATH)"
138
	@echo "TERM: $(TERM)"
139
	@echo "MAKE: $(MAKE)"
140
	@echo "CXX: $(CXX)"
141
	@echo "OS: $(OS)"
142
	@echo "OSTYPE: $(OSTYPE)"

Also available in: Unified diff