The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# 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)/*