X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2FMakefile;h=206f320bbc9559b38b108791f17d120eb6037347;hb=fb135219f1c99d0817e7d793bcfad3cc40a69a72;hp=b45b07d8a3a762450441b2d1f0ff4c302d53911a;hpb=6deba8829083121e7e2bfcc86d3d62a5fb4b53ea;p=dak.git diff --git a/src/Makefile b/src/Makefile index b45b07d8..206f320b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,9 +1,9 @@ #!/usr/bin/make -f -CXXFLAGS = -I/usr/include/postgresql/ -I/usr/include/postgresql/server/ -fPIC -Wall -CFLAGS = -fPIC -Wall -LDFLAGS = -fPIC -LIBS = -lapt-pkg +CXXFLAGS = -I/usr/include/postgresql/ -I`pg_config --includedir-server` -fPIC -Wall +CFLAGS = -fFIC -Wall `pg_config --cflags` +LDFLAGS = `pg_config --ldflags` +LIBS = -lapt-pkg `pg_config --libs` C++ = g++