mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	Base: Port cpp-basic template application to LibMain :^)
This commit is contained in:
		
							parent
							
								
									d8cccf85de
								
							
						
					
					
						commit
						e354f5986f
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -8,7 +8,7 @@ CXXFLAGS = -g -std=c++2a | ||||||
| all: \$(PROGRAM) | all: \$(PROGRAM) | ||||||
| 
 | 
 | ||||||
| \$(PROGRAM): \$(OBJS) | \$(PROGRAM): \$(OBJS) | ||||||
| 	\$(CXX) -o \$@ \$(OBJS) | 	\$(CXX) -o \$@ \$(OBJS) -lmain | ||||||
| 
 | 
 | ||||||
| %.o: %.cpp | %.o: %.cpp | ||||||
| 	\$(CXX) \$(CXXFLAGS) -o \$@ -c \$< | 	\$(CXX) \$(CXXFLAGS) -o \$@ -c \$< | ||||||
|  |  | ||||||
|  | @ -1,6 +1,8 @@ | ||||||
| #include <AK/Format.h> | #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!"); |     outln("Hello friends!"); | ||||||
|     return 0; |     return 0; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling