#To be de-comment if use of the Makefile alone
#CC = cc
#CFLAGS = -g -Wall -O3 
#LDFLAGS = -lm 

#Runnable and implicit dependance to the .c and .o
EXEC=synthesis
SRC= $(wildcard *.c)
OBJ= $(SRC: .c=.o)

#Creation of the runnable
all: $(EXEC)

$(EXEC): $(OBJ)
	@$(CC) -o $@ $^ $(LDFLAGS)

%.o: %.c
	@$(CC) -o $@ -c $< $(CFLAGS)


synthese_texture.o: main.h rand_mersenne.h

#Clean
.PHONY: clean

clean: 
	@rm -rf *.o $(EXEC)
