This repository has been archived on 2023-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
GINPA/Vue/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 ..