summaryrefslogtreecommitdiff
path: root/utils/hwstub/tools/Makefile
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-06-12 19:46:04 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-06-12 19:46:04 +0200
commit11da9d23fe323ce452fcd04a10a0ddf78eaa63ea (patch)
tree7ab4d162b2a944214bb01d498d5a0400dec031a0 /utils/hwstub/tools/Makefile
parent3f4eeb850e91fd026a99f2b17bd7e0837f112bb5 (diff)
downloadrockbox-11da9d23fe323ce452fcd04a10a0ddf78eaa63ea.tar.gz
rockbox-11da9d23fe323ce452fcd04a10a0ddf78eaa63ea.zip
imxtools: move hwemul to its own directory
The hwemul is only partly imx specific: the stub is stmp specific but could be ported to other targets, the computer side and the protocol are mostly stmp independent (or should be). Change-Id: If88febffe591b0de86ea11cb740455ba20ddc401
Diffstat (limited to 'utils/hwstub/tools/Makefile')
-rw-r--r--utils/hwstub/tools/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/utils/hwstub/tools/Makefile b/utils/hwstub/tools/Makefile
new file mode 100644
index 0000000000..3466a4e776
--- /dev/null
+++ b/utils/hwstub/tools/Makefile
@@ -0,0 +1,22 @@
1CC=gcc
2AR=ar
3HWEMUL_LIB_DIR=../lib
4CFLAGS=-W -Wall -O2 `pkg-config --cflags libusb-1.0` -std=c99 -g -I$(HWEMUL_LIB_DIR)
5LDFLAGS=`pkg-config --libs libusb-1.0` -lreadline
6EXEC=hwemul_tool
7HWEMUL_LIB=$(HWEMUL_LIB_DIR)/libhwemul.a
8SRC=$(wildcard *.c)
9OBJ=$(SRC:.c=.o)
10
11all: $(EXEC)
12
13%.o: %.c
14 $(CC) $(CFLAGS) -c -o $@ $<
15
16hwemul_tool: hwemul_tool.o $(HWEMUL_LIB)
17 $(CC) -o $@ $^ $(LDFLAGS)
18
19clean:
20 rm -rf $(OBJ) $(LIB)
21
22