ladybird/Base/res/devel/templates/cpp-basic.postcreate
Andrew Kaster 77e890b15e Meta+Documentation+Ports: Move from C++20 to C++23
Now that oss-fuzz is on a clang commit > the 17.x release candidates,
we can start looking at some shiny new features to enable.
2024-05-06 11:46:28 -06:00

21 lines
271 B
Text

#!/bin/Shell
echo > $2/Makefile <<-EOF
PROGRAM = $1
OBJS = main.o
CXXFLAGS = -g -std=c++23
all: \$(PROGRAM)
\$(PROGRAM): \$(OBJS)
\$(CXX) -o \$@ \$(OBJS) -lmain
%.o: %.cpp
\$(CXX) \$(CXXFLAGS) -o \$@ -c \$<
clean:
rm \$(OBJS) \$(PROGRAM)
run:
./\$(PROGRAM)
EOF