Skip to content

Commit

Permalink
Move some of the challenging ones in (and nim which was crazy easy - …
Browse files Browse the repository at this point in the history
…go nim)
  • Loading branch information
CalebBell committed Dec 6, 2024
1 parent 1f8e151 commit 67e9be6
Show file tree
Hide file tree
Showing 16 changed files with 2,037 additions and 102 deletions.
15 changes: 15 additions & 0 deletions dev/C/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CC=gcc
PYTHON_VERSION=$(shell python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
PYTHON_INCLUDES=$(shell python3-config --includes)
PYTHON_LDFLAGS=$(shell python3-config --ldflags)
PYTHON_LIBS=$(shell python3-config --libs)

# Add -lpython3.11 explicitly and move LDFLAGS to end of command
CFLAGS=-Wall -O3 $(PYTHON_INCLUDES)
LDFLAGS=$(PYTHON_LDFLAGS) $(PYTHON_LIBS) -lpython$(PYTHON_VERSION)

fluids_test: fluids_test.c
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)

clean:
rm -f fluids_test
Loading

0 comments on commit 67e9be6

Please sign in to comment.