imx_hid_recovery: rewrite Makefile

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30830 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Amaury Pouly 2011-10-23 14:20:00 +00:00
parent e9575bdf2f
commit bf831106f5

View file

@ -1,9 +1,15 @@
CC=gcc
LD=gcc
all: imx_hid_recovery
imx_hid_recovery: imx_hid_recovery.c
gcc -Wall -O2 -std=c99 `pkg-config --libs --cflags libusb-1.0` -o $@ $<
imx_hid_recovery.o: imx_hid_recovery.c
$(CC) -c -Wall -O2 -std=c99 `pkg-config --cflags libusb-1.0` -o $@ $<
imx_hid_recovery: imx_hid_recovery.o
$(LD) -o $@ $< `pkg-config --libs libusb-1.0`
clean:
rm -rf imx_hid_recovery
rm -rf imx_hid_recovery.o