From bf831106f5edaa383f441cacabb1c8fe081c851f Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 23 Oct 2011 14:20:00 +0000 Subject: [PATCH] imx_hid_recovery: rewrite Makefile git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30830 a1c6a512-1295-4272-9138-f99709370657 --- utils/imx_hid_recovery/Makefile | 12 +++++++++--- 1 file 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