Makefile: only search for files in KDIRS
This commit is contained in:
parent
4a00007e32
commit
39bb50a992
1 changed files with 4 additions and 2 deletions
6
Makefile
6
Makefile
|
|
@ -56,9 +56,11 @@ ifeq ($(shell $(LD) --help 2>&1 | grep 'no-pie' >/dev/null 2>&1; echo $$?),0)
|
|||
override LDFLAGS += -no-pie
|
||||
endif
|
||||
|
||||
KDIRS := dev/ fs/ lib/ mem/ sched/ init/
|
||||
|
||||
# Use find to glob all *.c, *.S, and *.asm files in the directory and extract the object names.
|
||||
override CFILES := $(shell find . -type f -name '*.c')
|
||||
override ASFILES := $(shell find . -type f -name '*.S')
|
||||
override CFILES := $(shell find $(KDIRS) -type f -name '*.c')
|
||||
override ASFILES := $(shell find $(KDIRS) -type f -name '*.S')
|
||||
override OBJ := $(CFILES:.c=.o) $(ASFILES:.S=.o)
|
||||
override HEADER_DEPS := $(CFILES:.c=.d) $(ASFILES:.S=.d)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue