
PWD=$(shell pwd )

LIBNAME=$(shell basename ${PWD} )
TOPDIR=$(shell dirname ${PWD} )

all: clean
	@rm -f *.o
	@${CROSSTOOL}gcc ${CFLAGS} -I${TOPDIR} -c *.c 
	${CROSSTOOL}ar -rcs  lib${LIBNAME}.a *.o

clean:
	@rm -f *.o
	@rm -f *.a

distclean:
	@make clean
	@rm -f cscope.* tags
