mirror of
https://github.com/arkorty/ExprEvalplusplus.git
synced 2026-03-18 00:57:18 +00:00
Initial commit
This commit is contained in:
18
Makefile
Normal file
18
Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
CXX = clang++
|
||||
CXXFLAGS = -std=c++17 -Wall -Wextra
|
||||
SOURCE = main.cxx
|
||||
EXECUTABLE = ast.out
|
||||
|
||||
# Build target
|
||||
all: $(EXECUTABLE)
|
||||
|
||||
# Rule to build the executable
|
||||
$(EXECUTABLE): $(SOURCE)
|
||||
@$(CXX) $(CXXFLAGS) -o $@ $<
|
||||
|
||||
run: $(EXECUTABLE)
|
||||
@./$(EXECUTABLE)
|
||||
|
||||
# Clean up generated files
|
||||
clean:
|
||||
@rm -f $(EXECUTABLE)
|
||||
Reference in New Issue
Block a user