From 11da9d23fe323ce452fcd04a10a0ddf78eaa63ea Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 12 Jun 2013 19:46:04 +0200 Subject: 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 --- utils/hwstub/lib/Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 utils/hwstub/lib/Makefile (limited to 'utils/hwstub/lib/Makefile') 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 @@ +CC=gcc +AR=ar +CFLAGS=-W -Wall -O2 `pkg-config --cflags libusb-1.0` -std=c99 -g -fPIC +LDFLAGS=`pkg-config --libs libusb-1.0` -fPIC +LIB=libhwemul.a +REGTOOLS=../../regtools +DESC=$(REGTOOLS)/desc +HWEMULGEN=$(REGTOOLS)/hwemulgen +HWEMULSOC_PREFIX=hwemul_soc +SRC=$(wildcard *.c) $(HWEMULSOC_PREFIX).c +OBJ=$(SRC:.c=.o) + +all: $(LIB) $(EXEC) + +$(HWEMULSOC_PREFIX).c $(HWEMULSOC_PREFIX).h: + $(HWEMULGEN) $(DESC)/*.xml $(HWEMULSOC_PREFIX) + +%.o: %.c $(HWEMULSOC_PREFIX).h + $(CC) $(CFLAGS) -c -o $@ $< + +$(LIB): $(OBJ) + $(AR) rcs $@ $^ + +clean: + rm -rf $(OBJ) $(LIB) $(HWEMULSOC_PREFIX).c $(HWEMULSOC_PREFIX).h + + -- cgit v1.2.3