cdo: init project

This commit is contained in:
tylen 2024-09-22 19:41:30 +00:00
parent 518ad052d9
commit b1371f7ed9
3 changed files with 22 additions and 0 deletions

3
.gitignore vendored
View File

@ -52,3 +52,6 @@ Module.symvers
Mkfile.old
dkms.conf
# Build folder
build/

13
build.sh Executable file
View File

@ -0,0 +1,13 @@
#! /bin/sh
set -xe
CC="gcc"
FLAGS="-Wall -Wpedantic"
SRCS="cdo.c"
CURRENT_DIR="$(git rev-parse --show-toplevel)"
BUILD_DIR="${CURRENT_DIR}/build"
mkdir -p ${BUILD_DIR}
${CC} ${FLAGS} -o ${BUILD_DIR}/cdo ${SRCS}

6
cdo.c Normal file
View File

@ -0,0 +1,6 @@
#include <stdio.h>
int main (int argc, char *argv[]) {
printf("Welcome to %s!", argv[0]);
return 0;
}