-
Notifications
You must be signed in to change notification settings - Fork 155
/
GeoDamake.silicon.opt
75 lines (55 loc) · 2.1 KB
/
GeoDamake.silicon.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,xml,webview,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 \
/usr/local/opt/boost/lib/libboost_date_time-mt.a \
/usr/local/opt/boost/lib/libboost_thread-mt.a \
/usr/local/opt/boost/lib/libboost_system-mt.a \
$(GEODA_HOME)/libraries/lib/libjson_spirit.a
BOOST_HEADER = -I/usr/local/opt/boost/include
GDAL_HEADER = -I/usr/local/opt/gdal/include -D__PROJ6__
EIGEN_HEADER = -I$(GEODA_HOME)/libraries/include -I$(GEODA_HOME)/temp/eigen3 -I$(GEODA_HOME)/temp/spectra/include
CPPFLAGS = -O3 -std=c++14 -I$(GeoDa_ROOT) $(USER_LOG) $(GDAL_HEADER) $(EIGEN_HEADER)
CFLAGS = -O3 -Wall -Wdeclaration-after-statement $(USER_DEFS) $(GDAL_HEADER) $(EIGEN_HEADER)
CXXFLAGS = -std=c++14 -O3 -Wall $(USER_DEFS) $(WX_HEADER) $(BOOST_HEADER) $(GDAL_HEADER) $(EIGEN_HEADER)
LDFLAGS = -arch arm64
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) -c -o $@ $<
%.$(OBJ_EXT): %.cpp
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<
#
# default rules for handling subdirectories
#
%-target:
$(MAKE) -C $*
%-clean:
$(MAKE) -C $* clean