init with makefile

This commit is contained in:
2024-12-11 20:26:17 +01:00
commit 6e37df5529
3 changed files with 34 additions and 0 deletions

7
.gitattributes vendored Normal file
View File

@@ -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

20
Makefile Normal file
View File

@@ -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

7
main.c Normal file
View File

@@ -0,0 +1,7 @@
#include <stdio.h>
int main()
{
printf("test\n");
return 0;
}