From 2fdfd54b552e2a02ad80737a0f009786e358e043 Mon Sep 17 00:00:00 2001 From: copilot-swe-agent[bot] Date: Fri, 20 Feb 2026 06:45:16 +0000 Subject: Convert PhotonSpinRandom.cs to C with @BAKE support and donut ASCII art Co-authored-by: 8e8m <248551607+8e8m@users.noreply.github.com> --- source/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 source/Makefile (limited to 'source/Makefile') 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) -- cgit v1.2.3