diff --git a/Makefile.example b/Makefile.example index b75cd43f..07014410 100644 --- a/Makefile.example +++ b/Makefile.example @@ -13,7 +13,7 @@ export AR = ar export ARFLAGS = rsv export RM = rm -rf LD = ld -LDFLAGS = -T link.ld -e start +LDFLAGS = -T link.ld SUBDIRS = lib kernel mm arch #lwip diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile index 45a20152..adb3245f 100644 --- a/arch/x86/kernel/Makefile +++ b/arch/x86/kernel/Makefile @@ -1,5 +1,5 @@ C_source = gdt.c idt.c isrs.c irq.c vga.c kb.c timer.c -ASM_source = entry.asm schedule.asm +ASM_source = schedule.asm OBJS += $(patsubst %.c, %.o, $(filter %.c, $(C_source))) OBJS += $(patsubst %.asm, %.o, $(filter %.asm, $(ASM_source))) @@ -14,7 +14,7 @@ OBJS += $(patsubst %.asm, %.o, $(filter %.asm, $(ASM_source))) default: $(MAKE) all -all: $(OBJS) +all: $(OBJS) entry.o $(MAKE) $(LIBNAME) $(LIBNAME): $(OBJS) entry.o