init with makefile
This commit is contained in:
7
.gitattributes
vendored
Normal file
7
.gitattributes
vendored
Normal 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
20
Makefile
Normal 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
|
||||||
Reference in New Issue
Block a user