-
Notifications
You must be signed in to change notification settings - Fork 156
/
GeoDamake.macosx.opt
75 lines (57 loc) · 2.2 KB
/
GeoDamake.macosx.opt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
GeoDa_ROOT = $(GEODA_HOME)/../..
TARGET = GeoDa
CC = gcc
CXX = g++
LD = g++
RM = /bin/rm -f
WXLIBS = $(shell $(GEODA_HOME)/libraries/bin/wx-config --libs xrc,stc,richtext,ribbon,propgrid,aui,gl,html,qa,adv,core,webview,xml,net,base)
WX_HEADER = $(shell $(GEODA_HOME)/libraries/bin/wx-config --cppflags)
LIBS = $(WXLIBS) \
$(GEODA_HOME)/temp/CLAPACK-3.2.1/blas.a \
$(GEODA_HOME)/temp/CLAPACK-3.2.1/F2CLIBS/libf2c.a \
$(GEODA_HOME)/temp/CLAPACK-3.2.1/lapack.a \
-L/usr/lib -liconv -lcurl -lz -lpthread \
-framework OpenCL \
-L/usr/local/opt/gdal/lib -lgdal \
$(GEODA_HOME)/libraries/lib/libboost_date_time.a \
$(GEODA_HOME)/libraries/lib/libboost_thread.a \
$(GEODA_HOME)/libraries/lib/libboost_system.a \
$(GEODA_HOME)/libraries/lib/libjson_spirit.a
USER_DEFS = -I$(GEODA_HOME)/libraries/include
BOOST_HEADER = -I$(GEODA_HOME)/libraries/include
GDAL_HEADER = -I/usr/local/opt/gdal/include -D__PROJ6__
EIGEN_HEADER = -I$(GEODA_HOME)/temp/eigen3 -I$(GEODA_HOME)/temp/spectra/include
WARNINGS = -Wno-enum-constexpr-conversion -Wno-int-conversion -Wdeclaration-after-statement
CPPFLAGS = -std=c++14 $(WARNINGS) -I$(GeoDa_ROOT) $(USER_LOG)
CFLAGS = -std=gnu99 -O3 -Wall $(WARNINGS) $(USER_DEFS) $(GDAL_HEADER) $(EIGEN_HEADER)
CXXFLAGS = -std=c++14 -O3 -Wall $(WARNINGS) $(USER_DEFS) $(WX_HEADER) $(BOOST_HEADER) $(GDAL_HEADER) $(EIGEN_HEADER)
LDFLAGS = -arch $(GEODA_ARCH)
OBJ_EXT = o
#
# generic library rules
#
#
# gdal and ogr low level drivers use the following default rules in order to
# populate the ../o/ directory with all object and library object files
#
O_OBJ = $(foreach file,$(OBJ),../o/$(file))
T_OBJ = $(foreach file,$(OBJ),o/$(file))
../o/%.$(OBJ_EXT): %.c
$(CC) $(CFLAGS) -c -o $@ $<
../o/%.$(OBJ_EXT): %.cpp
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<
o/%.$(OBJ_EXT): %.c
$(CC) $(CFLAGS) -c -o $@ $<
o/%.$(OBJ_EXT): %.cpp
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<
%.$(OBJ_EXT): %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
%.$(OBJ_EXT): %.cpp
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<
#
# default rules for handling subdirectories
#
%-target:
$(MAKE) -C $*
%-clean:
$(MAKE) -C $* clean