From 6e37df5529adb40aac6d3633c3b6bc702928247a Mon Sep 17 00:00:00 2001 From: Aubin DORIVAL Date: Wed, 11 Dec 2024 20:26:17 +0100 Subject: [PATCH] init with makefile --- .gitattributes | 7 +++++++ Makefile | 20 ++++++++++++++++++++ main.c | 7 +++++++ 3 files changed, 34 insertions(+) create mode 100644 .gitattributes create mode 100644 Makefile create mode 100644 main.c diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a58c2ac --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +**/*.png filter=lfs diff=lfs merge=lfs -text +**/*.png~ filter=lfs diff=lfs merge=lfs -text +**/*.mp3 filter=lfs diff=lfs merge=lfs -text +**/*.ogg filter=lfs diff=lfs merge=lfs -text +**/*.wav filter=lfs diff=lfs merge=lfs -text +rapport filter=lfs diff=lfs merge=lfs -text +**/*.zip filter=lfs diff=lfs merge=lfs -text diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6d23cd3 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +# Variable +CC = gcc +CFLAGS = -Wall -Wextra +OBJ = main.o +TARGET = sokoban + +all: $(TARGET) + +$(TARGET): $(OBJ) + $(CC) $(CFLAGS) $(OBJ) -o $(TARGET) + +main.c : main.c + $(CC) $(CFLAGS) -c main.c + + +clean : + rm -f $(OBJ) $(TARGET) + + +.PHONY: all clean diff --git a/main.c b/main.c new file mode 100644 index 0000000..2e1b734 --- /dev/null +++ b/main.c @@ -0,0 +1,7 @@ +#include + +int main() +{ + printf("test\n"); + return 0; +}