Files
Astral/src/Makefile
T
Matheus fa37e32ed9 build: use jinx in the build system
now uses jinx to build a cross toolchain, mlibc, bash and the kernel. also made scheduler temporarily run /usr/bin/bash instead of /sbin/init
2022-09-15 17:47:05 -03:00

14 lines
297 B
Makefile

objects := $(patsubst %.c,%.o,$(wildcard *.c))
subdirs := arch/$(TARGET)/ include video sys fs
OBJPATH=$(OBJDIR)
CC=$(XCC)
export
all: $(subdirs) $(objects)
for subdir in $(subdirs) ; do $(MAKE) -C $${subdir} ; done
%.o: %.c
$(CC) $(CFLAGS) -o $@ $<
mkdir -p $(OBJPATH)
cp $@ $(OBJPATH)/$@