Update blackScholesModel.cpp #201
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME := blackscholes | ||
# 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) |