#!/usr/bin/make # #### The suffix to add to executable files. ".exe" for windows. # Nothing for unix. # E = #### C Compile and options for use in building executables that # will run on the target platform. # CC = gcc -g -Wall #CC = gcc -g -Wall -DOMIT_ODBC=1 -fprofile-arcs -ftest-coverage #CC += -DSQLITE_COVERAGE_TEST CC += -DSQLITE_NO_SYNC=1 #### Extra arguments for linking the finished binary. # LIB = $(LDFLAGS) # You should not need to change anything below this line ############################################################################### # OBJ = \ md5.o \ sqlite3.o INC = \ slt_sqlite.c \ slt_odbc3.c OPTS += -DSQLITE_THREADSAFE=0 # The following OMIT options must match the OMIT options used to build # the amalgamation. # OPTS += -DSQLITE_OMIT_LOAD_EXTENSION sqllogictest$(E): sqllogictest.c sqllogictest.h $(OBJ) $(INC) $(CC) -o sqllogictest$(E) sqllogictest.c $(OBJ) md5.o: md5.c $(CC) -c md5.c sqlite3.o: sqlite3.c sqlite3.h $(CC) -c sqlite3.c $(OPTS) clean: rm -f $(OBJ)