Add autoconf files for better cross-platform compilation

This commit is contained in:
sergey-miryanov
2010-02-04 20:37:00 +05:00
parent f993cd95b1
commit 96efbce2e7
6 changed files with 6563 additions and 16 deletions

View File

@@ -1,14 +0,0 @@
GCC=gcc
LDFLAGS=-shared -L/usr/local/lib -lsqlite3 -bundle -flat_namespace -undefined suppress -fPIC -lerl_interface -L/usr/local/lib/erlang/lib/erl_interface-3.6.1/lib -lei
SRCS=sqlite3_drv.c sqlite3_drv.h
OUTPUT=sqlite3_drv.so
CFLAGS=-o ../ebin/${OUTPUT} -I/usr/local/lib/erlang/usr/include/ -I/usr/local/lib/erlang/lib/erl_interface-3.6.1/include/ -arch x86_64
all: ../ebin/${OUTPUT}
../ebin/${OUTPUT}: sqlite3_drv.c sqlite3_drv.h
${GCC} sqlite3_drv.c ${LDFLAGS} ${CFLAGS}
clean:
rm -rf ${OUTPUT}

16
priv/Makefile.in Normal file
View File

@@ -0,0 +1,16 @@
ERL_INTERFACE=@ERLANG_LIB_DIR_erl_interface@
ERL_ROOT=@ERLANG_ROOT_DIR@
GCC=gcc
LDFLAGS=-shared -L/usr/lib -lsqlite3 -undefined -fPIC -lerl_interface -L$(ERL_INTERFACE)/lib -lei
SRCS=sqlite3_drv.c sqlite3_drv.h
OUTPUT=sqlite3_drv.so
CFLAGS=-o ../ebin/${OUTPUT} -I$(ERL_ROOT)/usr/include/ -I$(ERL_INTERFACE)/include/
all: ../ebin/${OUTPUT}
../ebin/${OUTPUT}: sqlite3_drv.c sqlite3_drv.h
${GCC} sqlite3_drv.c ${LDFLAGS} ${CFLAGS}
clean:
rm -rf ../ebin/${OUTPUT}