summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-10-23 14:20:00 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-10-23 14:20:00 +0000
commitbf831106f5edaa383f441cacabb1c8fe081c851f (patch)
tree7786f1116c097c1034b26aa14042acb01602d4a8 /utils
parente9575bdf2f72789ee931df0cce07b21e3c76cc6f (diff)
downloadrockbox-bf831106f5edaa383f441cacabb1c8fe081c851f.tar.gz
rockbox-bf831106f5edaa383f441cacabb1c8fe081c851f.tar.bz2
rockbox-bf831106f5edaa383f441cacabb1c8fe081c851f.zip
imx_hid_recovery: rewrite Makefile
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30830 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils')
-rw-r--r--utils/imx_hid_recovery/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/utils/imx_hid_recovery/Makefile b/utils/imx_hid_recovery/Makefile
index 291d5db225..24d0b8e3d3 100644
--- a/utils/imx_hid_recovery/Makefile
+++ b/utils/imx_hid_recovery/Makefile
@@ -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