forked from scalien/keyspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.Darwin
42 lines (38 loc) · 1.01 KB
/
Makefile.Darwin
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
#
# Scalien Makefile for Darwin (OSX)
#
INCLUDE = \
-I$(KEYSPACE_DIR)/src \
-I/usr/local/include/db4 \
-I/usr/local/include/db42 \
-I/usr/local/include/db43 \
-I/usr/local/include/db44 \
-I/usr/local/include/db45 \
-I/usr/local/include/db46 \
-I/usr/local/include/db47 \
-I/usr/local/include/db48 \
-I/opt/local/include/db46 \
LDPATH = \
-L/usr/local/lib/db4 \
-L/usr/local/lib/db42 \
-L/usr/local/lib/db43 \
-L/usr/local/lib/db44 \
-L/usr/local/lib/db45 \
-L/usr/local/lib/db46 \
-L/usr/local/lib/db47 \
-L/usr/local/lib/db48 \
-L/opt/local/lib/db46 \
BASE_CFLAGS = -Wall $(INCLUDE) -DPLATFORM_$(PLATFORM_UCASE) -D__STDC_FORMAT_MACROS
BASE_CXXFLAGS = $(BASE_CFLAGS)
BASE_LDFLAGS = -lpthread -ldb_cxx $(LDPATH)
ifeq ($(shell uname),Darwin)
SOLINK = -Xlinker -x -fPIC -dylib -undefined dynamic_lookup -bundle
SOEXT = dylib
SWIG_LDFLAGS = -bundle -flat_namespace -undefined suppress
BUNDLEEXT = bundle
else
SOLINK = -shared -fPIC -Wl,-soname,$(SONAME)
SOEXT = so
SWIG_LDFLAGS = -shared -fPIC
BUNDLEEXT = so
endif