diff options
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) |
