commit d19984b1ef934baaaeba30a1180cd249117186ea parent 74895fafd5d293bc6073923ffa8d8f1441305a48 Author: Yersa Nordman <finwo@pm.me> Date: Fri, 22 May 2020 00:21:04 +0200 Allow custom source and headers for each target Diffstat:
| M | Makefile | | | 4 | ++-- |
| A | arch/wasm32/include/.gitkeep | | | 0 | |
| R | arch/wasm32/malloc/malloc.c -> arch/wasm32/src/malloc/malloc.c | | | 0 |
3 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -2,7 +2,7 @@ TARGET ?= wasm32 include arch/$(TARGET)/config.mk -SRC=$(shell find -L arch/$(TARGET) -type f -name *.c) +SRC=$(shell find -L arch/$(TARGET)/src -type f -name *.c) SRC+=$(shell find -L src -type f -name *.c) OBJ=$(SRC:.c=.o) @@ -10,7 +10,7 @@ libmatter.a: $(OBJ) $(AR) -cvq libmatter.a $(OBJ) %.o: %.c - $(LLE) -Os -S $(CFLAGS) -nostdinc -fno-builtin -Iinclude -c $< -o $(@:.o=.ll) + $(LLE) -Os -S $(CFLAGS) -nostdinc -fno-builtin -Iinclude -Iarch/$(TARGET)/include -c $< -o $(@:.o=.ll) $(LLC) -filetype=obj -O3 $(@:.o=.ll) .PHONY: clean diff --git a/arch/wasm32/include/.gitkeep b/arch/wasm32/include/.gitkeep diff --git a/arch/wasm32/malloc/malloc.c b/arch/wasm32/src/malloc/malloc.c