]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/c/blip/driver/Makefile
commit svn HEAD of blip into core to start merge testing
[tinyos-2.x.git] / support / sdk / c / blip / driver / Makefile
index 1b0e3cafb084a8b66f1d633c3349c0d965483697..b72b6bbf4604c0b9287cfb11dd6b79fb600840ab 100644 (file)
@@ -1,15 +1,15 @@
 
 SOURCES=serial_tun.c tun_dev.c hashtable.c routing.c nwstate.c \
-       logging.c config.c radvd-wrapper.c
+       logging.c config.c radvd-wrapper.c vty/util.c vty/vty.c \
+       netlink.c mcast.c
 
-RADVD=./radvd-1.0
-COMMON_SRC = $(RADVD)/log.c $(RADVD)/socket.c $(RADVD)/recv.c $(RADVD)/util.c $(RADVD)/radvd.h \
-       $(RADVD)/defaults.h $(RADVD)/pathnames.h \
-        $(RADVD)/includes.h
-radvd_SOURCES = $(COMMON_SRC) $(RADVD)/timer.c $(RADVD)/send.c $(RADVD)/process.c $(RADVD)/interface.c \
-        $(RADVD)/device.c $(RADVD)/device-common.c $(RADVD)/gram.h 
+COMMON_SRC = radvd/log.c radvd/socket.c radvd/recv.c radvd/util.c radvd/radvd.h \
+       radvd/defaults.h radvd/pathnames.h \
+        radvd/includes.h
+radvd_SOURCES = $(COMMON_SRC) radvd/timer.c radvd/send.c radvd/process.c radvd/interface.c \
+        radvd/device.c radvd/device-common.c radvd/gram.h 
 
-LIBS=../lib6lowpan.a ${TOSROOT}/support/sdk/c/sf/libmote.a 
+LIBS=../lib6lowpan.a ${TOSROOT}/support/sdk/c/sf/libmote.a
 TARGET=ip-driver
 INCLUDE=../include/
 
@@ -17,16 +17,28 @@ ifndef GCC
 GCC=gcc
 endif
 
-TFLAGS=-Wall -g -DPC
-TFLAGS+=-I${TOSROOT}/support/sdk/c/sf -I$(INCLUDE) -I$(RADVD)/
+TFLAGS=-Wall -DPC -D_GNU_SOURCE  -g
+TFLAGS+=-I${TOSROOT}/support/sdk/c/sf -I$(INCLUDE) -Iradvd/ -Ivty/
 
+# CFLAGS+= -DCENTRALIZED_ROUTING
+# CFLAGS+=-DFULL_PATH_INSTALL
 
 ifneq ($(filter sim-null,$(MAKECMDGOALS)),)
   TFLAGS+=-DSIM
 endif
 
-# CFLAGS+=-DFULL_PATH_INSTALL
+ifneq ($(filter lpl,$(MAKECMDGOALS)),)
+       TFLAGS+=-DBLIP_L2_RETRIES=1
+endif
+
+ifneq ($(filter sf,$(MAKECMDGOALS)),)
+       TFLAGS+=-DSF_SRC
+endif
+
+sf: all
+lpl: all
 all: $(TARGET)
+       ln -sf `pwd`/$(TARGET) ..
 
 sim: lib
        make $(TARGET) sim-null
@@ -38,5 +50,5 @@ $(TARGET): $(SOURCES) $(LIBS)
        $(GCC) $(TFLAGS) $(CFLAGS) -o $(TARGET) $(SOURCES) $(radvd_SOURCES) $(LIBS) -lm
 
 clean:
-       rm $(TARGET)
+       rm -f $(TARGET)