ESD outputs are now separate.

This commit is contained in:
Yggdrasil committed 2026-04-07 17:53:26 +02:00
1 parent 82f7abd4ec
commit 28475c31b6
4 files changed
+76 -29

No files matched your search

+26 -6
View File
@@ -1,6 +1,15 @@
# Compiler and flags
# Compiler
FC = gfortran
FFLAGS = -O2
# Build type (default: Release)
BUILD ?= release
# Flags depending on build type
ifeq ($(BUILD),debug)
FFLAGS = -g -O0
else
FFLAGS = -O2
endif
# Output folder
OUT = bin
@@ -11,13 +20,24 @@ TARGET = event2
# Source files
SRCS = event2_03.f gbook.f
# Executable path
EXE = $(OUT)/$(TARGET)
# Default rule
all: $(TARGET)
all: $(EXE)
# Build rule
$(TARGET): $(SRCS)
$(FC) $(FFLAGS) -o $(OUT)/$(TARGET) $(SRCS)
$(EXE): $(SRCS)
mkdir -p $(OUT)
$(FC) $(FFLAGS) -o $(EXE) $(SRCS)
# Convenience targets
debug:
$(MAKE) BUILD=debug
release:
$(MAKE) BUILD=release
# Clean rule
clean:
rm -f $(TARGET) *.o
rm -rf $(OUT)