26 lines
642 B
Makefile
Executable File
26 lines
642 B
Makefile
Executable File
CC=g++
|
|
CFLAGS=-c -Wall --pedantic
|
|
LDFLAGS=-Wall --pedantic
|
|
SOURCES=data.cpp costfunctions.cpp models.cpp methods.cpp TravelingSalesPerson.cpp
|
|
OBJECTS=data.o costfunctions.o models.o methods.o TravelingSalesPerson.o
|
|
EXECUTABLE=projet
|
|
|
|
all: $(EXECUTABLE)
|
|
|
|
$(EXECUTABLE): $(OBJECTS)
|
|
$(CC) $(LDFLAGS) $^ -o $@
|
|
|
|
clean:
|
|
$(RM) *.o $(EXECUTABLE) *.temp
|
|
|
|
depend:
|
|
makedepend -Y $(SOURCES)
|
|
# DO NOT DELETE
|
|
|
|
data.o: data.h
|
|
costfunctions.o: costfunctions.h
|
|
models.o: models.h data.h costfunctions.h
|
|
methods.o: models.h data.h costfunctions.h methods.h
|
|
methods.o: SimulatedAnnealingParameters.h
|
|
test_methods.o: models.h data.h costfunctions.h methods.h
|