Makefile changes for better compiles.

sqlite.erl supports start_link/stop and open/close paradigm.
added write_sql creation.
This commit is contained in:
Tee Teoh
2008-06-18 23:34:09 -04:00
parent 1f42c1fe39
commit e4878b2064
2 changed files with 70 additions and 17 deletions

View File

@@ -4,11 +4,11 @@ FLAGS=-I$(OTP_DIR)/include -L$(OTP_DIR)/lib
#GCC=/opt/local/bin/gcc-apple-4.2
GCC=/usr/bin/gcc
all: erl_comm.c sqlite_port.c
$(GCC) -Wall -o sqlite_port erl_comm.c sqlite_port.c $(FLAGS) $(LIB)
all: obj
$(GCC) -Wall -o sqlite_port $(FLAGS) $(LIB) erl_comm.o sqlite_port.o
obj: erl_comm.c sqlite_port.c
$(GCC) -Wall -c $(FLAGS) erl_comm.c sqlite_port.c
$(GCC) -Wall -c $(FLAGS) erl_comm.c sqlite_port.c
clean:
- rm -f *.o sqlite_port