25 lines
534 B
Makefile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

libc_arch_objs:= $(shell find ./*.c)
ECHO:
@echo "$@"
$(libc_arch_objs): ECHO
$(CC) $(CFLAGS) -c $@ -o $@.o
# 由于目前使用的是raw的gcc所以不需要crti.o和crtn.o待更换为x86_64-dragonos-gcc后再改这里
# all: $(libc_arch_objs) crti.o crtn.o
all: $(libc_arch_objs)
mv crt0.c.o crt0.o
# crti.o: crti.S
# $(CC) -E crti.S > _crti.s # 预处理
# $(AS) $(ASFLAGS) -o crti.o _crti.s
# crtn.o: crtn.S
# $(CC) -E crtn.S > _crtn.s # 预处理
# $(AS) $(ASFLAGS) -o crtn.o _crtn.s
clean:
echo "Done."