paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [5913] tell emacs about makefiles and little cleanup


From: Felix Ruess
Subject: [paparazzi-commits] [5913] tell emacs about makefiles and little cleanup
Date: Tue, 21 Sep 2010 22:49:33 +0000

Revision: 5913
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5913
Author:   flixr
Date:     2010-09-21 22:49:33 +0000 (Tue, 21 Sep 2010)
Log Message:
-----------
tell emacs about makefiles and little cleanup

Modified Paths:
--------------
    paparazzi3/trunk/Makefile
    paparazzi3/trunk/conf/autopilot/fixedwing.makefile
    paparazzi3/trunk/conf/autopilot/rotorcraft.makefile
    paparazzi3/trunk/sw/airborne/Makefile

Modified: paparazzi3/trunk/Makefile
===================================================================
--- paparazzi3/trunk/Makefile   2010-09-21 22:14:13 UTC (rev 5912)
+++ paparazzi3/trunk/Makefile   2010-09-21 22:49:33 UTC (rev 5913)
@@ -1,3 +1,5 @@
+# Hey Emacs, this is a -*- makefile -*-
+#
 #   Paparazzi main $Id$
 #   Copyright (C) 2004 Pascal Brisset Antoine Drouin
 #

Modified: paparazzi3/trunk/conf/autopilot/fixedwing.makefile
===================================================================
--- paparazzi3/trunk/conf/autopilot/fixedwing.makefile  2010-09-21 22:14:13 UTC 
(rev 5912)
+++ paparazzi3/trunk/conf/autopilot/fixedwing.makefile  2010-09-21 22:49:33 UTC 
(rev 5913)
@@ -1,3 +1,4 @@
+# Hey Emacs, this is a -*- makefile -*-
 #
 # fixedwing.makefile
 #

Modified: paparazzi3/trunk/conf/autopilot/rotorcraft.makefile
===================================================================
--- paparazzi3/trunk/conf/autopilot/rotorcraft.makefile 2010-09-21 22:14:13 UTC 
(rev 5912)
+++ paparazzi3/trunk/conf/autopilot/rotorcraft.makefile 2010-09-21 22:49:33 UTC 
(rev 5913)
@@ -1,6 +1,7 @@
+# Hey Emacs, this is a -*- makefile -*-
 #
 # $Id$
-#  
+#
 # Copyright (C) 2010 The Paparazzi Team
 #
 # This file is part of Paparazzi.
@@ -18,7 +19,7 @@
 # You should have received a copy of the GNU General Public License
 # along with Paparazzi; see the file COPYING.  If not, write to
 # the Free Software Foundation, 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA. 
+# Boston, MA 02111-1307, USA.
 #
 #
 
@@ -53,7 +54,7 @@
 ap.CFLAGS += -DBOARD_CONFIG=$(BOARD_CFG) -DPERIPHERALS_AUTO_INIT
 ap.srcs    = $(SRC_FIRMAWRE)/main.c
 
-ifeq ($(ARCHI), stm32) 
+ifeq ($(ARCHI), stm32)
 ap.srcs += lisa/plug_sys.c
 endif
 #
@@ -61,7 +62,7 @@
 #
 ifeq ($(ARCHI), arm7)
 ap.srcs += $(SRC_ARCH)/armVIC.c
-else ifeq ($(ARCHI), stm32) 
+else ifeq ($(ARCHI), stm32)
 ap.srcs += $(SRC_ARCH)/stm32_exceptions.c
 ap.srcs += $(SRC_ARCH)/stm32_vector_table.c
 endif
@@ -70,7 +71,7 @@
 # LEDs
 #
 ap.CFLAGS += -DUSE_LED
-ifeq ($(ARCHI), stm32) 
+ifeq ($(ARCHI), stm32)
 ap.srcs += $(SRC_ARCH)/led_hw.c
 endif
 
@@ -80,7 +81,7 @@
 ap.CFLAGS += -DUSE_SYS_TIME
 ap.srcs += sys_time.c $(SRC_ARCH)/sys_time_hw.c
 ap.CFLAGS += -DPERIODIC_TASK_PERIOD='SYS_TICS_OF_SEC((1./512.))'
-ifeq ($(ARCHI), stm32) 
+ifeq ($(ARCHI), stm32)
 ap.CFLAGS += -DSYS_TIME_LED=$(SYS_TIME_LED)
 endif
 
@@ -89,10 +90,10 @@
 #
 ap.srcs += $(SRC_ARCH)/uart_hw.c
 ap.CFLAGS += -DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport
-ap.CFLAGS += -DDOWNLINK_DEVICE=$(MODEM_PORT) 
+ap.CFLAGS += -DDOWNLINK_DEVICE=$(MODEM_PORT)
 ap.srcs   += $(SRC_BOOZ)/booz2_telemetry.c \
-            downlink.c \
-             pprz_transport.c
+                downlink.c \
+                        pprz_transport.c
 ap.CFLAGS += -DDATALINK=PPRZ
 ap.CFLAGS += -DPPRZ_UART=$(MODEM_PORT)
 ap.srcs   += $(SRC_BOOZ)/booz2_datalink.c
@@ -139,7 +140,7 @@
 ap.srcs += $(SRC_BOARD)/baro_board.c
 ifeq ($(BOARD), booz)
 ap.CFLAGS += -DROTORCRAFT_BARO_LED=$(BARO_LED) 
-DBOOZ2_ANALOG_BARO_PERIOD='SYS_TICS_OF_SEC((1./100.))'
-else ifeq ($(BOARD), lisa_l) 
+else ifeq ($(BOARD), lisa_l)
 ap.CFLAGS += -DUSE_I2C2
 endif
 
@@ -152,15 +153,15 @@
 ap.CFLAGS += -DADC0_VIC_SLOT=2
 ap.CFLAGS += -DADC1_VIC_SLOT=3
 ap.srcs += $(SRC_BOOZ)/booz2_analog.c \
-           $(SRC_BOOZ_ARCH)/booz2_analog_hw.c
-else ifeq ($(ARCHI), stm32) 
+                  $(SRC_BOOZ_ARCH)/booz2_analog_hw.c
+else ifeq ($(ARCHI), stm32)
 ap.srcs += lisa/lisa_analog_plug.c
 endif
 
 
 #
 # GPS choice
-# 
+#
 # include subsystems/rotorcraft/gps_ubx.makefile
 # or
 # include subsystems/rotorcraft/gps_skytraq.makefile
@@ -218,8 +219,6 @@
 # include booz2_fms_test_signal.makefile
 # or
 # include booz2_fms_datalink.makefile
-# or 
+# or
 # nothing
 #
-
-

Modified: paparazzi3/trunk/sw/airborne/Makefile
===================================================================
--- paparazzi3/trunk/sw/airborne/Makefile       2010-09-21 22:14:13 UTC (rev 
5912)
+++ paparazzi3/trunk/sw/airborne/Makefile       2010-09-21 22:49:33 UTC (rev 
5913)
@@ -1,4 +1,5 @@
-# 
+# Hey Emacs, this is a -*- makefile -*-
+#
 #  $Id$
 #  Copyright (C) 2003-2005 Pascal Brisset, Antoine Drouin
 #
@@ -17,23 +18,19 @@
 # You should have received a copy of the GNU General Public License
 # along with paparazzi; see the file COPYING.  If not, write to
 # the Free Software Foundation, 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.  
-# 
+# Boston, MA 02111-1307, USA.
+#
 
 
 OBJDIR = $(PAPARAZZI_HOME)/var/$(AIRCRAFT)/$(TARGET)
 VARINCLUDE=$(PAPARAZZI_HOME)/var/include
 ACINCLUDE = $(PAPARAZZI_HOME)/var/$(AIRCRAFT)
 
-#
-# WTF is that for ? VARINCLUDE=$(PAPARAZZI_HOME)/var/include  and  -I 
$(PAPARAZZI_SRC)/var/include in the line below ?
-#
+INCLUDES = -I $(PAPARAZZI_SRC)/sw/include -I $(PAPARAZZI_SRC)/sw/airborne -I 
$(PAPARAZZI_SRC)/conf/autopilot -I 
$(PAPARAZZI_SRC)/sw/airborne/$($(TARGET).ARCHDIR) -I $(VARINCLUDE) -I 
$(ACINCLUDE)
 
-INCLUDES = -I $(PAPARAZZI_SRC)/sw/include -I $(PAPARAZZI_SRC)/var/include -I 
$(PAPARAZZI_SRC)/sw/airborne -I $(PAPARAZZI_SRC)/conf/autopilot -I 
$(PAPARAZZI_SRC)/sw/airborne/$($(TARGET).ARCHDIR) -I $(VARINCLUDE) -I 
$(ACINCLUDE)
-
 SRC_ARCH = $(PAPARAZZI_SRC)/sw/airborne/$(ARCHDIR)
 
-ifneq ($(MAKECMDGOALS),clean) 
+ifneq ($(MAKECMDGOALS),clean)
 include $(PAPARAZZI_HOME)/var/$(AIRCRAFT)/Makefile.ac
 $(TARGET).srcs += $($(TARGET).EXTRA_SRCS)
 include ../../conf/Makefile.local




reply via email to

[Prev in Thread] Current Thread [Next in Thread]