ArchiSys/TP/TP2/rendu/Makefile

15 lines
272 B
Makefile
Raw Normal View History

2024-04-19 08:12:31 +02:00
SRC = $(wildcard *.c)
OBJ = $(filter-out build/main.o build/test.o, $(SRC:%.c=build/%.o))
FLAGS = -Wall -Wextra -g -O3
all: build/test
build/test: test.c $(OBJ)
gcc $^ -o $@ $(FLAGS)
build/%.o: %.c %.h
gcc -c $< -o $@ $(FLAGS)
clean:
rm -f build/*