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

29 lines
525 B
Makefile

CC=gcc
CFLAGS=-std=c99 -Werror -Wall -Wextra -Wpedantic -Wshadow -Wno-missing-field-initializers -Wstrict-overflow -lm -lcurl
OUTPUT=../bin/Release/GINPA
OBJ=../obj/Release
ifdef DEBUG
CFLAGS+=-g
LDFLAGS+=-g
OUTPUT=../bin/Debug/GINPA
OBJ=../obj/Debug
endif
.SILENT:
all: $(OBJ)/controleur.o $(OBJ)/conversion.o $(OBJ)/destruction.o $(OBJ)/miscellaneous.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 ..