Skip to content

Commit

Permalink
[makefile] silence clean target and add missing Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierhattenberger authored and flixr committed Feb 23, 2013
1 parent 4462319 commit 737d7d3
Show file tree
Hide file tree
Showing 46 changed files with 175 additions and 48 deletions.
2 changes: 1 addition & 1 deletion conf/Makefile.avr
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ check_arch :
$(Q)if ($(UISP) $(UISP_FLAGS) 2>&1 | tr '[:upper:]' '[:lower:]' | grep $($(TARGET).MCU)); then : ; else echo "Wrong architecture (mcu0 vs mcu1 ?)"; exit 1; fi

avr_clean:
rm -rf $(OBJDIR)
$(Q)rm -rf $(OBJDIR)


#
Expand Down
5 changes: 4 additions & 1 deletion conf/gps/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@

# Quiet compilation
Q=@

CC=gcc
MODCFLAGS=-Wall

all: ublox_conf

clean:
rm -f core *.o ublox_conf
$(Q)rm -f core *.o ublox_conf

ublox_conf: ublox_conf.c Makefile
$(CC) $(MODCFLAGS) ublox_conf.c -o ublox_conf
Expand Down
2 changes: 1 addition & 1 deletion data/maps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TMPDIR ?= /tmp
all: $(PAPARAZZI_HOME)/conf/maps.xml

clean:
rm -f $(DATADIR)/maps.google.com
$(Q)rm -f $(DATADIR)/maps.google.com

$(DATADIR):
mkdir $(DATADIR)
Expand Down
5 changes: 4 additions & 1 deletion doc/ccc07/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@

# Quiet compilation
Q=@



slides : slides.tex $(PDF) $(ANIMS)
pdflatex slides

clean:
rm -f *~ *.log *.nav *.out *.snm *.toc *.aux slides.pdf
$(Q)rm -f *~ *.log *.nav *.out *.snm *.toc *.aux slides.pdf
7 changes: 5 additions & 2 deletions doc/pprz_algebra/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Quiet compilation
Q=@

doc_pprz_algebra.pdf: headfile.tex
pdflatex $<
bib:
bibtex headfile

clean:
rm -f *~ *.aux *.bbl *.blg *.log *.out *.toc *.dvi *.ps
find . -name '*~' -exec rm -f {} \;
$(Q)rm -f *~ *.aux *.bbl *.blg *.log *.out *.toc *.dvi *.ps
$(Q)find . -name '*~' -exec rm -f {} \;
7 changes: 5 additions & 2 deletions doc/pprz_geodetic/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Quiet compilation
Q=@

doc_pprz_algebra.pdf: headfile.tex
pdflatex $<
bib:
bibtex headfile

clean:
rm -f *~ *.aux *.bbl *.blg *.log *.out *.toc *.dvi *.ps
find . -name '*~' -exec rm -f {} \;
$(Q)rm -f *~ *.aux *.bbl *.blg *.log *.out *.toc *.dvi *.ps
$(Q)find . -name '*~' -exec rm -f {} \;
37 changes: 37 additions & 0 deletions sw/Makefile.ocaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Hey Emacs, this is a -*- makefile -*-
#
# Copyright (C) 2013 Gautier Hattenberger
#
# This file is part of paparazzi.
#
# paparazzi is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# paparazzi is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# 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.
#

# General ocaml compiling tools and pprz lib

OCAML = ocaml
OCAMLC = ocamlc
OCAMLOPT = ocamlopt
OCAMLDEP = ocamldep
OCAMLFIND = ocamlfind
LIBPPRZDIR = $(PAPARAZZI_SRC)/sw/lib/ocaml
INCLUDES = -I $(LIBPPRZDIR)
LIBPPRZCMA = $(LIBPPRZDIR)/lib-pprz.cma
LIBPPRZCMXA=$(LIBPPRZCMA:.cma=.cmxa)
XLIBPPRZCMA=$(LIBPPRZDIR)/xlib-pprz.cma
XLIBPPRZCMXA=$(XLIBPPRZCMA:.cma=.cmxa)
OCAMLDLL = -dllpath $(LIBPPRZDIR)
OCAMLXDLL = -dllpath $(LIBPPRZDIR)
5 changes: 4 additions & 1 deletion sw/airborne/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# Boston, MA 02111-1307, USA.
#

# Quiet compilation
Q=@


OBJDIR = $(PAPARAZZI_HOME)/var/$(AIRCRAFT)/$(TARGET)
VARINCLUDE=$(PAPARAZZI_HOME)/var/include
Expand Down Expand Up @@ -75,5 +78,5 @@ warn_conf :
@echo

clean :
rm -f *~ a.out *.elf
$(Q)rm -f *~ a.out *.elf
.PHONY: clean
5 changes: 4 additions & 1 deletion sw/airborne/arch/lpc21/lpcusb/examples/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Quiet compilation
Q=@

LIBNAME = ../libusbstack
APPNAME = main

Expand Down Expand Up @@ -41,7 +44,7 @@ crt.o: crt.s
$(CC) -c $(AFLAGS) -Wa,-ahlms=crt.lst crt.s -o crt.o

clean:
rm -f *.hex *.elf *.o *.lst *.dmp *.map .depend
$(Q)rm -f *.hex *.elf *.o *.lst *.dmp *.map .depend

# recompile if the Makefile changes
$(OBJS): Makefile
Expand Down
9 changes: 6 additions & 3 deletions sw/airborne/arch/lpc21/test/bootloader/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Quiet compilation
Q=@

#PROC_AP PROC_FBW PROC_TINY PROC_TINYJ
#PROC = TINYJ
ALLFLAGS = -DPROC_$(PROC)
Expand Down Expand Up @@ -37,9 +40,9 @@ LIBOBJS = usbhw_lpc.o usbcontrol.o usbstdreq.o usbinit.o usbdescrip.o
all: lib app app_ram

clean:
$(RM) -f $(LIBNAME).a $(LIBOBJS)
$(RM) -f $(APPNAME).hex $(APPNAME).elf $(OBJS) *.lst $(APPNAME).dmp $(APPNAME).map
$(RM) -f $(APPNAME_RAM).hex $(APPNAME_RAM).elf $(APPNAME_RAM).dmp $(APPNAME_RAM).map
$(Q)$(RM) -f $(LIBNAME).a $(LIBOBJS)
$(Q)$(RM) -f $(APPNAME).hex $(APPNAME).elf $(OBJS) *.lst $(APPNAME).dmp $(APPNAME).map
$(Q)$(RM) -f $(APPNAME_RAM).hex $(APPNAME_RAM).elf $(APPNAME_RAM).dmp $(APPNAME_RAM).map

# build lib
lib: $(LIBOBJS)
Expand Down
5 changes: 4 additions & 1 deletion sw/airborne/booz/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# Boston, MA 02111-1307, USA.
##

# Quiet compilation
Q=@

CC = gcc
CFLAGS = -std=gnu99 -Wall -I.. -I../.. -I../../test/ -I../../../include -I../../booz_priv
LDFLAGS = -lm
Expand Down Expand Up @@ -51,4 +54,4 @@ test_att_ref: test_att_ref.c ../stabilization/booz_stabilization_attitude_ref_qu


clean:
rm -f *~ test_att_ref
$(Q)rm -f *~ test_att_ref
5 changes: 4 additions & 1 deletion sw/airborne/firmwares/non_ap/led_flasher/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

# Quiet compilation
Q=@

MCU = attiny25

PROG = dragon_isp
Expand All @@ -19,7 +22,7 @@ SOURCES = blitzer.c
all: $(APPNAME)

clean:
$(RM) -f core $(APPNAME).o $(APPNAME) $(APPNAME).elf $(APPNAME).hex
$(Q)$(RM) -f core $(APPNAME).o $(APPNAME) $(APPNAME).elf $(APPNAME).hex

app: $(APPNAME)

Expand Down
5 changes: 4 additions & 1 deletion sw/airborne/firmwares/vor/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Quiet compilation
Q=@

all:

CFLAGS = -Wall -I..
Expand Down Expand Up @@ -25,7 +28,7 @@ play_audio: sndfile-play.c
gcc $(CFLAGS) $^ -o $@ $(LDFLAGS) -lsndfile -lasound

clean:
rm -f i86_vor_test_float_demod \
$(Q)rm -f i86_vor_test_float_demod \
i86_vor_test_int_demod \
i86_vor_test_filters \
*~ \#*
5 changes: 4 additions & 1 deletion sw/airborne/fms/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

# Quiet compilation
Q=@

CFLAGS = -Wall $(shell pkg-config --cflags glib-2.0) -g
LDFLAGS = $(shell pkg-config --libs glib-2.0)

Expand Down Expand Up @@ -49,4 +52,4 @@ onboard_logger: onboard_logger.c
$(CC) $(CFLAGS) -o $@ $^ -lpcap

clean:
rm -f *~ fms test_telemetry
$(Q)rm -f *~ fms test_telemetry
5 changes: 4 additions & 1 deletion sw/airborne/fms/libeknav/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

# Quiet compilation
Q=@

raw_log_to_ascii: raw_log_to_ascii.c
gcc -I../../ -I../../../include -std=gnu99 -Wall raw_log_to_ascii.c -DOVERO_LINK_MSG_UP=AutopilotMessageVIUp -DOVERO_LINK_MSG_DOWN=AutopilotMessageVIDown -o raw_log_to_ascii

Expand Down Expand Up @@ -26,4 +29,4 @@ run_filter_on_log: ./libeknav_from_log.cpp $(LIBEKNAV_SRCS) ../../math/pprz_geod
g++ -I/usr/include/eigen2 -I../.. -I../../../include -I../../../../var/FY $(eknavOnLogFlags) -o $@ $^

clean:
-rm -f *.o *~ *.d
$(Q)rm -f *.o *~ *.d
5 changes: 4 additions & 1 deletion sw/airborne/math/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Build shared pprz math library
#

# Quiet compilation
Q=@

CC= gcc
CFLAGS= -fpic
INCLUDES= -I$(PAPARAZZI_SRC)/sw/include -I$(PAPARAZZI_SRC)/sw/airborne
Expand Down Expand Up @@ -43,5 +46,5 @@ $(BUILDDIR)/%.o: %.c
$(CC) -c $< $(CFLAGS) $(INCLUDES) -o $@

clean:
rm -f $(BUILDDIR)/*.o $(BUILDDIR)/$(LIBNAME).so
$(Q)rm -f $(BUILDDIR)/*.o $(BUILDDIR)/$(LIBNAME).so

5 changes: 4 additions & 1 deletion sw/airborne/test/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

# Quiet compilation
Q=@


CC = gcc
CFLAGS = -std=c99 -I.. -I../../include -I../booz -I../../booz -Wall
Expand Down Expand Up @@ -33,4 +36,4 @@ test_fmul: test_fmul.c
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

clean:
rm -f *~ test_geodetic test_algebra *.exe
$(Q)rm -f *~ test_geodetic test_algebra *.exe
2 changes: 1 addition & 1 deletion sw/ground_segment/cockpit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ compass : compass.ml


clean:
rm -f *~* *.cm* *.o *.out *.opt map2d gcs .depend gtk_strip.ml gtk_setting_time.ml gtk_save_settings.ml compass ant_track ant_track_pmm test_enose actuators
$(Q)rm -f *~* *.cm* *.o *.out *.opt map2d gcs .depend gtk_strip.ml gtk_setting_time.ml gtk_save_settings.ml compass ant_track ant_track_pmm test_enose actuators

.PHONY: all opt clean

Expand Down
2 changes: 1 addition & 1 deletion sw/ground_segment/joystick/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ sdl_stick.so : sdl_stick.o ml_sdl_stick.o
$(Q)$(OCAMLFIND) $(OCAMLC) $(OCAMLINCLUDES) -c -package $(PKGCOMMON) $<

clean:
rm -f *~ core *.o *.bak .depend test*stick *.cmo *.cmi input2ivy
$(Q)rm -f *~ core *.o *.bak .depend test*stick *.cmo *.cmi input2ivy

.PHONY: all clean

Expand Down
5 changes: 4 additions & 1 deletion sw/ground_segment/lpc21iap/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#MS VC: cl lpc21iap.c elf.c lpcusb.c libusb.lib

# Quiet compilation
Q=@

LIBNAME = usb
APPNAME = lpc21iap

Expand Down Expand Up @@ -38,7 +41,7 @@ SOURCES = lpc21iap.c elf.c lpcusb.c
all: $(APPNAME)

clean:
$(RM) -f core $(APPNAME).o $(APPNAME) $(APPNAME).obj $(APPNAME).exe
$(Q)$(RM) -f core $(APPNAME).o $(APPNAME) $(APPNAME).obj $(APPNAME).exe

app: $(APPNAME)

Expand Down
2 changes: 1 addition & 1 deletion sw/ground_segment/misc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ endif
all: davis2ivy kestrel2ivy

clean:
rm -f *.o davis2ivy kestrel2ivy
$(Q)rm -f *.o davis2ivy kestrel2ivy

davis2ivy: davis2ivy.o
$(Q)$(CC) -o davis2ivy davis2ivy.o $(LIBRARYS) -livy
Expand Down
5 changes: 4 additions & 1 deletion sw/ground_segment/tmtc/GSM/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Quiet compilation
Q=@

all: SMS_GS

SMS_GS: SMS_Ground_UDtest_final.c
gcc -g -O2 -Wall `pkg-config --cflags glib-2.0 gtk+-2.0` -L/usr/lib -lglibivy -o SMS_GS SMS_Ground_UDtest_final.c `pkg-config --libs glib-2.0 gtk+-2.0` -lglibivy

clean:
rm -f SMS_GS
$(Q)rm -f SMS_GS
2 changes: 1 addition & 1 deletion sw/ground_segment/tmtc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ all: link server messages dia diadec $(VAR)/boa.conf ivy_tcp_aircraft ivy_tcp_co
#settings

clean:
rm -f link server messages settings dia diadec *.bak *~ core *.o .depend *.opt *.out *.cm* ivy_tcp_aircraft ivy_tcp_controller broadcaster ivy2udp ivy_serial_bridge gpsd2ivy c_ivy_client_example_1 c_ivy_client_example_2 c_ivy_client_example_3
$(Q)rm -f link server messages settings dia diadec *.bak *~ core *.o .depend *.opt *.out *.cm* ivy_tcp_aircraft ivy_tcp_controller broadcaster ivy2udp ivy_serial_bridge gpsd2ivy c_ivy_client_example_1 c_ivy_client_example_2 c_ivy_client_example_3


$(VAR)/boa.conf :$(CONF)/boa.conf
Expand Down
2 changes: 1 addition & 1 deletion sw/in_progress/button/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ MORE_FLAGS = -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/incl
MORE_CFLAGS = -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -I. -I. -I.. -g -O2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include

clean:
rm -f *.opt *.out *~ core *.o *.bak .depend *.cm* panic
$(Q)rm -f *.opt *.out *~ core *.o *.bak .depend *.cm* panic

#FGFS_PREFIX=/home/poine/local
FGFS_PREFIX=/home/poine/flightgear
Expand Down
2 changes: 1 addition & 1 deletion sw/in_progress/fdm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ fms_steps_attitude: fms_steps_attitude.c


clean:
rm -f *~ core *.o *.bak .depend fdm_step fms_steps_attitude
$(Q)rm -f *~ core *.o *.bak .depend fdm_step fms_steps_attitude
5 changes: 4 additions & 1 deletion sw/in_progress/inertial/C/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

# Quiet compilation
Q=@

CFLAGS = -g -Wall `pkg-config glib-2.0 --cflags`
LDFLAGS = `pkg-config glib-2.0 --libs` -lm

Expand Down Expand Up @@ -127,4 +130,4 @@ test_ukf: $(OBJS_TEST_UKF)


clean:
rm -f *~ *.o tilt_ukf tilt_ekf tilt_fast_ekf ahrs_euler_ekf ahrs_quat_ukf ahrs_quat_ekf ahrs_quat_fast_ekf test_matrix test_ukf
$(Q)rm -f *~ *.o tilt_ukf tilt_ekf tilt_fast_ekf ahrs_euler_ekf ahrs_quat_ukf ahrs_quat_ekf ahrs_quat_fast_ekf test_matrix test_ukf
5 changes: 4 additions & 1 deletion sw/in_progress/ir_calibration/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

# Quiet compilation
Q=@


CC = gcc
CFLAGS=-g -O2 -Wall `pkg-config gtk+-2.0 --cflags`
Expand All @@ -8,4 +11,4 @@ ir_calib : main.c calibrator.c gui.c
$(CC) $(CFLAGS) -g -o $@ $^ $(LDFLAGS)

clean:
rm -f *~ ir_calib
$(Q)rm -f *~ ir_calib
Loading

0 comments on commit 737d7d3

Please sign in to comment.