This commit is contained in:
Christoph J. Scherr 2024-04-04 14:15:29 +02:00
parent 72fb59cfed
commit c2ba7ae099
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
4 changed files with 74 additions and 2 deletions

58
.gitignore vendored
View File

@ -176,3 +176,61 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/
# C stuff
# Prerequisites
*.d
# Object files
*.o
*.ko
*.obj
*.elf
# Linker output
*.ilk
*.map
*.exp
# Precompiled Headers
*.gch
*.pch
# Libraries
*.lib
*.a
*.la
*.lo
# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib
# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex
# Debug files
*.dSYM/
*.su
*.idb
*.pdb
# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf
CMakeFiles
CMakeCache.txt
Makefile
cmake_install.cmake
bin

8
CMakeLists.txt Normal file
View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.5)
project(base)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
include_directories(${PROJECT_SOURCE_DIR})
add_executable( hello src/hello.c )

View File

@ -1,7 +1,6 @@
# Baserepo # DHBW OS Lecture Notes and Code
## License ## License
GPL-3 or newer
See [License] See [License]

7
src/hello.c Normal file
View File

@ -0,0 +1,7 @@
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("hello world!\n");
return 0;
}