From 4e1fd187bc3bb514b14b31d192b1aec8d634f7f3 Mon Sep 17 00:00:00 2001 From: starnakin Date: Sat, 7 Sep 2024 14:17:21 +0200 Subject: [PATCH] fix: makefile : use find instead of wildcard to access to sub sub folder --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5485d44..8351dfd 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,8 @@ LD := $(CC) LDFLAGS := -T boot/linker.ld -ffreestanding -O2 -nostdlib LIBS := ./libbozo/build/libbozo.a -lgcc -SSRC := $(wildcard $(SOURCEDIR)/*.s) -CSRC := $(wildcard $(SOURCEDIR)/*.c) +SSRC := $(shell find $(SOURCEDIR) -name '*.s') +CSRC := $(shell find $(SOURCEDIR) -name '*.c') OBJ := $(patsubst $(SOURCEDIR)/%.c,$(OBJECTDIR)/%.o,$(CSRC))\ $(patsubst $(SOURCEDIR)/%.s,$(OBJECTDIR)/%.o,$(SSRC))