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/Modele/Makefile

30 lines
484 B
Makefile

CC=gcc
CFLAGS=-std=c99 -Werror -Wall -Wextra -Wpedantic -Wshadow -Wno-missing-field-initializers -Wstrict-overflow
OUTPUT=../bin/Release/GINPA
OBJ=../obj/Release
ifdef DEBUG
CFLAGS+=-g
LDFLAGS+=-g
OUTPUT=../bin/Debug/GINPA
OBJ=../obj/Debug
endif
.SILENT:
all: $(OBJ)/load.o $(OBJ)/agglo.o $(OBJ)/calcul.o $(OBJ)/others.o
$(OBJ)/%.o: %.c %.h
$(CC) -c -o $@ $< $(CFLAGS)
debug:
make DEBUG=1
.PHONY: clean mrproper
clean:
make clean -C ..
mrproper:
make mrproper -C ..