dfc13e8785
Fix' user manual Suppression d'une fonction non-utilisée finalement Déplacement d'une fonction dans un autre module (Vue) Suppression d'un module (Vue)
44 lines
827 B
Makefile
44 lines
827 B
Makefile
CC=gcc
|
|
CFLAGS=-std=c99 -Werror -Wall -Wextra -pedantic -Wshadow -Wno-missing-field-initializers -Wstrict-overflow -D _POSIX_C_SOURCE=2
|
|
GFLAGS=-lcsfml-graphics -lcsfml-window -lcsfml-system -lm
|
|
DEPFLAGS=-MMD -MF
|
|
OUTPUT=../bin/Release/GINPA
|
|
OBJ=../obj/Release
|
|
DEP=Dep
|
|
|
|
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)/tinyFileDialogs.o
|
|
|
|
$(OBJ)/%.o: %.c
|
|
$(CC) -c -o $@ $< $(CFLAGS) $(GFLAGS) $(DEPFLAGS) $(DEP)/$(basename $<).d
|
|
|
|
-include $(DEP)/*.d
|
|
|
|
.PHONY: debug clean mrproper doc doc-config clean-doc
|
|
|
|
debug:
|
|
make DEBUG=1
|
|
|
|
doc:
|
|
make doc -C ..
|
|
|
|
doc-config:
|
|
make doc-config -C ..
|
|
|
|
clean-doc:
|
|
make clean-doc -C ..
|
|
|
|
clean:
|
|
make clean -C ..
|
|
|
|
mrproper:
|
|
make mrproper -C ..
|