Skip to content
Snippets Groups Projects
Commit f06cb53b authored by Adama Nana's avatar Adama Nana
Browse files

Jeu de la vie

parent 17456f26
Branches Adama_NANA
No related tags found
No related merge requests found
CC = gcc
Exec = prog
Src = $(wildcard *.c)
Obj = $(Src:.c=.o)
CFLAGS = -Wall -Wextra -I/usr/include/SDL2 -D_REENTRANT
LDFLAGS = -lSDL2
#SDLFLAGS = $(sdl2-config --cflags --libs)
all : $(Exec)
%.o : %.c
$(CC) $(CFLAGS) -o $@ -c $< -g
$(Exec) : $(Obj)
$(CC) -o $@ $^ $(LDFLAGS)
clean :
rm -rf *.o
mrproper : clean
rm -rf prog
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment