]> granicus.if.org Git - pgbouncer/commitdiff
use autoconfed settings for test code
authorMarko Kreen <markokr@gmail.com>
Mon, 7 Jan 2008 10:01:16 +0000 (10:01 +0000)
committerMarko Kreen <markokr@gmail.com>
Mon, 7 Jan 2008 10:01:16 +0000 (10:01 +0000)
test/Makefile

index 4deae03534d8dd865949df31c68111d82b26f64e..03d4480ca8a89d7b4f697500eb0ec404ffb737d2 100644 (file)
@@ -5,12 +5,13 @@ PGLIB = -L$(shell pg_config --libdir)
 include ../config.mak
 
 CPPFLAGS += -I../include $(PGINC)
-LDFLAGS += $(PGLIB) -lpq -levent
+LDFLAGS += $(PGLIB)
+LIBS += -lpq
 
 all: asynctest
 
 asynctest: asynctest.c
-       $(CC) -o $@ $< $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
+       $(CC) -o $@ $< $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LIBS)
 
 clean:
        rm -f asynctest