📄 makefile
字号:
# Makefile for writing tests of DBM brothers#================================================================# Setting variables#================================================================# Generic settingsSHELL = /bin/sh# TargetsMYBINS = tctest qdbmtest ndbmtest sdbmtest gdbmtest tdbtest cdbtest bdbtest \ maptest sqltest cmpsqltctest#================================================================# Suffix rules#================================================================.SUFFIXES :#================================================================# Actions#================================================================mesg : @echo "Here are writing tests of DBM brothers." 1>&2 @echo "select a target of {all clean $(MYBINS)}." 1>&2all : $(MYBINS)clean : rm -rf $(MYBINS) *.o *.exe a.out casket* *~distclean : clean#================================================================# Building binaries#================================================================tctest : tctest.c LD_LIBRARY_PATH="$(LD_LIBRARY_PATH):.:.." ; PATH="$(PATH):.:.." ; \ export LD_LIBRARY_PATH PATH ; ldflags=`tcucodec conf -l` ; \ [ -z "$$ldflags" ] && \ ldflags="-L/usr/local/lib -ltokyocabinet -lz -lpthread -lm -lc" ; \ gcc -I.. -I/usr/local/include -D_GNU_SOURCE=1 \ -Wall -ansi -pedantic -O3 -o $@ tctest.c \ -static -L. -L.. $$ldflagsqdbmtest : qdbmtest.c gcc -I.. -I/usr/local/include -D_GNU_SOURCE=1 \ -Wall -ansi -pedantic -O3 -o $@ qdbmtest.c \ -static -L.. -L/usr/local/lib -lqdbm -lz -lcndbmtest : ndbmtest.c gcc -I/usr/local/include -D_GNU_SOURCE=1 \ -Wall -ansi -pedantic -O3 -o $@ ndbmtest.c \ -static -L/usr/local/lib -lndbm -lcsdbmtest : sdbmtest.c gcc -I/usr/local/include -D_GNU_SOURCE=1 \ -Wall -ansi -pedantic -O3 -o $@ sdbmtest.c \ -static -L/usr/local/lib -lsdbm -lcgdbmtest : gdbmtest.c gcc -I/usr/local/include -D_GNU_SOURCE=1 \ -Wall -ansi -pedantic -O3 -o $@ gdbmtest.c \ -static -L/usr/local/lib -lgdbm -lctdbtest : tdbtest.c gcc -I/usr/local/include -D_GNU_SOURCE=1 \ -Wall -ansi -pedantic -O3 -o $@ tdbtest.c \ -static -L/usr/local/lib -ltdb -lccdbtest : cdbtest.c gcc -I/usr/local/include -D_GNU_SOURCE=1 \ -Wall -ansi -pedantic -O3 -o $@ cdbtest.c \ -static -L/usr/local/lib -lcdb -lcbdbtest : bdbtest.c gcc -I/usr/local/bdb/include -D_GNU_SOURCE=1 \ -Wall -O3 -o $@ bdbtest.c \ -static -L/usr/local/bdb/lib -ldb -lpthread -lcmaptest : maptest.cc LD_LIBRARY_PATH="$(LD_LIBRARY_PATH):.:.." ; PATH="$(PATH):.:.." ; \ export LD_LIBRARY_PATH PATH ; ldflags=`tcucodec conf -l` ; \ [ -z "$$ldflags" ] && \ ldflags="-L/usr/local/lib -ltokyocabinet -lz -lpthread -lm -lc" ; \ g++ -I.. -I/usr/local/include -D_GNU_SOURCE=1 \ -Wall -ansi -pedantic -O3 -o $@ maptest.cc \ -static -L. -L.. -lstdc++ $$ldflagssqltest : sqltest.c gcc -I/usr/local/include -D_GNU_SOURCE=1 \ -Wall -O3 -o $@ sqltest.c \ -static -L/usr/local/lib -lsqlite3 -lpthread -ldl -lccmpsqltctest : cmpsqltctest.c LD_LIBRARY_PATH="$(LD_LIBRARY_PATH):.:.." ; PATH="$(PATH):.:.." ; \ export LD_LIBRARY_PATH PATH ; ldflags=`tcucodec conf -l` ; \ [ -z "$$ldflags" ] && \ ldflags="-L/usr/local/lib -ltokyocabinet -lz -lpthread -lm -lc" ; \ gcc -std=c99 -I.. -I/usr/local/include -D_GNU_SOURCE=1 \ -Wall -pedantic -O3 -o $@ cmpsqltctest.c \ -static -L. -L.. -lsqlite3 -lpthread -ldl $$ldflags# END OF FILE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -