From 86d38d74749d3bee07a5a20ff4918dfb60453af2 Mon Sep 17 00:00:00 2001 From: Nemo D'ACREMONT Date: Fri, 14 Mar 2025 17:07:26 +0100 Subject: [PATCH] real init --- .gitignore | 2 +- Makefile | 6 +++--- src/main.c | 7 +++++++ 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 src/main.c diff --git a/.gitignore b/.gitignore index 2eb8c04..0730d6a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ /build -/controller +/main /tags /.vscode /compile_flags.txt diff --git a/Makefile b/Makefile index a71eae1..f1c4892 100644 --- a/Makefile +++ b/Makefile @@ -13,9 +13,9 @@ objs+=$(patsubst ${src_dir}/%.c,${build_dir}/%.o,${srcs}) all: build .PHONY: build -build: controller +build: main -controller: ${objs} +main: ${objs} ${CC} -o $@ $^ ${CFLAGS} ${LDFLAGS} ${build_dir}/%.o: ${src_dir}/%.c @@ -28,4 +28,4 @@ compile_flags.txt: .PHONY: clean clean: - ${RM} -rf build controller + ${RM} -rf build main diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..3c6f893 --- /dev/null +++ b/src/main.c @@ -0,0 +1,7 @@ +#include + +int main(int argc, char* argv[]) +{ + printf("helol wolrd!\n"); + return 0; +}