# test/Makefile
topdir:=..
include $(topdir)/config.mk
CFLAGS:=$(CFLAGS) #-static
LIBS:=$(LIBS) -L$(LIBDIR) -lcwiimote -lbluetooth -lm
all: test1 test2 test3 test4
test%: test%.c $(LIBDIR)/libcwiimote.a
$(CC) $(CFLAGS) $(INCLUDES) -o $(BINDIR)/$@ $< $(LIBS)
clean:
@rm -f *.o *~ $(BINDIR)/*