ifndef COMPILING_WHOLE_TREE
TOPDIR=$(shell pwd)/../../../../..
endif

include $(TOPDIR)/Rules.make

PROGS=l2test scotest rctest attest hstest

CFLAGS=-I../include -I../../libs/include -I../../sdp/include\
 -O2 -fPIC -DVERSION=\"1.0\"

ifneq ($(sort $(filter y,$(CONFIG_SAGEM_LB2) $(CONFIG_GENERATION_SAGEM_MINI))),y)
CFLAGS += -mips32
endif

LDFLAGS=-L $(TOPDIR)/libs -lbluetooth -lsdp\

all : $(PROGS)
	$(STRIP) $(PROGS)

clean :
	rm -f l2test scotest rctest attest hstest
