Makefile 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Copyright 1996-2019 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. ### Do not modify: this includes Webots global Makefile.include
  69. C_SOURCES = ardupilot_SITL_ROVER.c sockets.c sensors.c
  70. INCLUDE = -I"./"
  71. LIBRARIES = -ldriver -lcar
  72. space :=
  73. space +=
  74. WEBOTS_HOME_PATH=$(subst $(space),\ ,$(strip $(subst \,/,$(WEBOTS_HOME))))
  75. include $(WEBOTS_HOME_PATH)/resources/Makefile.include