📄 makefile
字号:
# Makefile for writing tests of DBM brothers#================================================================# Setting Variables#================================================================# Generic settingsSHELL = /bin/sh# TargetsMYBINS = qdbmtest ndbmtest sdbmtest gdbmtest tdbtest cdbtest bdbtest#================================================================# 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#================================================================qdbmtest : qdbmtest.c gcc -I/usr/local/include -Wall -ansi -pedantic -O3 -o $@ qdbmtest.c \ -static -L/usr/local/lib -lqdbm -lcndbmtest : ndbmtest.c gcc -I/usr/local/include -Wall -ansi -pedantic -O3 -o $@ ndbmtest.c \ -static -L/usr/local/lib -lndbm -lcsdbmtest : sdbmtest.c gcc -I/usr/local/include -Wall -ansi -pedantic -O3 -o $@ sdbmtest.c \ -static -L/usr/local/lib -lsdbm -lcgdbmtest : gdbmtest.c gcc -I/usr/local/include -Wall -ansi -pedantic -O3 -o $@ gdbmtest.c \ -static -L/usr/local/lib -lgdbm -lctdbtest : tdbtest.c gcc -I/usr/local/include -Wall -ansi -pedantic -O3 -o $@ tdbtest.c \ -static -L/usr/local/lib -ltdb -lccdbtest : cdbtest.c gcc -I/usr/local/include/cdb -Wall -ansi -pedantic -O3 -o $@ cdbtest.c \ /usr/local/lib/cdb/cdb.a /usr/local/lib/cdb/alloc.a /usr/local/lib/cdb/buffer.a \ /usr/local/lib/cdb/byte.a /usr/local/lib/cdb/unix.a -static -lcbdbtest : bdbtest.c gcc -I/usr/local/BerkeleyDB.4.1/include -Wall -O3 -o $@ bdbtest.c \ -static -L/usr/local/BerkeleyDB.4.1/lib -ldb-4.1 -lc# END OF FILE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -