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.zip rockbox-11da9d23fe323ce452fcd04a10a0ddf78eaa63ea.tar.gz rockbox-11da9d23fe323ce452fcd04a10a0ddf78eaa63ea.tar.bz2 rockbox-11da9d23fe323ce452fcd04a10a0ddf78eaa63ea.tar.xz | |
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 0000000..3466a4e --- /dev/null +++ b/utils/hwstub/tools/Makefile @@ -0,0 +1,22 @@ +CC=gcc +AR=ar +HWEMUL_LIB_DIR=../lib +CFLAGS=-W -Wall -O2 `pkg-config --cflags libusb-1.0` -std=c99 -g -I$(HWEMUL_LIB_DIR) +LDFLAGS=`pkg-config --libs libusb-1.0` -lreadline +EXEC=hwemul_tool +HWEMUL_LIB=$(HWEMUL_LIB_DIR)/libhwemul.a +SRC=$(wildcard *.c) +OBJ=$(SRC:.c=.o) + +all: $(EXEC) + +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< + +hwemul_tool: hwemul_tool.o $(HWEMUL_LIB) + $(CC) -o $@ $^ $(LDFLAGS) + +clean: + rm -rf $(OBJ) $(LIB) + + |