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

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