Skip to content

Update README.md

Update README.md #163

Workflow file for this run

NAME := blackscholes

Check failure on line 1 in .github/workflows/c-cpp.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/c-cpp.yml

Invalid workflow file

You have an error in your yaml syntax on line 1
# Specify the C++ compiler
CXX = g++
# Compiler flags
CXXFLAGS = -std=c++20 -Wconversion -Wall -Werror -Wextra -pedantic -g -I/opt/homebrew/opt/curl/include
# Linker flags and libraries
LDFLAGS = -L/opt/homebrew/opt/curl/lib
LIBS = -lcurl
# Define the source files used in the project
SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)
# Specify the target executable
EXE = bs
# Default rule to build the executable
$(EXE): $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
# Rule to compile C++ source files into object files
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
# Clean rule to remove object files and the executable
clean:
rm -f $(OBJS) $(EXE)