matter.c

Cross-platform minimalist libc
git clone git://git.finwo.net/lib/matter.c
Log | Files | Refs | README | LICENSE

commit f538c5a66ba7e4b14069defaa21596f1d5268f2f
parent adb6821f7bbab5075746f352cda4000ef67c5f24
Author: Yersa Nordman <finwo@pm.me>
Date:   Sat, 12 Oct 2019 11:24:11 +0200

Target can now be selected

Diffstat:
MMakefile | 7++++---
Asrc/wasm32 | 2++
Asrc/wasm64 | 2++
3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,11 +1,12 @@ -SRC=$(shell find src -type f -name *.c) -OBJ=$(SRC:.c=.o) CC = clang LD = wasm-ld TARGET ?= wasm32 CFLAGS ?= -O3 +SRC=$(shell find -L src/$(TARGET) -type f -name *.c) +OBJ=$(SRC:.c=.o) + libmatter.a: $(OBJ) ar rcs libmatter.a $(OBJ) @@ -14,4 +15,4 @@ libmatter.a: $(OBJ) .PHONY: clean clean: - rm -f $(OBJ) + rm -f $(shell find -L . -type f -name *.o) diff --git a/src/wasm32 b/src/wasm32 @@ -0,0 +1 @@ +wasm +\ No newline at end of file diff --git a/src/wasm64 b/src/wasm64 @@ -0,0 +1 @@ +wasm +\ No newline at end of file