30 lines
484 B
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 ..
|