CC=arm-linux-gnueabi-gcc all: bin bin/kblightd clean: rm -rf bin bin: mkdir bin bin/kblightd: src/main.c ${CC} -static $^ -o $@ run_prep: adb root run: all run_prep make kill adb push bin/kblightd /sbin/ adb shell "nohup /sbin/kblightd > /dev/null &" & debug: all run_prep make kill adb push bin/kblightd /sbin/ adb shell "/sbin/kblightd" kill: all adb shell -x pkill kblightd