diff options
| author | Bruce Momjian <bruce@momjian.us> | 1999-05-23 01:04:07 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 1999-05-23 01:04:07 +0000 |
| commit | b14c99d8d6bdb3155fe54e6f24e8aac32a09ed81 (patch) | |
| tree | 0b63fc00dfff28c643cfafe587777ab11e5733c5 /src/interfaces/libpq++/examples/Makefile | |
| parent | 795f6ca66ab734559e6eed7a9466eb19b58f3166 (diff) | |
| download | postgresql-b14c99d8d6bdb3155fe54e6f24e8aac32a09ed81.tar.gz | |
Here it is. Remove or rename the current interfaces/libpq++ and untar
this file in interfaces/
It will all need to be checked in. I used the char *rcsid[] method for
cvs ids so it can be strings | grep'd to find version numbers. The new
version for the library is 3.0.
Run configure from src/ to create the Makefile and it should be good to
go.
I did minimal documentation references in the README, I'll see if I can
get something to Tom Lockhart rather quickly.
Vince.
Diffstat (limited to 'src/interfaces/libpq++/examples/Makefile')
| -rw-r--r-- | src/interfaces/libpq++/examples/Makefile | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/src/interfaces/libpq++/examples/Makefile b/src/interfaces/libpq++/examples/Makefile index aff2fdd9bc..0e0c07cf5f 100644 --- a/src/interfaces/libpq++/examples/Makefile +++ b/src/interfaces/libpq++/examples/Makefile @@ -2,26 +2,23 @@ # Makefile for example programs # -SRCDIR= ../../.. -include ../../../Makefile.global LIBNAME= libpq++ +HEADERDIR= /usr/local/pgsql/include +LIBPQDIR= /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 +CXXFLAGS= $(CFLAGS) -Wno-error -Wno-unused -Wl,-Bdynamic + +INCLUDE_OPT= -I$(HEADERDIR) -INCLUDE_OPT= \ - -I.. \ - -I../../../backend \ - -I../../../include \ - -I$(LIBPQDIR) \ - -I$(HEADERDIR) CXXFLAGS+= $(INCLUDE_OPT) -LDFLAGS+= -L.. -lpq++ -L$(LIBPQDIR) -lpq +LDFLAGS+= -L$(LIBPQDIR) -lpq++ # # And where libpq goes, so goes the authentication stuff... @@ -34,17 +31,12 @@ endif PROGS= testlibpq0 testlibpq1 testlibpq2 testlibpq3 \ testlibpq4 testlibpq5 testlibpq6 testlo -all: submake $(PROGS) +all: $(PROGS) -$(PROGS): % : %.cc ../$(LIBNAME).a +$(PROGS): % : %.cc $(CXX) $(CXXFLAGS) -o $@ $@.cc $(LDFLAGS) .PHONY: submake -submake: - $(MAKE) -C.. $(LIBNAME).a - -../$(LIBNAME).a: - $(MAKE) -C.. $(LIBNAME).a clean: rm -f $(PROGS) |
