fix: makefile : use find instead of wildcard

to access to sub sub folder
This commit is contained in:
starnakin 2024-09-07 14:17:08 +02:00
parent 5b23c60bf2
commit 41586c36e4

View File

@ -2,7 +2,7 @@ SRCDIR = src
OBJDIR = obj OBJDIR = obj
BUILDDIR = build BUILDDIR = build
SRC := $(wildcard $(SRCDIR)/**/*.c) SRC := $(shell find $(SRCDIR) -name '*.c')
OBJ := $(patsubst $(SRCDIR)/%.c,$(OBJDIR)/%.o,$(SRC)) OBJ := $(patsubst $(SRCDIR)/%.c,$(OBJDIR)/%.o,$(SRC))
CC = i386-elf-gcc CC = i386-elf-gcc