From 91e5d56841d3c94fabe81271867e47df8899972c Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Fri, 6 Jan 2017 19:54:00 +0900 Subject: [PATCH] Try to fix modules not getting rebuilt --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 997394d3..0a49c986 100644 --- a/Makefile +++ b/Makefile @@ -33,9 +33,6 @@ ENDRM = util/mk-end-rm .SUFFIXES: all: $(shell util/detect-make-all.sh) -system: toaruos-disk.img toaruos-kernel modules -userspace: ${USERSPACE} -modules: ${MODULES} toolchain: @cd toolchain; ./toolchain-build.sh @@ -203,6 +200,8 @@ hdd/mod/%.ko: modules/%.c ${HEADERS} | hdd/mod @${KCC} -T modules/link.ld -I./kernel/include -nostdlib ${CFLAGS} -c -o $@ $< ${ERRORS} @${END} "CC" "$< [module]" +modules: ${MODULES} + kernel/%.o: kernel/%.S @${BEG} "AS" "$<" @${KAS} ${ASFLAGS} $< -o $@ ${ERRORS} @@ -213,6 +212,8 @@ kernel/%.o: kernel/%.c ${HEADERS} @${KCC} ${CFLAGS} -nostdlib -g -I./kernel/include -c -o $@ $< ${ERRORS} @${END} "CC" "$<" +system: toaruos-disk.img toaruos-kernel ${MODULES} + ############# # Userspace # ############# @@ -261,6 +262,8 @@ USERSPACE += $(foreach file,$(USER_CSTATICFILES),$(patsubst %.static.c,hdd/bin/% USERSPACE += $(foreach file,$(USER_LIBFILES),$(patsubst %.c,hdd/usr/lib/libtoaru-%.so,$(notdir ${file}))) USERSPACE += $(LIBC) hdd/bin/init hdd/lib/ld.so +userspace: ${USERSPACE} + # Init must be built static at the moment. hdd/bin/init: userspace/core/init.c @${BEG} "CC" "$< (static)"