mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Base: Port cpp-basic template application to LibMain :^)
This commit is contained in:
parent
d8cccf85de
commit
e354f5986f
Notes:
sideshowbarker
2024-07-17 23:16:18 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e354f5986f3
2 changed files with 4 additions and 2 deletions
|
@ -8,7 +8,7 @@ CXXFLAGS = -g -std=c++2a
|
|||
all: \$(PROGRAM)
|
||||
|
||||
\$(PROGRAM): \$(OBJS)
|
||||
\$(CXX) -o \$@ \$(OBJS)
|
||||
\$(CXX) -o \$@ \$(OBJS) -lmain
|
||||
|
||||
%.o: %.cpp
|
||||
\$(CXX) \$(CXXFLAGS) -o \$@ -c \$<
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#include <AK/Format.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibMain/Main.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
ErrorOr<int> serenity_main(Main::Arguments)
|
||||
{
|
||||
outln("Hello friends!");
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue