# Makefile -- TP-1 : compilation de hello et de test_env avec les options du cours
CC = gcc
CFLAGS = -std=c17 -Wall -Wextra -O0 -g
LDFLAGS =

# Cibles
TARGETS = hello test_env

# Regle par defaut
all: $(TARGETS)

# Compilation de hello
hello: hello.c
	$(CC) $(CFLAGS) -o hello hello.c $(LDFLAGS)

# TODO 6.1 : regle pour test_env, sur le modele de hello

# Nettoyage
clean:
	rm -f $(TARGETS) *.o

# Recompilation complete
rebuild: clean all

# Cibles qui ne sont pas des fichiers
.PHONY: all clean rebuild
