Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
the29ster authored Feb 12, 2024
1 parent e37db7d commit b65dffb
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
main: main.cpp
gcc main.cpp
# Compiler
CXX = g++

# Compiler flags
CXXFLAGS = -std=c++11 -Wall

# Source file
SRC = main.cpp

# Executable name
TARGET = main

# Default target
all: $(TARGET)

$(TARGET): $(SRC)
$(CXX) $(CXXFLAGS) -o $@ $<

# Clean
clean:
rm -f $(TARGET)

0 comments on commit b65dffb

Please sign in to comment.