mdns: supported on Android
[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 SUPPORTED = 0
15 ifeq ($(OS),linux)
16 SUPPORTED = 1
17 endif
18 ifeq ($(OS),android)
19 SUPPORTED = 1
20 endif
21
22
23 ifeq ($(SUPPORTED),0)
24
25 .PHONY: all default_target install clean
26
27 all: default_target
28
29 default_target install clean:
30         @echo "*** $(PLUGIN_NAME) plugin not supported on $(OS), sorry!"
31
32 else
33
34 default_target: $(PLUGIN_FULLNAME)
35
36 $(PLUGIN_FULLNAME): $(OBJS) version-script.txt
37 ifeq ($(VERBOSE),0)
38                 @echo "[LD] $@"
39 endif
40                 $(MAKECMDPREFIX)$(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS)
41
42 install:        $(PLUGIN_FULLNAME)
43                 $(STRIP) $(PLUGIN_FULLNAME)
44                 $(INSTALL_LIB)
45
46 uninstall:
47                 $(UNINSTALL_LIB)
48
49 clean:
50                 rm -f $(OBJS) $(SRCS:%.c=%.d) $(PLUGIN_FULLNAME)
51
52 endif