blob: cc5f3476a8c45946b9d1c5a59c3a5ee58f6c692d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
include $(CONFIG)
CDIRS := syscall object arch/$(TARGET_MACHINE)
CFILES := $(wildcard *.c)
CFILES += $(foreach dir,$(CDIRS),$(wildcard $(dir)/*.c))
OFILES := $(patsubst %.c,%.o,$(CFILES))
CFLAGS := -ffreestanding -nostdlib -Iinclude -g
all: ${OFILES}
ar rcs $(OUT)/libjove.a $(OFILES)
clean:
-rm $(OFILES)
%.o:%.c
$(CC) $(CFLAGS) -c $< -o $@
|