Makefile 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Copyright 1996-2018 Cyberbotics Ltd.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ### Generic Makefile.include for Webots controllers, physics plugins, robot
  15. ### window libraries, remote control libraries and other libraries
  16. ### to be used with GNU make
  17. ###
  18. ### Platforms: Windows, macOS, Linux
  19. ### Languages: C, C++
  20. ###
  21. ### Authors: Olivier Michel, Yvan Bourquin, Fabien Rohrer
  22. ### Edmund Ronald, Sergei Poskriakov
  23. ###
  24. ###-----------------------------------------------------------------------------
  25. ###
  26. ### This file is meant to be included from the Makefile files located in the
  27. ### Webots projects subdirectories. It is possible to set a number of variables
  28. ### to customize the build process, i.e., add source files, compilation flags,
  29. ### include paths, libraries, etc. These variables should be set in your local
  30. ### Makefile just before including this Makefile.include. This Makefile.include
  31. ### should never be modified.
  32. ###
  33. ### Here is a description of the variables you may set in your local Makefile:
  34. ###
  35. ### ---- C Sources ----
  36. ### if your program uses several C source files:
  37. ### C_SOURCES = my_plugin.c my_clever_algo.c my_graphics.c
  38. ###
  39. ### ---- C++ Sources ----
  40. ### if your program uses several C++ source files:
  41. ### CXX_SOURCES = my_plugin.cc my_clever_algo.cpp my_graphics.c++
  42. ###
  43. ### ---- Compilation options ----
  44. ### if special compilation flags are necessary:
  45. ### CFLAGS = -Wno-unused-result
  46. ###
  47. ### ---- Linked libraries ----
  48. ### if your program needs additional libraries:
  49. ### INCLUDE = -I"/my_library_path/include"
  50. ### LIBRARIES = -L"/path/to/my/library" -lmy_library -lmy_other_library
  51. ###
  52. ### ---- Linking options ----
  53. ### if special linking flags are needed:
  54. ### LFLAGS = -s
  55. ###
  56. ### ---- Webots included libraries ----
  57. ### if you want to use the Webots C API in your C++ controller program:
  58. ### USE_C_API = true
  59. ### if you want to link with the Qt framework embedded in Webots:
  60. ### QT = core gui widgets network
  61. ###
  62. ### ---- Debug mode ----
  63. ### if you want to display the gcc command line for compilation and link, as
  64. ### well as the rm command details used for cleaning:
  65. ### VERBOSE = 1
  66. ###
  67. ###-----------------------------------------------------------------------------
  68. C_SOURCES = ardupilot_SITL_QUAD.c sockets.c sensors.c
  69. INCLUDE = -I"./"
  70. ### Do not modify: this includes Webots global Makefile.include
  71. space :=
  72. space +=
  73. WEBOTS_HOME_PATH=$(subst $(space),\ ,$(strip $(subst \,/,$(WEBOTS_HOME))))
  74. include $(WEBOTS_HOME_PATH)/resources/Makefile.include