Files
ortools-clone/documentation/tutorials/cplusplus/chap2/Makefile
nikolaj.van.omme@gmail.com 2b26c1233c Doc automatic update
2014-12-17 14:16:26 +00:00

47 lines
1.3 KiB
Makefile

OR_TOOLS_TOP=
OR_TOOLS_SOURCES=$(OR_TOOLS_TOP)/src
SOURCES= cp_is_fun1.cc cp_is_fun2.cc cp_is_fun3.cc cp_is_fun4.cc
OBJECTS=$(SOURCES:.cc=.o)
EXE=$(SOURCES:.cc=)
include $(OR_TOOLS_TOP)/Makefile
.PHONY: tutorials local_clean
tutorials: $(EXE)
cp_is_fun1.$O: cp_is_fun1.cc $(SRC_DIR)/constraint_solver/constraint_solver.h
$(CCC) $(CFLAGS) -c cp_is_fun1.cc -o cp_is_fun1.$O
cp_is_fun1$E: $(CP_DEPS) cp_is_fun1.$O
$(CCC) $(CFLAGS) cp_is_fun1.$O $(DYNAMIC_CP_LNK) $(DYNAMIC_LD_FLAGS) -o cp_is_fun1$E
cp_is_fun2.$O: cp_is_fun2.cc $(SRC_DIR)/constraint_solver/constraint_solver.h
$(CCC) $(CFLAGS) -c cp_is_fun2.cc -o cp_is_fun2.$O
cp_is_fun2$E: $(CP_DEPS) cp_is_fun2.$O
$(CCC) $(CFLAGS) cp_is_fun2.$O $(DYNAMIC_CP_LNK) $(DYNAMIC_LD_FLAGS) -o cp_is_fun2$E
cp_is_fun3.$O: cp_is_fun3.cc $(SRC_DIR)/constraint_solver/constraint_solver.h
$(CCC) $(CFLAGS) -c cp_is_fun3.cc -o cp_is_fun3.$O
cp_is_fun3$E: $(CP_DEPS) cp_is_fun3.$O
$(CCC) $(CFLAGS) cp_is_fun3.$O $(DYNAMIC_CP_LNK) $(DYNAMIC_LD_FLAGS) -o cp_is_fun3$E
cp_is_fun4.$O: cp_is_fun4.cc $(SRC_DIR)/constraint_solver/constraint_solver.h
$(CCC) $(CFLAGS) -c cp_is_fun4.cc -o cp_is_fun4.$O
cp_is_fun4$E: $(CP_DEPS) cp_is_fun4.$O
$(CCC) $(CFLAGS) cp_is_fun4.$O $(DYNAMIC_CP_LNK) $(DYNAMIC_LD_FLAGS) -o cp_is_fun4$E
local_clean:
rm $(OBJECTS)
rm $(EXE)