summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2010-06-13 20:54:10 +0300
committerFelipe Contreras <felipe.contreras@gmail.com>2010-06-14 02:47:12 +0300
commit114d24899162d5220b19545070de0a28be223092 (patch)
treea16e6971ad3cb3f190132d958c00aceb32631863 /Makefile
parentcc894e4fce04094d843eb63637f12b8edae5e047 (diff)
Add pn_log
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9ff8bf1..25ad68c 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@ CC := gcc
CFLAGS := -O2 -ggdb -Wall -Wextra -Wno-unused-parameter -ansi -std=c99
LDFLAGS := -Wl,--no-undefined
+override CFLAGS += -D_GNU_SOURCE
+
GIO_CFLAGS := $(shell pkg-config --cflags gio-2.0)
GIO_LIBS := -lgio-2.0 -lgobject-2.0 -lglib-2.0
@@ -15,7 +17,8 @@ QUIET_LINK = @echo ' LINK '$@;
QUIET_CLEAN = @echo ' CLEAN '$@;
endif
-test: test.o pn_core.o pn_session.o pn_node.o
+test: test.o pn_core.o pn_session.o pn_node.o \
+ pn_log.o
test: override CFLAGS += $(GIO_CFLAGS)
test: override LIBS += $(GIO_LIBS)