diff --git a/Makefile b/Makefile index a45e723..6555b69 100644 --- a/Makefile +++ b/Makefile @@ -1,30 +1,346 @@ -CC=g++ -CFLAGS=-Wall -std=c++11 -TARGET=ptf +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.2 -$(TARGET): build/main.o build/object.o build/physics_object.o build/block.o build/ball.o build/engine.o - $(CC) $(CFLAGS) -o build/$(TARGET) \ - build/main.o build/object.o build/physics_object.o build/block.o \ - build/ball.o build/engine.o \ - -lsfml-graphics -lsfml-window -lsfml-system -lpthread +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target -build/main.o: main.cpp - $(CC) $(CFLAGS) -o build/main.o -c main.cpp +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: -build/object.o: object.cpp object.hpp - $(CC) $(CFLAGS) -o build/object.o -c object.cpp +#============================================================================= +# Special targets provided by cmake. -build/physics_object.o: physics_object.cpp physics_object.hpp - $(CC) $(CFLAGS) -o build/physics_object.o -c physics_object.cpp +# Disable implicit rules so canonical targets will work. +.SUFFIXES: -build/block.o: block.cpp block.hpp - $(CC) $(CFLAGS) -o build/block.o -c block.cpp +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = -build/ball.o: ball.cpp ball.hpp - $(CC) $(CFLAGS) -o build/ball.o -c ball.cpp +.SUFFIXES: .hpux_make_needs_suffix_list -build/engine.o: engine.cpp engine.hpp - $(CC) $(CFLAGS) -o build/engine.o -c engine.cpp +# Suppress display of executed commands. +$(VERBOSE).SILENT: +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/matteo/Développement/projet-cmi + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/matteo/Développement/projet-cmi + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..." + /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: install/strip +.PHONY : install/strip/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." + /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..." + /usr/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..." + /usr/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..." + /usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: install/local +.PHONY : install/local/fast + +# The main all target +all: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/matteo/Développement/projet-cmi/CMakeFiles /home/matteo/Développement/projet-cmi/CMakeFiles/progress.marks + $(MAKE) -f CMakeFiles/Makefile2 all + $(CMAKE_COMMAND) -E cmake_progress_start /home/matteo/Développement/projet-cmi/CMakeFiles 0 +.PHONY : all + +# The main clean target clean: - rm build/* + $(MAKE) -f CMakeFiles/Makefile2 clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +#============================================================================= +# Target rules for targets named ptf + +# Build rule for target. +ptf: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 ptf +.PHONY : ptf + +# fast build rule for target. +ptf/fast: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/build +.PHONY : ptf/fast + +src/ball.o: src/ball.cpp.o +.PHONY : src/ball.o + +# target to build an object file +src/ball.cpp.o: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/ball.cpp.o +.PHONY : src/ball.cpp.o + +src/ball.i: src/ball.cpp.i +.PHONY : src/ball.i + +# target to preprocess a source file +src/ball.cpp.i: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/ball.cpp.i +.PHONY : src/ball.cpp.i + +src/ball.s: src/ball.cpp.s +.PHONY : src/ball.s + +# target to generate assembly for a file +src/ball.cpp.s: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/ball.cpp.s +.PHONY : src/ball.cpp.s + +src/block.o: src/block.cpp.o +.PHONY : src/block.o + +# target to build an object file +src/block.cpp.o: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/block.cpp.o +.PHONY : src/block.cpp.o + +src/block.i: src/block.cpp.i +.PHONY : src/block.i + +# target to preprocess a source file +src/block.cpp.i: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/block.cpp.i +.PHONY : src/block.cpp.i + +src/block.s: src/block.cpp.s +.PHONY : src/block.s + +# target to generate assembly for a file +src/block.cpp.s: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/block.cpp.s +.PHONY : src/block.cpp.s + +src/engine.o: src/engine.cpp.o +.PHONY : src/engine.o + +# target to build an object file +src/engine.cpp.o: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/engine.cpp.o +.PHONY : src/engine.cpp.o + +src/engine.i: src/engine.cpp.i +.PHONY : src/engine.i + +# target to preprocess a source file +src/engine.cpp.i: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/engine.cpp.i +.PHONY : src/engine.cpp.i + +src/engine.s: src/engine.cpp.s +.PHONY : src/engine.s + +# target to generate assembly for a file +src/engine.cpp.s: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/engine.cpp.s +.PHONY : src/engine.cpp.s + +src/main.o: src/main.cpp.o +.PHONY : src/main.o + +# target to build an object file +src/main.cpp.o: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/main.cpp.o +.PHONY : src/main.cpp.o + +src/main.i: src/main.cpp.i +.PHONY : src/main.i + +# target to preprocess a source file +src/main.cpp.i: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/main.cpp.i +.PHONY : src/main.cpp.i + +src/main.s: src/main.cpp.s +.PHONY : src/main.s + +# target to generate assembly for a file +src/main.cpp.s: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/main.cpp.s +.PHONY : src/main.cpp.s + +src/object.o: src/object.cpp.o +.PHONY : src/object.o + +# target to build an object file +src/object.cpp.o: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/object.cpp.o +.PHONY : src/object.cpp.o + +src/object.i: src/object.cpp.i +.PHONY : src/object.i + +# target to preprocess a source file +src/object.cpp.i: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/object.cpp.i +.PHONY : src/object.cpp.i + +src/object.s: src/object.cpp.s +.PHONY : src/object.s + +# target to generate assembly for a file +src/object.cpp.s: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/object.cpp.s +.PHONY : src/object.cpp.s + +src/physics_object.o: src/physics_object.cpp.o +.PHONY : src/physics_object.o + +# target to build an object file +src/physics_object.cpp.o: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/physics_object.cpp.o +.PHONY : src/physics_object.cpp.o + +src/physics_object.i: src/physics_object.cpp.i +.PHONY : src/physics_object.i + +# target to preprocess a source file +src/physics_object.cpp.i: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/physics_object.cpp.i +.PHONY : src/physics_object.cpp.i + +src/physics_object.s: src/physics_object.cpp.s +.PHONY : src/physics_object.s + +# target to generate assembly for a file +src/physics_object.cpp.s: + $(MAKE) -f CMakeFiles/ptf.dir/build.make CMakeFiles/ptf.dir/src/physics_object.cpp.s +.PHONY : src/physics_object.cpp.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... install/strip" + @echo "... ptf" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... install" + @echo "... list_install_components" + @echo "... install/local" + @echo "... src/ball.o" + @echo "... src/ball.i" + @echo "... src/ball.s" + @echo "... src/block.o" + @echo "... src/block.i" + @echo "... src/block.s" + @echo "... src/engine.o" + @echo "... src/engine.i" + @echo "... src/engine.s" + @echo "... src/main.o" + @echo "... src/main.i" + @echo "... src/main.s" + @echo "... src/object.o" + @echo "... src/object.i" + @echo "... src/object.s" + @echo "... src/physics_object.o" + @echo "... src/physics_object.i" + @echo "... src/physics_object.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system +