fix: makefile : use find instead of wildcard

to access to sub sub folder
This commit is contained in:
starnakin 2024-09-07 14:17:21 +02:00
parent 60baa3ec46
commit 4e1fd187bc

View File

@ -12,8 +12,8 @@ LD := $(CC)
LDFLAGS := -T boot/linker.ld -ffreestanding -O2 -nostdlib LDFLAGS := -T boot/linker.ld -ffreestanding -O2 -nostdlib
LIBS := ./libbozo/build/libbozo.a -lgcc LIBS := ./libbozo/build/libbozo.a -lgcc
SSRC := $(wildcard $(SOURCEDIR)/*.s) SSRC := $(shell find $(SOURCEDIR) -name '*.s')
CSRC := $(wildcard $(SOURCEDIR)/*.c) CSRC := $(shell find $(SOURCEDIR) -name '*.c')
OBJ := $(patsubst $(SOURCEDIR)/%.c,$(OBJECTDIR)/%.o,$(CSRC))\ OBJ := $(patsubst $(SOURCEDIR)/%.c,$(OBJECTDIR)/%.o,$(CSRC))\
$(patsubst $(SOURCEDIR)/%.s,$(OBJECTDIR)/%.o,$(SSRC)) $(patsubst $(SOURCEDIR)/%.s,$(OBJECTDIR)/%.o,$(SSRC))