Add p2dp plugin (generalized mdns), thanks to Teco Boot <teco@inf-net.nl>
[olsrd.git] / lib / p2pd / Makefile
1
2 OLSRD_PLUGIN =  true
3 PLUGIN_NAME =   olsrd_p2pd
4 PLUGIN_VER =    0.1.0
5
6 TOPDIR = ../..
7 include $(TOPDIR)/Makefile.inc
8
9 LIBS += $(OS_LIB_PTHREAD)
10
11 # Must be specified along with -lpthread on linux
12 CPPFLAGS += $(OS_CFLAG_PTHREAD)
13
14 ifneq ($(OS),linux)
15
16 default_target install clean:
17         @echo "*** p2pd Plugin only supported on Linux, sorry!"
18
19 else
20
21 default_target: $(PLUGIN_FULLNAME)
22
23 $(PLUGIN_FULLNAME): $(OBJS) version-script.txt
24                 $(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS)
25
26 install:        $(PLUGIN_FULLNAME)
27                 $(STRIP) $(PLUGIN_FULLNAME)
28                 $(INSTALL_LIB)
29
30 clean:
31                 rm -f $(OBJS) $(SRCS:%.c=%.d) $(PLUGIN_FULLNAME)
32
33 endif