aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2010-09-20 18:41:19 +0100
committerPeter Maydell <peter.maydell@linaro.org>2010-09-20 18:46:37 +0100
commit452057e1b7fc91bfa3ee06e5a71c3d13d2711b6b (patch)
tree00e3b1212be8cda04d39bd7b4802d5d6c60cfef2 /Makefile
parent403892c49503b5939689dc7793ca413bbdd4ba37 (diff)
Add the initial structure of SIGILL handling and CPU-specific interface.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index aec5703..e99404a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,17 @@
# trivial makefile for now
+ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+
PROG=risu
-SRCS=risu.c
+SRCS=risu.c risu_$(ARCH).c
+HDRS=risu.h
OBJS=$(SRCS:.c=.o)
-$(PROG): $(SRCS)
+
+$(PROG): $(OBJS)
$(CC) -g -Wall -Werror -o $@ $^
+%.o: %.c $(HDRS)
+ $(CC) -g -Wall -Werror -o $@ -c $<
+
clean:
rm -f $(PROG) $(OBJS)