X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2FMakefile;h=206f320bbc9559b38b108791f17d120eb6037347;hb=a90f76419d9835373654ce65aca69000ef638899;hp=68ead5837758ba4dacbc211655c44f3023d5c7d5;hpb=59fd5aa2a8be3b76dbc968429c457f096adfa472;p=dak.git diff --git a/src/Makefile b/src/Makefile index 68ead583..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++ @@ -11,7 +11,7 @@ all: sql-aptvc.so sql-aptvc.o: sql-aptvc.cpp sql-aptvc.so: sql-aptvc.o - $(C++) $(LDFLAGS) $(LIBS) -shared -o $@ $< + $(CC) $(LDFLAGS) $(LIBS) -shared -o $@ $< clean: rm -f sql-aptvc.so sql-aptvc.o