diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-10-29 11:26:44 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-10-29 11:26:44 +0300 |
commit | c4fcc92183c55db868d0d6ae53e6009fb2e53ee5 (patch) | |
tree | ad5ef50aa07465e11f779c4482e20e6071182e9c /i686/Makefile | |
parent | makefile: add libk target (diff) | |
download | kernel-c4fcc92183c55db868d0d6ae53e6009fb2e53ee5.tar.xz |
makefile: add i686/arch.a target
Diffstat (limited to 'i686/Makefile')
-rw-r--r-- | i686/Makefile | 17 |
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} |