makefile
来自「关系型数据库 Postgresql 6.5.2」· 代码 · 共 44 行
TXT
44 行
## Makefile for example programs#LIBNAME= libpq++HEADERDIR= /usr/local/pgsql/includeLIBPQDIR= /usr/local/pgsql/lib# We have to override -Werror, which makes warnings, fatal, because we# inevitably get the warning, "abstract declarator used as declaration"# because of our inclusion of c.h and we don't know how to stop that.CXXFLAGS= $(CFLAGS) -Wno-error -Wno-unused -Wl,-BdynamicINCLUDE_OPT= -I$(HEADERDIR)CXXFLAGS+= $(INCLUDE_OPT)LDFLAGS+= -L$(LIBPQDIR) -lpq++ ## And where libpq goes, so goes the authentication stuff...#ifdef KRBVERSLDFLAGS+= $(KRBLIBS)CXXFLAGS+= $(KRBFLAGS)endifPROGS= testlibpq0 testlibpq1 testlibpq2 testlibpq3 \ testlibpq4 testlibpq5 testlibpq6 testloall: $(PROGS)$(PROGS): % : %.cc $(CXX) $(CXXFLAGS) -o $@ $@.cc $(LDFLAGS).PHONY: submakeclean: rm -f $(PROGS)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?