2 # Copyright (c) 2015, The LibrePilot Project, http://www.librepilot.org
3 # Copyright (c) 2009-2013, The OpenPilot Team, http://www.openpilot.org
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 # You should have received a copy of the GNU General Public License along
16 # with this program; if not, write to the Free Software Foundation, Inc.,
17 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 ifndef FLIGHT_MAKEFILE
21 $(error Top level Makefile must be used to build this target
)
24 include ..
/board-info.mk
25 include $(FLIGHT_ROOT_DIR
)/make
/firmware-defs.mk
28 override USE_DSP_LIB
:= NO
30 # List of mandatory modules to include
31 MODULES
+= RadioComBridge
33 # List of optional modules to include
36 # List C source files here (C dependencies are automatically generated).
37 # Use file-extension c for "c-only"-files
39 ## The standard CMSIS startup
40 SRC
+= $(CMSIS_DEVICEDIR
)/system_stm32f10x.c
43 SRC
+= ..
/pios_usb_board_data.c
44 SRC
+= $(OPMODULEDIR
)/OPLink
/oplinkmod.c
45 SRC
+= $(OPSYSTEM
)/oplink.c
46 SRC
+= $(OPSYSTEM
)/pios_board.c
47 SRC
+= $(OPUAVTALK
)/uavtalk.c
48 SRC
+= $(OPUAVOBJ
)/uavobjectmanager.c
49 SRC
+= $(OPUAVOBJ
)/uavobjectpersistence.c
50 SRC
+= $(OPUAVOBJ
)/eventdispatcher.c
51 SRC
+= $(PIOSCOMMON
)/pios_flashfs_logfs.c
53 ## Misc library functions
54 SRC
+= $(FLIGHTLIB
)/sha1.c
57 SRC
+= $(FLIGHT_UAVOBJ_DIR
)/oplinkstatus.c
58 SRC
+= $(FLIGHT_UAVOBJ_DIR
)/oplinksettings.c
59 SRC
+= $(FLIGHT_UAVOBJ_DIR
)/objectpersistence.c
60 SRC
+= $(FLIGHT_UAVOBJ_DIR
)/oplinkreceiver.c
61 SRC
+= $(FLIGHT_UAVOBJ_DIR
)/radiocombridgestats.c
62 SRC
+= $(FLIGHT_UAVOBJ_DIR
)/flightbatterystate.c
63 SRC
+= $(FLIGHT_UAVOBJ_DIR
)/flightstatus.c
66 SRC
+= $(OPTESTS
)/test_common.c
67 SRC
+= $(OPTESTS
)/$(TESTAPP
).c
70 # Optional component libraries
71 include $(FLIGHTLIB
)/rscode
/library.mk
73 include $(FLIGHT_ROOT_DIR
)/make
/apps-defs.mk
74 include $(FLIGHT_ROOT_DIR
)/make
/common-defs.mk