znone
2019-06-16 ebd997c5ce55fd260696f9bb117f1f06c09a4759
test/test_sqlite.mak
@@ -3,20 +3,19 @@
PCH_HEADER=stdafx.h
PCH=stdafx.h.gch
OBJ=TestSqlite.o sqlite3.o md5.o
CFLAGS=-g -D_DEBUG -O2 -I. -I/usr/local/include
CXXFLAGS=-I../include -std=c++11
LDFLAGS= -L/usr/local/lib -pthread -ldl -lcpptest
CFLAGS=-g -D_DEBUG -O2 -I. -I../include -I/usr/local/include -std=c++11
LDFLAGS= -L/usr/local/lib -ldl -lcpptest -lpthread
all : $(TARGET)
$(PCH) : $(PCH_HEADER)
   $(CC) $(CFLAGS) $(CXXFLAGS) -x c++-header -o $@ $<
   $(CC) $(CFLAGS) -x c++-header -o $@ $<
TestSqlite.o : $(PCH) TestSqlite.cpp TestSqlite.h
   $(CC) -c $(CFLAGS) $(CXXFLAGS) -o $@ TestSqlite.cpp
   $(CC) -c $(CFLAGS) -o $@ TestSqlite.cpp
   
sqlite3.o : sqlite3.c sqlite3.h
   gcc -c $(CFLAGS) -o $@ $<
sqlite3.o : sqlite3.c
   gcc -c -g -O2 -I../include -o $@ $^
   
md5.o : md5.c md5.h
   gcc -c $(CFLAGS) -o $@ $<