Index: trunk/LMDZ.COMMON/makelmdz
===================================================================
--- trunk/LMDZ.COMMON/makelmdz	(revision 1076)
+++ trunk/LMDZ.COMMON/makelmdz	(revision 1107)
@@ -28,4 +28,5 @@
 scatterers=""
 dyn=""
+full=''
 
 # guess a default 'arch'
@@ -135,5 +136,5 @@
 [-filtre NOMFILTRE]        : use filtre from libf/NOMFILTRE (default: filtrez)
 [-link LINKS]              : additional links with other libraries
-[-fcm_path path]           : path to the fcm tool (default: tools/fcm/bin)
+[-full]                    : full (re-)compilation (from scratch)
 [-ext_src path]            : path to an additional set of routines to compile with the model
  -arch arch                : target architecture 
@@ -203,6 +204,6 @@
 	  LIB="$LIB $2" ; shift ; shift ;;
 
-      "-fcm_path")
-	  fcm_path=$2 ; shift ; shift ;;
+      "-full")
+	  full="full" ; shift ;;
 
       "-ext_src")
@@ -327,4 +328,14 @@
 fi
 #########
+
+# for Mars (but could be used by others as well), there is also "aeronomars"
+if [[ -d ${LIBFGCM}/aerono${physique} ]]
+then
+   INCLUDE="$INCLUDE -I${LIBFGCM}/aerono${physique}"
+   LIB="$LIB -l${LIBPREFIX}aerono$physique"
+   opt_dep="$opt_dep aerono$physique"
+   laeronomars="-l${LIBPREFIX}aeronomars"
+fi
+
 
 if [[ "$chimie" == "INCA" ]]
@@ -581,4 +592,12 @@
 cd $LMDGCM
 
+#cleanup for a full recompilation, if requested
+if [[ $full == "full" ]]
+then
+# remove makefile and $libo/*
+  cd $LMDGCM
+  \rm -f makefile
+  \rm -rf $LIBOGCM/*
+fi
 
 ########################################################################
@@ -743,4 +762,5 @@
 L_ADJNT=$adjnt \
 L_COSP="$lcosp" \
+L_AERONOMARS="$laeronomars" \
 L_CHIMIE="$libchimie" \
 LOCAL_DIR="$localdir"  \
@@ -774,4 +794,5 @@
 L_ADJNT="$adjnt" \
 L_COSP="$lcosp" \
+L_AERONOMARS="$laeronomars" \
 L_CHIMIE="$libchimie" \
 LOCAL_DIR="$localdir"  \
