diff options
author | dragorn <dragorn@8d8ab74c-27aa-4a3d-9bde-523a2bc1f624> | 2009-11-21 21:20:06 +0000 |
---|---|---|
committer | dragorn <dragorn@8d8ab74c-27aa-4a3d-9bde-523a2bc1f624> | 2009-11-21 21:20:06 +0000 |
commit | be7ad82766648202f69afea3f59b672319124dcc (patch) | |
tree | 90bdce6ee2b60da7b4c5f730bce6a9f6946d181a /kismet-dect-v2/Makefile | |
parent | 1ba9f43abdd30edc90976476a6d47ff3f2afff30 (diff) |
v2 of Kismet plugin, initial commit (semi-working state)
git-svn-id: https://dedected.org/svn/trunk@90 8d8ab74c-27aa-4a3d-9bde-523a2bc1f624
Diffstat (limited to 'kismet-dect-v2/Makefile')
-rw-r--r-- | kismet-dect-v2/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/kismet-dect-v2/Makefile b/kismet-dect-v2/Makefile new file mode 100644 index 0000000..6afe87b --- /dev/null +++ b/kismet-dect-v2/Makefile @@ -0,0 +1,41 @@ +# You will need kismet newcore sources +KIS_SRC_DIR ?= /usr/src/kismet +KIS_INC_DIR ?= $(KIS_SRC_DIR) + +include $(KIS_SRC_DIR)/Makefile.inc + +BLDHOME = . +top_builddir = $(BLDHOME) + +PLUGINLDFLAGS ?= $(LDFLAGS) +PLUGINLDFLAGS += -shared -rdynamic +LIBS += -lstdc++ +CFLAGS += -I/usr/include -I$(KIS_INC_DIR) -g -fPIC + +SRVOBJS = packetsource_dect.o tracker_dect.o kismet_dect.o +SRVOUT = dedected.so + +all: $(SRVOUT) + +$(SRVOUT): $(SRVOBJS) + $(LD) $(PLUGINLDFLAGS) $(SRVOBJS) -o $(SRVOUT) $(LIBS) + +install: $(SRVOUT) + mkdir -p $(DESTDIR)$(prefix)/lib/kismet/ + install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(SRVOUT) $(DESTDIR)$(prefix)/lib/kismet/$(SRVOUT) + +userinstall: $(SRVOUT) + mkdir -p ${HOME}/.kismet/plugins/ + install -v $(SRVOUT) ${HOME}/.kismet/plugins/$(SRVOUT) + +clean: + @-rm -f *.o + @-rm -f *.so + +.c.o: + $(CC) $(CFLAGS) -c $*.c -o $@ + +.cc.o: + $(CXX) $(CFLAGS) -c $*.cc -o $@ + +.SUFFIXES: .c .cc .o |