matter.c

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

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

Copied compilation from supercop-js

Diffstat:
M.gitignore | 1+
MMakefile | 5++++-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore @@ -1,2 +1,3 @@ *.o *.a +*.ll diff --git a/Makefile b/Makefile @@ -8,8 +8,11 @@ libmatter.a: $(OBJ) ar -cvq libmatter.a $(OBJ) %.o: %.c - clang -Os $(CFLAGS) --target=$(TARGET) -nostdinc -fno-builtin -Iinclude -c $< -o $@ + clang -Os -S -emit-llvm $(CFLAGS) --target=$(TARGET) -nostdinc -fno-builtin -Iinclude -c $< -o $(@:.o=.ll) + llc -march=$(TARGET) -filetype=obj -O3 $(@:.o=.ll) + .PHONY: clean clean: rm -f $(shell find -L . -type f -name *.o) + rm -f $(shell find -L . -type f -name *.ll)