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/lib/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/lib/Makefile')
-rw-r--r-- | utils/hwstub/lib/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/utils/hwstub/lib/Makefile b/utils/hwstub/lib/Makefile new file mode 100644 index 0000000000..7280fe8e38 --- /dev/null +++ b/utils/hwstub/lib/Makefile | |||
@@ -0,0 +1,27 @@ | |||
1 | CC=gcc | ||
2 | AR=ar | ||
3 | CFLAGS=-W -Wall -O2 `pkg-config --cflags libusb-1.0` -std=c99 -g -fPIC | ||
4 | LDFLAGS=`pkg-config --libs libusb-1.0` -fPIC | ||
5 | LIB=libhwemul.a | ||
6 | REGTOOLS=../../regtools | ||
7 | DESC=$(REGTOOLS)/desc | ||
8 | HWEMULGEN=$(REGTOOLS)/hwemulgen | ||
9 | HWEMULSOC_PREFIX=hwemul_soc | ||
10 | SRC=$(wildcard *.c) $(HWEMULSOC_PREFIX).c | ||
11 | OBJ=$(SRC:.c=.o) | ||
12 | |||
13 | all: $(LIB) $(EXEC) | ||
14 | |||
15 | $(HWEMULSOC_PREFIX).c $(HWEMULSOC_PREFIX).h: | ||
16 | $(HWEMULGEN) $(DESC)/*.xml $(HWEMULSOC_PREFIX) | ||
17 | |||
18 | %.o: %.c $(HWEMULSOC_PREFIX).h | ||
19 | $(CC) $(CFLAGS) -c -o $@ $< | ||
20 | |||
21 | $(LIB): $(OBJ) | ||
22 | $(AR) rcs $@ $^ | ||
23 | |||
24 | clean: | ||
25 | rm -rf $(OBJ) $(LIB) $(HWEMULSOC_PREFIX).c $(HWEMULSOC_PREFIX).h | ||
26 | |||
27 | |||