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