Initial commit

This commit is contained in:
Matheus
2022-07-21 22:50:12 -03:00
commit b44469a3e1
55 changed files with 4661 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
objects := $(patsubst %.c,%.o,$(wildcard *.c))
subdirs=boot
OBJPATH=$(OBJDIR)/arch/${TARGET}/
export
all: $(objects) $(subdirs)
for subdir in $(subdirs) ; do $(MAKE) -C $${subdir} ; done
%.o: %.c
$(CC) $(CFLAGS) -o $@ $<
mkdir -p $(OBJPATH)
cp $@ $(OBJPATH)/$@