mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
13 lines
268 B
Makefile
13 lines
268 B
Makefile
objects := $(patsubst %.c,%.o,$(wildcard *.c))
|
|
subdirs := mm sched syscalls
|
|
OBJPATH=$(OBJDIR)
|
|
export
|
|
|
|
all: $(subdirs) $(objects)
|
|
for subdir in $(subdirs) ; do $(MAKE) -C $${subdir} ; done
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -o $@ $<
|
|
mkdir -p $(OBJPATH)
|
|
cp $@ $(OBJPATH)/$@
|