diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2010-09-21 18:28:06 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2010-09-21 18:28:06 +0100 |
commit | f04091f94ae763af04876479c10bbc837efc6364 (patch) | |
tree | 78fdadecf18516e7c19e06d5304b7e2c659c70da /Makefile | |
parent | 204034940bb344061e261ea9688c5627afab1f70 (diff) |
Implement image loading and enough of x86 to work with a simple static test image.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |