Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ log/

# Build
build/
levio_rust/target/

# IDE
.vscode/
Expand Down
23 changes: 23 additions & 0 deletions cross_lang_tests/c/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
CC = cc
CFLAGS = -O2 -Wall -Wextra -Werror -Wshadow -Wdouble-promotion -Wformat=2 -std=c11
LDFLAGS = -lm

all: test_numerics test_numerics_bench

test_numerics: test_numerics.c
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)

# Rebuild with -DBENCH to enable the timing section
test_numerics_bench: test_numerics.c
$(CC) $(CFLAGS) -DBENCH -o $@ $< $(LDFLAGS)

run: test_numerics
./test_numerics

bench: test_numerics_bench
./test_numerics_bench --bench

clean:
rm -f test_numerics test_numerics_bench

.PHONY: all run clean
Loading
Loading