# test/Makefile

topdir:=..
include $(topdir)/config.mk

CFLAGS:=$(CFLAGS) -static
LIBS:=$(LIBS) -L$(LIBDIR) -lcwiimote -lbluetooth -lm

all: test1 test2 test3

test%: test%.c $(LIBDIR)/libcwiimote.a
	$(GCC) $(CFLAGS) $(INCLUDES) -o $(BINDIR)/$@ $< $(LIBS)

clean:
	@rm -f *.o *~ $(BINDIR)/*
