blob: a084ca61558158b9d2ed0d2cf3a28787bbbfd369 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
include $(CONFIG)
CDIRS := stdio ctype string stdlib
CFILES += $(foreach dir,$(CDIRS),$(wildcard $(dir)/*.c))
OFILES := $(patsubst %.c,%.o,$(CFILES))
CFLAGS := -ffreestanding -nostdlib
all: ${OFILES}
ar rcs $(OUT)/libc-jove.a $(OFILES)
%.o:%.c
$(CC) $(CFLAGS) -c $< -o $@
|