nel-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nel] GNU/Linux patches + ccache


From: Loic Dachary
Subject: [Nel] GNU/Linux patches + ccache
Date: Mon, 15 Apr 2002 13:35:40 +0200

        Hi,

        Here is a small patch to compile nel/nelns/snowballs under
GNU/Linux with today's CVS. 

        - nel/src/3d/trav_scene.cpp has a minor #if lossage
        - nel/src/3d/Makefile.am has its usual load of forgoten files ;-)
        - Autodetection of ccache added in configure.in 

        If you don't know ccache yet, you *want* to use it. Cedric Valignat
pointed me to this incredibly useful utility. It basically caches object
files for the compiler. nel is rather long to compile and you'll speed
compilation to an order of magnitude using ccache. But only after the
first compilation, of course ;-) Needless to say that when packaging
a large piece of software it boosts your productivity to the max.

        Cheers,

--- nelns-0.3.20020415.orig/configure.in
+++ nelns-0.3.20020415/configure.in
@@ -42,6 +42,11 @@
 
 AC_PROG_INSTALL
 
+AC_PATH_PROG(CCACHE, ccache)
+if test "$CCACHE"
+then
+       CXX="ccache $CXX"
+fi
 
 dnl ====================================================================
 dnl Configure Settings
--- snowballs-0.2.20020415.orig/configure.in
+++ snowballs-0.2.20020415/configure.in
@@ -63,6 +63,11 @@
 
 AC_PROG_INSTALL
 
+AC_PATH_PROG(CCACHE, ccache)
+if test "$CCACHE"
+then
+       CXX="ccache $CXX"
+fi
 
 dnl ====================================================================
 dnl Configure Settings
--- nel-0.3.20020415.orig/configure.in
+++ nel-0.3.20020415/configure.in
@@ -146,6 +146,11 @@
 
 AC_PROG_INSTALL
 
+AC_PATH_PROG(CCACHE, ccache)
+if test "$CCACHE"
+then
+       CXX="ccache $CXX"
+fi
 
 dnl ====================================================================
 dnl Configure Settings
--- nel-0.3.20020415.orig/src/3d/Makefile.am
+++ nel-0.3.20020415/src/3d/Makefile.am
@@ -210,6 +210,8 @@
                        particle_system_sound_user.cpp                  \
                        patch.cpp                                       \
                        patch.h                                         \
+                       patchdlm_context.cpp                            \
+                       patchdlm_context.h                              \
                        patchuv_locator.cpp                             \
                        patchuv_locator.h                               \
                        patch_lightmap.cpp                              \
@@ -379,6 +381,8 @@
                        texture_bump.h                                  \
                        texture_cube.cpp                                \
                        texture_cube.h                                  \
+                       texture_dlm.cpp                                 \
+                       texture_dlm.h                                   \
                        texture_far.cpp                                 \
                        texture_far.h                                   \
                        texture_file.cpp                                \
--- nel-0.3.20020415.orig/src/3d/trav_scene.cpp
+++ nel-0.3.20020415/src/3d/trav_scene.cpp
@@ -23,9 +23,6 @@
  * MA 02111-1307, USA.
  */
 
-#ifndef NL_TRAV_SCENE_H
-#define NL_TRAV_SCENE_H
-
 #include "std3d.h"
 
 #include "3d/trav_scene.h"

-- 
Loic   Dachary         http://www.dachary.org/  address@hidden
12 bd  Magenta         http://www.senga.org/      address@hidden
75010    Paris         T: 33 1 42 45 07 97          address@hidden
        GPG Public Key: http://www.dachary.org/loic/gpg.txt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]