diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-06-12 19:46:04 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-06-12 19:46:04 +0200 |
commit | 11da9d23fe323ce452fcd04a10a0ddf78eaa63ea (patch) | |
tree | 7ab4d162b2a944214bb01d498d5a0400dec031a0 /utils/hwstub/tools/Makefile | |
parent | 3f4eeb850e91fd026a99f2b17bd7e0837f112bb5 (diff) | |
download | rockbox-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/Makefile | 22 |
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 @@ | |||
1 | CC=gcc | ||
2 | AR=ar | ||
3 | HWEMUL_LIB_DIR=../lib | ||
4 | CFLAGS=-W -Wall -O2 `pkg-config --cflags libusb-1.0` -std=c99 -g -I$(HWEMUL_LIB_DIR) | ||
5 | LDFLAGS=`pkg-config --libs libusb-1.0` -lreadline | ||
6 | EXEC=hwemul_tool | ||
7 | HWEMUL_LIB=$(HWEMUL_LIB_DIR)/libhwemul.a | ||
8 | SRC=$(wildcard *.c) | ||
9 | OBJ=$(SRC:.c=.o) | ||
10 | |||
11 | all: $(EXEC) | ||
12 | |||
13 | %.o: %.c | ||
14 | $(CC) $(CFLAGS) -c -o $@ $< | ||
15 | |||
16 | hwemul_tool: hwemul_tool.o $(HWEMUL_LIB) | ||
17 | $(CC) -o $@ $^ $(LDFLAGS) | ||
18 | |||
19 | clean: | ||
20 | rm -rf $(OBJ) $(LIB) | ||
21 | |||
22 | |||