########################################## Makefile for building:rostering# author:howard# project:rostering####### ################################# #Compiler and optionscc=gcccxx=g++cxxflags=-g-w-std=c++11incpath=-i. /testmake-i.-i/opt/gurobi603/linux64/includelibs=-l/opt/gurobi603/linux64/lib/-lgurobi_c++-lgurobi60#Output directory#outdir=./test_debug/#Define filesobjects=allpossiblerecord.o crew.o firststage.o FIRSTSTAGESOLUTION.O GLOBALFUNCTION.O groupedcrew.o groupedpairing.o inputdata.o inputdatacaptain.o inputdatacruise.o InputDataFO.o Inpu TDATASTUDENT.O main.o networkforcrew.o optcontrol.o output.o pairing.o parameters.o SecondStage.o SubNetwork.oTARG Et=rostering#bulid rules$ (target):/OPT/GUROBI603/LINUX64/LIB/LIBGUROBI_C++.A $ (OBJECTS) $ (CXX)-O $ (target) $ ( OBJECTS) $ (LIBS) # Compileallpossiblerecord.o:./allpossiblerecord.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O ALLPOSSIBLERECORD.O./ALLPOSSIBLERECORD.CPPCREW.O:./crew.cpp $ (CXX)-C $ (cxxflags) $ (INCPATH)-O crew.o./CREW.CPPFIRSTSTAGE.O:./firststage.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O firststage.o./firststage.cpp FIRSTSTAGESOLUTION.O:./firststagesolution.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O firststagesolution.o. FIRSTSTAGESOLUTION.CPPGLOBALFUNCTION.O:./globalfunction.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O globalfunction.o. GLOBALFUNCTION.CPPGROUPEDCREW.O:./groupedcrew.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O groupedcrew.o. GROUPEDCREW.CPPGROUPEDPAIRING.O:./groupedpairing.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O groupedpairing.o. GROUPEDPAIRING.CPPINPUTDATA.O:./inputdata.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O inputdata.o. INPUTDATA.CPPINPUTDATACAPTAIN.O:./inputdatacaptain.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O inputdatacaptain.o. INPUTDATACAPTAIN.CPPINPUTDATACRUISE.O:./inputdatacruise.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O inputdatacruise.o. INPUTDATACRUISE.CPPINPUTDATAFO.O:./inputdatafo.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O inputdatafo.o./INPUTDATAFO.CPPINPUTDATASTUDENT.O:./inputdatastudent.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O inputdatastudent.o. INPUTDATASTUDENT.CPPMAIN.O:./main.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O main.o./MAIN.CPPNETWORKFORCREW.O:./ NetworkForCrew.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O networkforcrew.o./NETWORKFORCREW.CPPOPTCONTROL.O:./ OptControl.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O optcontrol.o./OPTCONTROL.CPPOUTPUT.O:./output.cpp./output.h$ (CXX) -C $ (cxxflags) $ (incpath)-O output.o./OUTPUT.CPPPAIRING.O:./pairing.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O-pairing.o. /PAIRING.CPPPARAMETERS.O:./parameters.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O parameters.o. PARAMETERS.CPPSECONDSTAGE.O:./secondstage.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O secondstage.o. SECONDSTAGE.CPPSUBNETWORK.O:./subnetwork.cpp $ (CXX)-C $ (cxxflags) $ (incpath)-O subnetwork.o./subnetwork.cpp#clean. Phony:cleanclean:rm-r $ (TARGET) $ (OBJECTS)
The first makefile of life is to be put up for a souvenir