aboutsummaryrefslogtreecommitdiff
path: root/i686/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'i686/Makefile')
-rw-r--r--i686/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/i686/Makefile b/i686/Makefile
new file mode 100644
index 0000000..52295a8
--- /dev/null
+++ b/i686/Makefile
@@ -0,0 +1,17 @@
+include ../${ARCH}/toolchain.mk
+include ../rules.mk
+
+CCFLAGS += -I../grub/include
+
+all: arch.a
+
+arch,SRCS = boot.S init.s \
+ gdt.c lgdt.c \
+ lidt.c
+arch,OBJS = $(filter %.o,$(arch,SRCS:%.S=%.o) $(arch,SRCS:%.s=%.o) $(arch,SRCS:%.c=%.o))
+arch.a: ${arch,OBJS}
+ @echo ' AR $@'
+ @${AR} ${ARFLAGS} $@ $^
+
+clean:
+ @rm -rf ${arch,OBJS}