Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 180 lines (138 sloc) 4.646 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)
c8a8663 cleaning for install
Pascal Brisset authored
30 ifeq ($(PAPARAZZI_HOME),)
31 PAPARAZZI_HOME=$(PAPARAZZI_SRC)
32 endif
3ea8ce6 "make" works without any variable setting
Pascal Brisset authored
33
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
34
35 LIB=sw/lib
36 AIRBORNE=sw/airborne
37 COCKPIT=sw/ground_segment/cockpit
38 TMTC=sw/ground_segment/tmtc
ae32da4 First receive !
Pascal Brisset authored
39 MULTIMON=sw/ground_segment/multimon
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
40 VISU3D=sw/ground_segment/visu3d
41 LOGALIZER=sw/logalizer
42 SIMULATOR=sw/simulator
2858204 install
Pascal Brisset authored
43 MAKE=make PAPARAZZI_SRC=$(PAPARAZZI_SRC) PAPARAZZI_HOME=$(PAPARAZZI_HOME)
44 CONF=$(PAPARAZZI_SRC)/conf
45 STATICINCLUDE =$(PAPARAZZI_HOME)/var/include
46 MESSAGES_H=$(STATICINCLUDE)/messages.h
47 MESSAGES_FBW_H=$(STATICINCLUDE)/messages_fbw.h
48 UBX_PROTOCOL_H=$(STATICINCLUDE)/ubx_protocol.h
49 DL_PROTOCOL_H=$(STATICINCLUDE)/dl_protocol.h
50 MESSAGES_XML = $(CONF)/messages.xml
51 UBX_XML = $(CONF)/ubx.xml
c8a8663 cleaning for install
Pascal Brisset authored
52 TOOLS=$(PAPARAZZI_SRC)/sw/tools
3e0c003 *** empty log message ***
Pascal Brisset authored
53 ARMGCC=/usr/bin/arm-elf-gcc
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
54
beb9c96 *** empty log message ***
Pascal Brisset authored
55
970a9f6 New target "test"; conf.xml (control_panel.xml) linked to .example if
Pascal Brisset authored
56 all: static
3ea8ce6 "make" works without any variable setting
Pascal Brisset authored
57
35285ff paparazzicenter in progress
Pascal Brisset authored
58 static : lib center tools cockpit visu3d multimon tmtc logalizer lpc21iap sim_static static_h usb_lib
3ea8ce6 "make" works without any variable setting
Pascal Brisset authored
59
970a9f6 New target "test"; conf.xml (control_panel.xml) linked to .example if
Pascal Brisset authored
60 conf: conf/conf.xml conf/control_panel.xml
61
62 conf/%.xml :conf/%.xml.example
745dfc4 typo
Pascal Brisset authored
63 [ -L $@ ] || [ -f $@ ] || cp $< $@
970a9f6 New target "test"; conf.xml (control_panel.xml) linked to .example if
Pascal Brisset authored
64
65
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
66 lib:
67 cd $(LIB)/ocaml; $(MAKE)
68
35285ff paparazzicenter in progress
Pascal Brisset authored
69 center: lib
70 cd sw/supervision; make
71
7168721 New infrared neutral. aileron_of_gaz
Pascal Brisset authored
72 tools: lib
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
73 cd $(TOOLS); make
74
75 logalizer: lib
76 cd $(LOGALIZER); $(MAKE)
77
78 sim_static :
fc00c00 compilation of a new plane now works from the system
Pascal Brisset authored
79 cd $(SIMULATOR); $(MAKE) PAPARAZZI_SRC=$(PAPARAZZI_SRC)
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
80
d132cec *** empty log message ***
Pascal Brisset authored
81 cockpit: lib
82 cd $(COCKPIT); $(MAKE) all
83
84 tmtc: lib
85 cd $(TMTC); $(MAKE) all
86
87 multimon:
88 cd $(MULTIMON); $(MAKE)
89
90 visu3d: lib
91 cd $(VISU3D); $(MAKE)
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
92
cdec385 *** empty log message ***
Antoine Drouin authored
93 static_h: $(MESSAGES_H) $(UBX_PROTOCOL_H) $(DL_PROTOCOL_H)
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
94
cdec385 *** empty log message ***
Antoine Drouin authored
95 usb_lib:
2727f10 usb_lib not built if arm-gcc not found
Pascal Brisset authored
96 @(test -x $(ARMGCC) && (cd sw/airborne/arm7/lpcusb; $(MAKE))) || echo "Not building usb_lib: ARMGCC=$(ARMGCC) not found"
b24472f fuses handling
Pascal Brisset authored
97
2858204 install
Pascal Brisset authored
98 $(MESSAGES_H) : $(MESSAGES_XML) $(CONF_XML) $(TOOLS)/gen_messages.out
99 $(Q)test -d $(STATICINCLUDE) || mkdir -p $(STATICINCLUDE)
100 @echo BUILD $@
101 $(Q)PAPARAZZI_SRC=$(PAPARAZZI_SRC) $(TOOLS)/gen_messages.out $< telemetry > /tmp/msg.h
102 $(Q)mv /tmp/msg.h $@
103 $(Q)chmod a+r $@
b24472f fuses handling
Pascal Brisset authored
104
2858204 install
Pascal Brisset authored
105 $(UBX_PROTOCOL_H) : $(UBX_XML)
106 @echo BUILD $@
107 $(Q)PAPARAZZI_SRC=$(PAPARAZZI_SRC) $(TOOLS)/gen_ubx.out $< > /tmp/ubx.h
108 $(Q)mv /tmp/ubx.h $@
b24472f fuses handling
Pascal Brisset authored
109
2858204 install
Pascal Brisset authored
110 $(DL_PROTOCOL_H) : $(MESSAGES_XML)
111 @echo BUILD $@
112 $(Q)PAPARAZZI_SRC=$(PAPARAZZI_SRC) $(TOOLS)/gen_messages.out $< datalink > /tmp/dl.h
113 $(Q)mv /tmp/dl.h $@
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
114
2858204 install
Pascal Brisset authored
115 include Makefile.ac
49bb459 fixed dep problems for demo
Pascal Brisset authored
116
2858204 install
Pascal Brisset authored
117 sim : sim_static
f488d1f *** empty log message ***
Pascal Brisset authored
118 ac_h ac1 ac2 ac3 ac fbw ap: static conf
b32acfd *** empty log message ***
Antoine Drouin authored
119
120 ##### preliminary hard wired arm7 bootloader rules
121 #
122 #
123 # call with : make bl PROC=[TINY|FBW|AP|GENERIC]
124 bl:
7db4484 *** empty log message ***
Antoine Drouin authored
125 cd $(AIRBORNE)/arm7/test/bootloader; make clean; make
b32acfd *** empty log message ***
Antoine Drouin authored
126
2697578 *** empty log message ***
Pascal Brisset authored
127 upload_bl bl.upload: bl
50c497f *** empty log message ***
Antoine Drouin authored
128 lpc21isp -control $(AIRBORNE)/arm7/test/bootloader/bl.hex /dev/ttyUSB0 38400 12000
b32acfd *** empty log message ***
Antoine Drouin authored
129
130 lpc21iap:
131 cd sw/ground_segment/lpc21iap; make
132
133 #####
134 #####
135
ae419fd arch dependent code moved away
Pascal Brisset authored
136 doxygen:
2411450 some doxygen
Pascal Brisset authored
137 mkdir -p dox
138 doxygen Doxyfile
139
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
140 run_sitl :
c1622f2 ocaml applications -> dynamic compil and link
Pascal Brisset authored
141 $(PAPARAZZI_HOME)/var/$(AIRCRAFT)/sim/simsitl
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
142
c1622f2 ocaml applications -> dynamic compil and link
Pascal Brisset authored
143 install :
2858204 install
Pascal Brisset authored
144 make -f Makefile.install PREFIX=$(PREFIX)
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
145
146 uninstall :
2858204 install
Pascal Brisset authored
147 make -f Makefile.install PREFIX=$(PREFIX) uninstall
582a0eb *** empty log message ***
Antoine Drouin authored
148
a4d0c64 *** empty log message ***
Pascal Brisset authored
149 DISTRO=etch
43b4247 "make deb" to build the debian package
Pascal Brisset authored
150 deb :
ed7ad0e x mode added to debian/rules
Pascal Brisset authored
151 chmod u+x debian/rules
582a0eb *** empty log message ***
Antoine Drouin authored
152 cp debian/control.$(DISTRO) debian/control
153 cp debian/changelog.$(DISTRO) debian/changelog
2858204 install
Pascal Brisset authored
154 dpkg-buildpackage $(DEBFLAGS) -Ivar -rfakeroot
155
156 fast_deb:
157 make deb OCAMLC=ocamlc.opt DEBFLAGS=-b
43b4247 "make deb" to build the debian package
Pascal Brisset authored
158
9907c23 This commit was generated by cvs2svn to compensate for changes in r2,
Antoine Drouin authored
159 clean:
2ef94f5 receive.ml -> server.ml, airprox.ml and aircraft.ml
Pascal Brisset authored
160 rm -fr dox
2858204 install
Pascal Brisset authored
161 rm -f $(MESSAGES_H) $(UBX_PROTOCOL_H) $(DL_PROTOCOL_H)
a921f4a *** empty log message ***
Antoine Drouin authored
162 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
163 find . -name '*~' -exec rm -f {} \;
164
5d6a84a *** empty log message ***
Pascal Brisset authored
165 dist_clean : clean
86ce680 *** empty log message ***
Antoine Drouin authored
166
167
168 test_all_example_airframes:
f488d1f *** empty log message ***
Pascal Brisset authored
169 $(MAKE) AIRCRAFT=TJ1 clean_ac fbw ap sim
170 $(MAKE) AIRCRAFT=MJ4 clean_ac ap
171 $(MAKE) AIRCRAFT=MJ5 clean_ac ap sim
172 $(MAKE) AIRCRAFT=Slayer clean_ac ap
173 $(MAKE) AIRCRAFT=Plaster clean_ac sim ac
174 $(MAKE) AIRCRAFT=Twin4 clean_ac ac
175 $(MAKE) AIRCRAFT=Tux clean_ac ac
176 $(MAKE) AIRCRAFT=Twin1 clean_ac sim ac
177 $(MAKE) AIRCRAFT=Twin2 clean_ac sim
178 $(MAKE) AIRCRAFT=MJ1 clean_ac ac
179 $(MAKE) AIRCRAFT=G91 clean_ac ap
Something went wrong with that request. Please try again.