lib/obamp/Makefile
author Saverio Proto <zioproto@gmail.com>
Mon Aug 31 16:17:05 2009 +0200 (2 years ago)
changeset 2447 8e7887c1247f
permissions -rw-r--r--
Adding the first implementation of the OBAMP plugin. See README file for documentation.
     1 
     2 OLSRD_PLUGIN =	true
     3 PLUGIN_NAME =	olsrd_obamp
     4 PLUGIN_VER =	1.0.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 "*** OBAMP 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