mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
fa37e32ed9
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
14 lines
297 B
Makefile
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)/$@
|