mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
77e890b15e
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.
21 lines
271 B
Text
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
|