# Makefile pour l'exemple 1
CC=g++
LD=g++

CFLAGS=-Wall -pedantic -O3 -malign-double -ffast-math -std=c++98 -I$(MODELIB)/include
LFLAGS=-lm -L$(MODELIB)/bin -lmodel

SRCS=flotmax.cpp
OBJS=$(patsubst %.cpp, %.o, $(SRCS))

EXEC=flotmax

#------------------------------------------------------
%.o : %.cpp
	$(CC) -c $(CFLAGS) $*.cpp

$(EXEC) : $(OBJS)
	$(CC) -o $(EXEC) $(OBJS) $(LFLAGS)

clean:
	@echo "cleaning all files but sources"
	@rm -f $(OBJS)
