Try to fix modules not getting rebuilt

This commit is contained in:
Kevin Lange 2017-01-06 19:54:00 +09:00
parent 217b7182a6
commit 91e5d56841

View File

@ -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)"