aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-06-30 11:28:40 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2011-06-30 11:44:38 +0200
commit6cb406b3eef4a54ba8bc2e7d3d1fb619f0a5d219 (patch)
treebe56fe49c5f5438032ac58315a810c4346869a47 /Makefile
parente1ad76a6cfb76d3df75c8ae0dec120ee73e39cfc (diff)
downloadpingu-6cb406b3eef4a54ba8bc2e7d3d1fb619f0a5d219.tar.bz2
pingu-6cb406b3eef4a54ba8bc2e7d3d1fb619f0a5d219.tar.xz
pingu: initial use of libev
For now we only use libev to generate the ping burst intervals.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index daf1b72..25774ba 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ VERSION = 0.5
CFLAGS ?= -g
CFLAGS += -DPINGU_VERSION=\"$(VERSION)\"
+CFLAGS += -Wall -Wstrict-prototypes -D_GNU_SOURCE -std=gnu99
prefix = /usr
BINDIR = $(prefix)/bin
@@ -18,6 +19,8 @@ pingu_OBJS = \
pingu.o \
xlib.o
+pingu_LIBS = -lev
+
mtu_OBJS = \
mtu.o \
netlink.o \
@@ -28,6 +31,7 @@ ALL_OBJS= $(pingu_OBJS) $(mtu_OBJS)
all: $(TARGETS)
pingu: $(pingu_OBJS)
+ $(CC) $(LDFLAGS) $(pingu_OBJS) $(pingu_LIBS) -o $@
mtu: $(mtu_OBJS)