From 7b424278e849ef7cea4241b89eaed7650085a64a Mon Sep 17 00:00:00 2001 From: Louis Gallet Date: Sun, 29 Sep 2024 22:59:42 +0200 Subject: [PATCH] fix: :see_no_evil: Push the Makefile (why it was on the gitingore??) --- .gitignore | 1 - Makefile | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 03816eb..3ee1569 100644 --- a/.gitignore +++ b/.gitignore @@ -175,7 +175,6 @@ CMakeCache.txt CMakeFiles CMakeScripts Testing -Makefile cmake_install.cmake install_manifest.txt compile_commands.json diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8b37ee4 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CC := gcc +CCFLAGS := -pedantic -std=c99 +OBJ := main.o +TARGET := main + +all: main use + +main: $(OBJ) + $(CC) $(CCFLAGS) $(OBJ) -o $(TARGET) + ./main + +$(OBJ): main.c + $(CC) $(CCFLAGS) -c main.c -o $(OBJ) + +use: use.o + $(CC) $(CCFLAGS) use.o -o use + +use.o: use.c + $(CC) $(CCFLAGS) -c use.c -o use.o + +.PHONY: clean +clean: + rm -f $(TARGET) $(OBJ) use.o use