30 lines
577 B
Makefile
30 lines
577 B
Makefile
CC=gcc
|
|
CFLAGS=-std=c99 -Werror -Wall -Wextra -Wpedantic -Wshadow -Wno-missing-field-initializers -Wstrict-overflow
|
|
GFLAGS=-lcsfml-graphics -lcsfml-window -lcsfml-system -lm
|
|
OUTPUT=../bin/Release/GINPA
|
|
OBJ=../obj/Release
|
|
|
|
ifdef DEBUG
|
|
CFLAGS+=-g
|
|
LDFLAGS+=-g
|
|
OUTPUT=../bin/Debug/GINPA
|
|
OBJ=../obj/Debug
|
|
endif
|
|
|
|
.SILENT:
|
|
|
|
all: $(OBJ)/vue.o $(OBJ)/creation.o $(OBJ)/chargement.o $(OBJ)/selection.o $(OBJ)/affichage.o
|
|
|
|
$(OBJ)/%.o: %.c %.h
|
|
$(CC) -c -o $@ $< $(CFLAGS) $(GFLAGS)
|
|
|
|
debug:
|
|
make DEBUG=1
|
|
|
|
.PHONY: clean mrproper
|
|
clean:
|
|
make clean -C ..
|
|
|
|
mrproper:
|
|
make mrproper -C ..
|