boilerplate hopefully down

This commit is contained in:
2026-08-03 17:02:20 +10:00
parent 87208566fc
commit b4cb3aa56e
15 changed files with 286 additions and 21 deletions

View File

@@ -2,7 +2,7 @@ SRC=src
OBJ=obj
CC=gcc
CFLAGS=-Wall -Wextra -pedantic -std=c99 -pedantic-errors
CFLAGS=-Wall -Wextra -O3
TARGET=libgravity.so
TEST_TARGET=testapp
@@ -17,7 +17,7 @@ $(OBJ)/%.o: $(SRC)/%.c
$(CC) $(CFLAGS) -c $< -o $@
$(TEST_TARGET): test.c $(TARGET)
$(CC) test.c -lgravity -L. -o $(TEST_TARGET)
$(CC) $(CFLAGS) test.c -lgravity -L. -o $(TEST_TARGET)
test: $(TEST_TARGET)