aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2010-09-21 18:28:06 +0100
committerPeter Maydell <peter.maydell@linaro.org>2010-09-21 18:28:06 +0100
commitf04091f94ae763af04876479c10bbc837efc6364 (patch)
tree78fdadecf18516e7c19e06d5304b7e2c659c70da /Makefile
parent204034940bb344061e261ea9688c5627afab1f70 (diff)
Implement image loading and enough of x86 to work with a simple static test image.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0dc8871..b7319e1 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,11 @@ ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
PROG=risu
SRCS=risu.c comms.c risu_$(ARCH).c
HDRS=risu.h
+BINS=test_i386.bin
+
OBJS=$(SRCS:.c=.o)
+all: $(PROG) $(BINS)
$(PROG): $(OBJS)
$(CC) -g -Wall -Werror -o $@ $^
@@ -13,5 +16,8 @@ $(PROG): $(OBJS)
%.o: %.c $(HDRS)
$(CC) -g -Wall -Werror -o $@ -c $<
+%.bin: %.s
+ nasm -f bin -o $@ $<
+
clean:
- rm -f $(PROG) $(OBJS)
+ rm -f $(PROG) $(OBJS) $(BINS)