diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-04 13:17:32 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-04 13:17:32 +0100 |
commit | 7165b548cd57f4d628789f6f9097eb5f43d3ceec (patch) | |
tree | c0e95c44dd09feb7966734ae59a5490843dd8d67 /gg_sniff/Makefile | |
parent | fix ggnet_conn_find() prototype (diff) | |
download | glouglou-7165b548cd57f4d628789f6f9097eb5f43d3ceec.tar.xz glouglou-7165b548cd57f4d628789f6f9097eb5f43d3ceec.zip |
work on gg_sniff, now it compiles
Diffstat (limited to 'gg_sniff/Makefile')
-rw-r--r-- | gg_sniff/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gg_sniff/Makefile b/gg_sniff/Makefile index ad98c51..bd5adbc 100644 --- a/gg_sniff/Makefile +++ b/gg_sniff/Makefile @@ -1,17 +1,18 @@ -CFLAGS += $(shell pkg-config --cflags elementary evas ecore) -LIBS += $(shell pkg-config --libs elementary evas ecore) CFLAGS += -Wall -O2 +LDFLAGS += -levent -lglouglou -lpcap BINARY = gg_sniff USER = _gg_sniff +SOURCES = gg_sniff.c pcap.c dns.c +OBJECTS = $(SOURCES:.c=.o) PREFIX = /usr/local BINDIR=$(PREFIX)/bin -$(BINARY): $(BINARY).o - $(CC) -o $@ $< $(LIBS) +$(BINARY): $(OBJECTS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $(BINARY) $(OBJECTS) -install: $(BINARY) +install: @echo "creating group and user $(USER)" @uname -a |grep -i linux >/dev/null ;\ if [ $$? -eq 0 ]; then \ |