v8erl / Makedefs

# -*- mode: makefile -*-
# Makefile definitions for v8erl

#Build environment info
CPP := g++
ARCH := $(shell uname -m | tr -s " ") #x86_64, x86, ppc, ...
KERNEL := $(shell uname -s | tr -s " ") #Linux, Darwin, ...

#Build environment pointers
LIB_DIR := ./lib
SRC_DIR := ./src
ERL_DIR := ./erl
EBIN_DIR := ./ebin

#OS specific settings. 
ifeq ($(strip $(KERNEL)),Darwin)
LIB_EXT = dylib
LDFLAGS = -Wall -fPIC -dynamiclib -flat_namespace -undefined suppress
else
LIB_EXT = so
LDFLAGS = -Wall -fPIC -shared -flat_namespace -undefined
endif

#Is ERL_ROOT defined?  If not we have to guess....
ifeq (${ERL_ROOT},)
ERL_INC += -I/usr/lib/erlang/usr/include
ERL_INC += -I/usr/local/lib/erlang/usr/include
ERL_INC += -I/opt/local/lib/erlang/usr/include

EI_LIB += -L/usr/lib/erlang/lib/erl_interface-3.5.9/lib
EI_LIB += -L/usr/local/lib/erlang/lib/erl_interface-3.5.9/lib
EI_LIB += -L/opt/local/lib/erlang/lib/erl_interface-3.5.9/lib
else
ERL_INC = -I${ERL_ROOT}/usr/include
EI_LIB = -L${ERL_ROOT}/lib/erl_interface-3.5.9/lib
endif

#Is V8_ROOT defined?  If not we have to guess....
ifeq (${V8_ROOT},)
V8_INC += -I./v8/include
V8_INC += -I../v8/include

V8_LIB += -L./v8
V8_LIB += -L../v8
else
V8_LIB = -L${V8_ROOT}
endif
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.