LINUX_INCLUDE=/path/to/kernel/include/dir
all: ci-capture.c
	@if [ ! -d ${LINUX_INCLUDE} ]; then \
		echo ;\
		echo ;\
		echo "	Please specify your LINUX_INCLUDE dir in Makefile"; \
		echo "	Make it point to linux kernel include dir " ;	\
		echo ;\
		echo ;\
		exit 1;		\
	 fi
	arm-linux-gcc -Wall -O3 -mcpu=xscale -fomit-frame-pointer -I${LINUX_INCLUDE} ci-capture.c -o ci-capture
clean:
	rm -f ci-capture
