diff options
| author | copilot-swe-agent[bot] | 2026-02-20 06:45:16 +0000 |
|---|---|---|
| committer | copilot-swe-agent[bot] | 2026-02-20 06:45:16 +0000 |
| commit | 2fdfd54b552e2a02ad80737a0f009786e358e043 (patch) | |
| tree | 0e4baab299235526463b53d5c4a85b493d730d82 /source/Makefile | |
| parent | ae90879a8724c45bf1cd5358582a9c5cb948564c (diff) | |
| download | librandom-2fdfd54b552e2a02ad80737a0f009786e358e043.tar.xz librandom-2fdfd54b552e2a02ad80737a0f009786e358e043.tar.zst | |
Convert PhotonSpinRandom.cs to C with @BAKE support and donut ASCII art
Co-authored-by: 8e8m <248551607+8e8m@users.noreply.github.com>
Diffstat (limited to 'source/Makefile')
| -rw-r--r-- | source/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source/Makefile b/source/Makefile new file mode 100644 index 0000000..5888d63 --- /dev/null +++ b/source/Makefile @@ -0,0 +1,22 @@ +# Makefile for PhotonSpinRandom C implementation + +CC = cc +CFLAGS = -O2 -Wall -Wextra -std=c99 +LDFLAGS = -lm + +TARGET = photon_spin_random +SRC = photon_spin_random.c +HEADER = photon_spin_random.h + +.PHONY: all clean test + +all: $(TARGET) + +$(TARGET): $(SRC) $(HEADER) + $(CC) $(CFLAGS) -DPHOTON_SPIN_TEST_MAIN -o $(TARGET) $(SRC) $(LDFLAGS) + +test: $(TARGET) + ./$(TARGET) + +clean: + rm -f $(TARGET) |
