Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 210 lines (162 sloc) 5.933 kb
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
1 # Paparazzi main $Id$
2 # Copyright (C) 2004 Pascal Brisset Antoine Drouin
3 #
4 # This file is part of paparazzi.
5 #
6 # paparazzi is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
10 #
11 # paparazzi is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with paparazzi; see the file COPYING. If not, write to
18 # the Free Software Foundation, 59 Temple Place - Suite 330,
19 # Boston, MA 02111-1307, USA.
20
beb9c96 *** empty log message ***
Pascal Brisset authored
21 # The default is to produce a quiet echo of compilation commands
22 # Launch with "make Q=''" to get full echo
23 Q=@
24
25 ifeq ($(Q),@)
26 MAKEFLAGS += --no-print-directory
27 endif
28
3ea8ce6 "make" works without any variable setting
Pascal Brisset authored
29 PAPARAZZI_SRC=$(shell pwd)
45e5f1f Checking for fucking spaces in the directory name
Pascal Brisset authored
30 empty=
31 space=$(empty) $(empty)
32 ifneq ($(findstring $(space),$(PAPARAZZI_SRC)),)
33 $(error No fucking spaces allowed in the current directory name)
34 endif
c8a8663 cleaning for install
Pascal Brisset authored
35 ifeq ($(PAPARAZZI_HOME),)
36 PAPARAZZI_HOME=$(PAPARAZZI_SRC)
37 endif
3ea8ce6 "make" works without any variable setting
Pascal Brisset authored
38
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
39 LIB=sw/lib
40 AIRBORNE=sw/airborne
41 COCKPIT=sw/ground_segment/cockpit
42 TMTC=sw/ground_segment/tmtc
ae32da4 First receive !
Pascal Brisset authored
43 MULTIMON=sw/ground_segment/multimon
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
44 LOGALIZER=sw/logalizer
45 SIMULATOR=sw/simulator
2858204 install
Pascal Brisset authored
46 MAKE=make PAPARAZZI_SRC=$(PAPARAZZI_SRC) PAPARAZZI_HOME=$(PAPARAZZI_HOME)
47 CONF=$(PAPARAZZI_SRC)/conf
48 STATICINCLUDE =$(PAPARAZZI_HOME)/var/include
49 MESSAGES_H=$(STATICINCLUDE)/messages.h
50 MESSAGES_FBW_H=$(STATICINCLUDE)/messages_fbw.h
51 UBX_PROTOCOL_H=$(STATICINCLUDE)/ubx_protocol.h
b52d30c @gautierhattenberger generator of read and send macro for the xsens protocol
gautierhattenberger authored
52 XSENS_PROTOCOL_H=$(STATICINCLUDE)/xsens_protocol.h
2858204 install
Pascal Brisset authored
53 DL_PROTOCOL_H=$(STATICINCLUDE)/dl_protocol.h
54 MESSAGES_XML = $(CONF)/messages.xml
55 UBX_XML = $(CONF)/ubx.xml
b52d30c @gautierhattenberger generator of read and send macro for the xsens protocol
gautierhattenberger authored
56 XSENS_XML = $(CONF)/xsens_MTi-G.xml
c8a8663 cleaning for install
Pascal Brisset authored
57 TOOLS=$(PAPARAZZI_SRC)/sw/tools
3e0c003 *** empty log message ***
Pascal Brisset authored
58 ARMGCC=/usr/bin/arm-elf-gcc
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
59
beb9c96 *** empty log message ***
Pascal Brisset authored
60
79cb28d blocking console logging problem fixed
Pascal Brisset authored
61 all: static conf
3ea8ce6 "make" works without any variable setting
Pascal Brisset authored
62
d9f515f visu3D removed
Pascal Brisset authored
63 static : lib center tools cockpit multimon tmtc logalizer lpc21iap sim_static static_h usb_lib
3ea8ce6 "make" works without any variable setting
Pascal Brisset authored
64
970a9f6 New target "test"; conf.xml (control_panel.xml) linked to .example if
Pascal Brisset authored
65 conf: conf/conf.xml conf/control_panel.xml
66
67 conf/%.xml :conf/%.xml.example
745dfc4 typo
Pascal Brisset authored
68 [ -L $@ ] || [ -f $@ ] || cp $< $@
970a9f6 New target "test"; conf.xml (control_panel.xml) linked to .example if
Pascal Brisset authored
69
70
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
71 lib:
72 cd $(LIB)/ocaml; $(MAKE)
73
35285ff paparazzicenter in progress
Pascal Brisset authored
74 center: lib
75 cd sw/supervision; make
76
7168721 New infrared neutral. aileron_of_gaz
Pascal Brisset authored
77 tools: lib
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
78 cd $(TOOLS); make
79
80 logalizer: lib
81 cd $(LOGALIZER); $(MAKE)
82
83 sim_static :
fc00c00 compilation of a new plane now works from the system
Pascal Brisset authored
84 cd $(SIMULATOR); $(MAKE) PAPARAZZI_SRC=$(PAPARAZZI_SRC)
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
85
d132cec *** empty log message ***
Pascal Brisset authored
86 cockpit: lib
87 cd $(COCKPIT); $(MAKE) all
88
89 tmtc: lib
90 cd $(TMTC); $(MAKE) all
91
92 multimon:
93 cd $(MULTIMON); $(MAKE)
94
b52d30c @gautierhattenberger generator of read and send macro for the xsens protocol
gautierhattenberger authored
95 static_h: $(MESSAGES_H) $(UBX_PROTOCOL_H) $(XSENS_PROTOCOL_H) $(DL_PROTOCOL_H)
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
96
cdec385 *** empty log message ***
Antoine Drouin authored
97 usb_lib:
93f63e5 Checking for directory existence before calling make recursively
Pascal Brisset authored
98 @[ -d sw/airborne/arm7/lpcusb ] && ((test -x $(ARMGCC) && (cd sw/airborne/arm7/lpcusb; $(MAKE))) || echo "Not building usb_lib: ARMGCC=$(ARMGCC) not found") || echo "Not building usb_lib: sw/airborne/arm7/lpcusb directory missing"
b24472f fuses handling
Pascal Brisset authored
99
2858204 install
Pascal Brisset authored
100 $(MESSAGES_H) : $(MESSAGES_XML) $(CONF_XML) $(TOOLS)/gen_messages.out
101 $(Q)test -d $(STATICINCLUDE) || mkdir -p $(STATICINCLUDE)
102 @echo BUILD $@
103 $(Q)PAPARAZZI_SRC=$(PAPARAZZI_SRC) $(TOOLS)/gen_messages.out $< telemetry > /tmp/msg.h
104 $(Q)mv /tmp/msg.h $@
105 $(Q)chmod a+r $@
b24472f fuses handling
Pascal Brisset authored
106
07f60c5 dependencies added on tools
Pascal Brisset authored
107 $(UBX_PROTOCOL_H) : $(UBX_XML) $(TOOLS)/gen_ubx.out
2858204 install
Pascal Brisset authored
108 @echo BUILD $@
109 $(Q)PAPARAZZI_SRC=$(PAPARAZZI_SRC) $(TOOLS)/gen_ubx.out $< > /tmp/ubx.h
110 $(Q)mv /tmp/ubx.h $@
b24472f fuses handling
Pascal Brisset authored
111
b52d30c @gautierhattenberger generator of read and send macro for the xsens protocol
gautierhattenberger authored
112 $(XSENS_PROTOCOL_H) : $(XSENS_XML) $(TOOLS)/gen_xsens.out
113 @echo BUILD $@
114 $(Q)PAPARAZZI_SRC=$(PAPARAZZI_SRC) $(TOOLS)/gen_xsens.out $< > /tmp/xsens.h
115 $(Q)mv /tmp/xsens.h $@
116
07f60c5 dependencies added on tools
Pascal Brisset authored
117 $(DL_PROTOCOL_H) : $(MESSAGES_XML) $(TOOLS)/gen_messages.out
2858204 install
Pascal Brisset authored
118 @echo BUILD $@
119 $(Q)PAPARAZZI_SRC=$(PAPARAZZI_SRC) $(TOOLS)/gen_messages.out $< datalink > /tmp/dl.h
120 $(Q)mv /tmp/dl.h $@
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
121
2858204 install
Pascal Brisset authored
122 include Makefile.ac
49bb459 fixed dep problems for demo
Pascal Brisset authored
123
2858204 install
Pascal Brisset authored
124 sim : sim_static
f488d1f *** empty log message ***
Pascal Brisset authored
125 ac_h ac1 ac2 ac3 ac fbw ap: static conf
b32acfd *** empty log message ***
Antoine Drouin authored
126
127 ##### preliminary hard wired arm7 bootloader rules
128 #
129 #
130 # call with : make bl PROC=[TINY|FBW|AP|GENERIC]
131 bl:
7db4484 *** empty log message ***
Antoine Drouin authored
132 cd $(AIRBORNE)/arm7/test/bootloader; make clean; make
b32acfd *** empty log message ***
Antoine Drouin authored
133
27ea152 BOOTLOADER_DEV var for uploading bootloader
Pascal Brisset authored
134 BOOTLOADER_DEV=/dev/ttyUSB0
2697578 *** empty log message ***
Pascal Brisset authored
135 upload_bl bl.upload: bl
27ea152 BOOTLOADER_DEV var for uploading bootloader
Pascal Brisset authored
136 lpc21isp -control $(AIRBORNE)/arm7/test/bootloader/bl.hex $(BOOTLOADER_DEV) 38400 12000
b32acfd *** empty log message ***
Antoine Drouin authored
137
138 lpc21iap:
139 cd sw/ground_segment/lpc21iap; make
140
bd178fe @martinmm add bootloader upgrade through USB
authored
141 upgrade_bl bl.upgrade: bl lpc21iap
142 $(PAPARAZZI_SRC)/sw/ground_segment/lpc21iap/lpc21iap $(AIRBORNE)/arm7/test/bootloader/bl_ram.elf
143 $(PAPARAZZI_SRC)/sw/ground_segment/lpc21iap/lpc21iap $(AIRBORNE)/arm7/test/bootloader/bl.elf
144
abf6856 @martinmm add mass storage via spi
authored
145 ms:
146 cd $(AIRBORNE)/arm7/lpcusb; make
147 cd $(AIRBORNE)/arm7/lpcusb/examples; make
148
149 upload_ms ms.upload: ms
150 $(PAPARAZZI_SRC)/sw/ground_segment/lpc21iap/lpc21iap $(AIRBORNE)/arm7/lpcusb/examples/msc.elf
151
a0dbc45 *** empty log message ***
Antoine Drouin authored
152 ####
153 # temporary hack for BOOZ simulator
154 #
155 booz_sim:
156 make AIRCRAFT=BOOZ flt.compile
157 make AIRCRAFT=BOOZ ctl.compile
158 cd sw/simulator; make booz_sim
159
b32acfd *** empty log message ***
Antoine Drouin authored
160 #####
161 #####
162
ae419fd arch dependent code moved away
Pascal Brisset authored
163 doxygen:
2411450 some doxygen
Pascal Brisset authored
164 mkdir -p dox
165 doxygen Doxyfile
166
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
167 run_sitl :
c1622f2 ocaml applications -> dynamic compil and link
Pascal Brisset authored
168 $(PAPARAZZI_HOME)/var/$(AIRCRAFT)/sim/simsitl
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
169
c1622f2 ocaml applications -> dynamic compil and link
Pascal Brisset authored
170 install :
2858204 install
Pascal Brisset authored
171 make -f Makefile.install PREFIX=$(PREFIX)
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
172
173 uninstall :
2858204 install
Pascal Brisset authored
174 make -f Makefile.install PREFIX=$(PREFIX) uninstall
582a0eb *** empty log message ***
Antoine Drouin authored
175
a4d0c64 *** empty log message ***
Pascal Brisset authored
176 DISTRO=etch
43b4247 "make deb" to build the debian package
Pascal Brisset authored
177 deb :
ed7ad0e x mode added to debian/rules
Pascal Brisset authored
178 chmod u+x debian/rules
582a0eb *** empty log message ***
Antoine Drouin authored
179 cp debian/control.$(DISTRO) debian/control
180 cp debian/changelog.$(DISTRO) debian/changelog
2858204 install
Pascal Brisset authored
181 dpkg-buildpackage $(DEBFLAGS) -Ivar -rfakeroot
182
183 fast_deb:
184 make deb OCAMLC=ocamlc.opt DEBFLAGS=-b
43b4247 "make deb" to build the debian package
Pascal Brisset authored
185
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
186 clean:
de06855 Fix clean target (debian/)
Pascal Brisset authored
187 rm -fr dox build-stamp configure-stamp conf/%gconf.xml debian/files debian/paparazzi-arm7 debian/paparazzi-avr debian/paparazzi-base debian/paparazzi-bin debian/paparazzi-dev
2858204 install
Pascal Brisset authored
188 rm -f $(MESSAGES_H) $(UBX_PROTOCOL_H) $(DL_PROTOCOL_H)
a921f4a *** empty log message ***
Antoine Drouin authored
189 find . -mindepth 2 -name Makefile -exec sh -c '$(MAKE) -C `dirname {}` $@' \;
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
190 find . -name '*~' -exec rm -f {} \;
191
5d6a84a *** empty log message ***
Pascal Brisset authored
192 dist_clean : clean
86ce680 *** empty log message ***
Antoine Drouin authored
193
194
195 test_all_example_airframes:
21d2c07 updated "test all" target
Pascal Brisset authored
196 $(MAKE) AIRCRAFT=MI1 clean_ac ap sim
197 $(MAKE) AIRCRAFT=MI2 clean_ac ap sim
198 $(MAKE) AIRCRAFT=MI3 clean_ac ap sim
199 $(MAKE) AIRCRAFT=FS clean_ac ap sim
200 $(MAKE) AIRCRAFT=FJ1 clean_ac ap sim
201 $(MAKE) AIRCRAFT=MJ6 clean_ac ap sim
202 $(MAKE) AIRCRAFT=MM1 clean_ac ap sim
203 $(MAKE) AIRCRAFT=S2 clean_ac ap sim
204 $(MAKE) AIRCRAFT=TINY2 clean_ac ap
205 $(MAKE) AIRCRAFT=TJ1 clean_ac fbw ap sim
206 $(MAKE) AIRCRAFT=TS6 clean_ac fbw ap sim
207
208
209
Something went wrong with that request. Please try again.