From cf4aa6ae31d5edcfedf36097791ff533e74a097d Mon Sep 17 00:00:00 2001 From: schodet Date: Sun, 9 Oct 2005 20:05:43 +0000 Subject: Ajout du kit de survie. Voila, j'arrète là, à vous de remplir. --- i/marvin/src/Makefile.defs | 63 ++++++++++++++++++++++++++++++++++++++++++++++ i/marvin/src/README | 25 ++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 i/marvin/src/Makefile.defs create mode 100644 i/marvin/src/README (limited to 'i/marvin/src') diff --git a/i/marvin/src/Makefile.defs b/i/marvin/src/Makefile.defs new file mode 100644 index 0000000..8b0e709 --- /dev/null +++ b/i/marvin/src/Makefile.defs @@ -0,0 +1,63 @@ +# Flags. +CXXFLAGS = -Wall -g +CPPFLAGS = -MMD $(INCLUDES) +INCLUDES = -I$(SRCDIR) -I. + +# Tests de coverage (man gcov). +ifeq ($(COV),) +#CXXFLAGS += -O2 +else +CXXFLAGS += -fprofile-arcs -ftest-coverage +endif + +# Profiling (man gprof). +ifneq ($(PROF),) +CXXFLAGS += -pg +LDFLAGS += -pg +endif + + +# Messages sur une ligne. +CXXFLAGS += -fmessage-length=0 + +# Attention, il y a un problème de dépendences dans l'ordre des SUBDIRS à +# cause de la génération des règles. +SUBDIRS = + +LINK.o = $(CXX) $(LDFLAGS) $(TARGET_ARCH) +LEX = flex +YACC = bison + +VPATH = $(SUBDIRS:%=$(SRCDIR)/%) + +PROGRAMS = +LIBS = +EXTRA_CLEAN = + +all: build-all + +# Inclus les autres répertoires. +include $(SUBDIRS:%=$(SRCDIR)/%/Makefile.defs) + +OBJECTS = $(filter %.o,$(foreach PROGRAM,$(PROGRAMS),$($(PROGRAM)_OBJECTS))) + +build-all: $(PROGRAMS) + +# Régles. +%.cc: %.ll + $(LEX) $< + +%.cc: %.yy + $(YACC) -o $@ $< + +# Dépendances. +-include $(OBJECTS:%.o=%.d) + +# Ménage. +clean: + rm -f *.o *.d $(PROGRAMS) + rm -f *.bbg *.bb *.da *.gcov + rm -f gmon.out + rm -f $(EXTRA_CLEAN) + +.PHONY: all build-all clean diff --git a/i/marvin/src/README b/i/marvin/src/README new file mode 100644 index 0000000..90d7926 --- /dev/null +++ b/i/marvin/src/README @@ -0,0 +1,25 @@ +marvin - programme du robot 2006. + +Programme du concours du robot qui envois les balle en haut... et dans les +trous aussi. + + +Copyright (C) 2006 Efrei Robotique + +Robot APB Team/Efrei 2006. + Web: http://assos.efrei.fr/robot/ + Email: robot AT efrei DOT fr + +This program 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 of the License, or +(at your option) any later version. + +This program 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 this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- cgit v1.2.3