d714473279756b9c3f689c646f5faa3bcd6d9e01
[olsrd.git] / lib / mdns / Makefile
1
2 OLSRD_PLUGIN =  true
3 PLUGIN_NAME =   olsrd_mdns
4 PLUGIN_VER =    1.0.1
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 "*** mdns Plugin only supported on Linux, sorry!"
18
19 else
20
21 default_target: $(PLUGIN_FULLNAME)
22
23 $(PLUGIN_FULLNAME): $(OBJS) version-script.txt
24                 @echo "[LD] $@"
25                 @$(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS)
26
27 install:        $(PLUGIN_FULLNAME)
28                 $(STRIP) $(PLUGIN_FULLNAME)
29                 $(INSTALL_LIB)
30
31 uninstall:
32                 $(UNINSTALL_LIB)
33
34 clean:
35                 rm -f $(OBJS) $(SRCS:%.c=%.d) $(PLUGIN_FULLNAME)
36
37 endif