# make rules
include ../../build/cyborn.mk

# list all of the object files that should be put in the library
# The lib1funcs.o completes the compiler for certain mathfunctions.
OBJFILES =  adc.o \
            bitmask.o\
            keyboard.o \
            rs232.o \
            raw2ascii.o \
            graphics.o \
            keypad.o \
            leds.o \
            sound.o \
            display.o \
            vibe.o \
            wrapper1.o \
            wrapper2.o \
            rtc.o \
            timer.o \
            pwm.o \
            lib1funcs.o \
            cyConsole.o\

            #dataflash.o \


#default target
#make and copy the library to the library directory
libcyborn.a: $(OBJFILES) Makefile
	$(TOOLPATH)ar.exe -rcs $@ $(OBJFILES)
	cp $@ $(LIBPATH)


clean:
	rm $(OBJFILES) libcyborn.a

