Packages
exboost
0.2.1-alpha.3
0.3.9
0.3.8
0.3.7
retired
0.3.6
retired
0.3.5
retired
0.3.4
retired
0.3.3
retired
0.3.2
retired
0.3.1
retired
0.3.0
retired
0.2.9
retired
0.2.8
retired
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1-alpha.6
0.2.1-alpha.5
0.2.1-alpha.4
0.2.1-alpha.3
0.2.1-alpha.2
0.2.1-alpha
0.2.0
0.2.0-alpha
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.0
Provides an elixir wrapper for the C++ Boost library.
Current section
Files
Jump to
Current section
Files
Makefile
#
VPATH = ./priv
ifeq ($(BOOSTINCLUDE),)
BOOSTINCLUDE := /usr/local/include
endif
ifeq ($(BOOSTLIB),)
BOOSTLIB := /usr/local/lib
endif
ERLANG_PATH = $(shell erl -eval 'io:format("~s", [lists:concat([code:root_dir(), "/erts-", erlang:system_info(version), "/include"])])' -s init stop -noshell)
CFLAGS = -I$(ERLANG_PATH) -I$(BOOSTINCLUDE) -fPIC -g -O3 -flto -mtune=generic -Wno-write-strings
LDFLAGS = -shared -undefined dynamic_lookup $(BOOSTLIB)/libboost_math_c99.a $(BOOSTLIB)/libboost_random.a
CC = g++
SRCS = boostnif.c
OBJS = $(SRCS:.c=.o)
priv/libboostnif.so: $(OBJS)
find / -name 'libboost*.a' -ls
$(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
.PHONY: clean
clean:
rm -f priv/libboostnif.so