mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
21 lines
268 B
Bash
21 lines
268 B
Bash
#!/bin/sh
|
|
|
|
echo > $2/Makefile <<-EOF
|
|
PROGRAM = $1
|
|
OBJS = main.o
|
|
CXXFLAGS = -g -std=c++2a
|
|
|
|
all: \$(PROGRAM)
|
|
|
|
\$(PROGRAM): \$(OBJS)
|
|
\$(CXX) -o \$@ \$(OBJS) -lmain
|
|
|
|
%.o: %.cpp
|
|
\$(CXX) \$(CXXFLAGS) -o \$@ -c \$<
|
|
|
|
clean:
|
|
rm \$(OBJS) \$(PROGRAM)
|
|
|
|
run:
|
|
./\$(PROGRAM)
|
|
EOF
|