[GRASS-SVN] r40620 - in grass/trunk: . general/manage/lister
imagery/i.albedo imagery/i.biomass imagery/i.eb.eta
imagery/i.eb.evapfr imagery/i.eb.soilheatflux
imagery/i.emissivity imagery/i.evapo.time_integration
imagery/i.latlong imagery/i.modis.qc imagery/i.sunhours
imagery/i.vi include include/Make lib/bitmap lib/db/sqlp/test
lib/gis lib/iostream lib/raster lib/segment lib/vector/diglib
lib/vector/rtree lib/vector/transform raster/r.grow.distance
raster/r.in.arc raster/r.in.ascii raster/r.out.arc
raster/r.out.ascii raster/r.proj raster/r.terraflow
raster3d/r3.in.v5d raster3d/r3.out.v5d
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 22 09:19:25 EST 2010
Author: glynn
Date: 2010-01-22 09:19:24 -0500 (Fri, 22 Jan 2010)
New Revision: 40620
Modified:
grass/trunk/configure.in
grass/trunk/general/manage/lister/Makefile
grass/trunk/imagery/i.albedo/Makefile
grass/trunk/imagery/i.biomass/Makefile
grass/trunk/imagery/i.eb.eta/Makefile
grass/trunk/imagery/i.eb.evapfr/Makefile
grass/trunk/imagery/i.eb.soilheatflux/Makefile
grass/trunk/imagery/i.emissivity/Makefile
grass/trunk/imagery/i.evapo.time_integration/Makefile
grass/trunk/imagery/i.latlong/Makefile
grass/trunk/imagery/i.modis.qc/Makefile
grass/trunk/imagery/i.sunhours/Makefile
grass/trunk/imagery/i.vi/Makefile
grass/trunk/include/Make/Compile.make
grass/trunk/include/Make/Grass.make
grass/trunk/include/Make/Platform.make.in
grass/trunk/include/config.h.in
grass/trunk/lib/bitmap/Makefile
grass/trunk/lib/db/sqlp/test/Makefile
grass/trunk/lib/gis/Makefile
grass/trunk/lib/gis/seek.c
grass/trunk/lib/iostream/Makefile
grass/trunk/lib/raster/Makefile
grass/trunk/lib/segment/Makefile
grass/trunk/lib/vector/diglib/Makefile
grass/trunk/lib/vector/rtree/Makefile
grass/trunk/lib/vector/transform/Makefile
grass/trunk/raster/r.grow.distance/Makefile
grass/trunk/raster/r.in.arc/Makefile
grass/trunk/raster/r.in.ascii/Makefile
grass/trunk/raster/r.out.arc/Makefile
grass/trunk/raster/r.out.ascii/Makefile
grass/trunk/raster/r.proj/Makefile
grass/trunk/raster/r.terraflow/Makefile
grass/trunk/raster3d/r3.in.v5d/Makefile
grass/trunk/raster3d/r3.out.v5d/Makefile
Log:
Enable LFS globally
Define, use HAVE_FSEEKO
Makefile cleanup
Modified: grass/trunk/configure.in
===================================================================
--- grass/trunk/configure.in 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/configure.in 2010-01-22 14:19:24 UTC (rev 40620)
@@ -1730,7 +1730,7 @@
dnl AC_CHECK_FUNCS(fseeko ftello) from above.
dnl The test AC_HAVE_LARGEFILES will check whether ftello/fseeko
dnl are available in Large File mode
-dnl AC_FUNC_FSEEKO
+AC_FUNC_FSEEKO
AC_HAVE_LARGEFILES
USE_LARGEFILES=
Modified: grass/trunk/general/manage/lister/Makefile
===================================================================
--- grass/trunk/general/manage/lister/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/general/manage/lister/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -10,7 +10,7 @@
default: $(ETC)/lister/cell $(ETC)/lister/vector
$(ETC)/lister/%: $(OBJDIR)/%.o | $(ETC)/lister
- $(CC) $(LDFLAGS) -o $@ $< $(FMODE_OBJ) $(LIST) $(LIBES) $(MATHLIB) $(XDRLIB)
+ $(call linker)
$(ETC)/lister:
$(MKDIR) $@
Modified: grass/trunk/imagery/i.albedo/Makefile
===================================================================
--- grass/trunk/imagery/i.albedo/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/imagery/i.albedo/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/imagery/i.biomass/Makefile
===================================================================
--- grass/trunk/imagery/i.biomass/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/imagery/i.biomass/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/imagery/i.eb.eta/Makefile
===================================================================
--- grass/trunk/imagery/i.eb.eta/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/imagery/i.eb.eta/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/imagery/i.eb.evapfr/Makefile
===================================================================
--- grass/trunk/imagery/i.eb.evapfr/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/imagery/i.eb.evapfr/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/imagery/i.eb.soilheatflux/Makefile
===================================================================
--- grass/trunk/imagery/i.eb.soilheatflux/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/imagery/i.eb.soilheatflux/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/imagery/i.emissivity/Makefile
===================================================================
--- grass/trunk/imagery/i.emissivity/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/imagery/i.emissivity/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/imagery/i.evapo.time_integration/Makefile
===================================================================
--- grass/trunk/imagery/i.evapo.time_integration/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/imagery/i.evapo.time_integration/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/imagery/i.latlong/Makefile
===================================================================
--- grass/trunk/imagery/i.latlong/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/imagery/i.latlong/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -8,8 +8,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/imagery/i.modis.qc/Makefile
===================================================================
--- grass/trunk/imagery/i.modis.qc/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/imagery/i.modis.qc/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/imagery/i.sunhours/Makefile
===================================================================
--- grass/trunk/imagery/i.sunhours/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/imagery/i.sunhours/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -8,8 +8,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/imagery/i.vi/Makefile
===================================================================
--- grass/trunk/imagery/i.vi/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/imagery/i.vi/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/include/Make/Compile.make
===================================================================
--- grass/trunk/include/Make/Compile.make 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/include/Make/Compile.make 2010-01-22 14:19:24 UTC (rev 40620)
@@ -9,9 +9,9 @@
linker_cxx = $(call linker_x,$(CXX))
linker = $(call linker_x,$(LINK))
-compiler_x = $(1) $(2) $(EXTRA_CFLAGS) $(NLS_CFLAGS) $(DEFS) $(EXTRA_INC) $(INC) -o $@ -c $<
-compiler_c = $(call compiler_x,$(CC),$(CFLAGS) $($*_c_FLAGS))
-compiler_cxx = $(call compiler_x,$(CXX),$(CXXFLAGS) $($*_cc_FLAGS) $($*_cpp_FLAGS))
+compiler_x = $(1) $(2) $(LFS_CFLAGS) $(EXTRA_CFLAGS) $(NLS_CFLAGS) $(DEFS) $(EXTRA_INC) $(INC) -o $@ -c $<
+compiler_c = $(call compiler_x,$(CC),$(COMPILE_FLAGS_C) $($*_c_FLAGS))
+compiler_cxx = $(call compiler_x,$(CXX),$(COMPILE_FLAGS_CXX) $($*_cc_FLAGS) $($*_cpp_FLAGS) $($*_cxx_FLAGS))
compiler = $(call compiler_x,$(CC))
# default cc rules
Modified: grass/trunk/include/Make/Grass.make
===================================================================
--- grass/trunk/include/Make/Grass.make 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/include/Make/Grass.make 2010-01-22 14:19:24 UTC (rev 40620)
@@ -70,18 +70,16 @@
##################### other #############################################
-COMPILE_FLAGS = $(CPPFLAGS) $(CFLAGS1) $(INCLUDE_DIRS)
-COMPILE_FLAGS_CXX = $(CPPFLAGS) $(CXXFLAGS1) $(INCLUDE_DIRS)
+COMPILE_FLAGS_C = $(CPPFLAGS) $(CFLAGS) $(INCLUDE_DIRS) $(INC)
+COMPILE_FLAGS_CXX = $(CPPFLAGS) $(CXXFLAGS) $(INCLUDE_DIRS) $(INC)
# crude hack for vector LFS, LFS_FLAGS should be set by configure
ifdef USE_LARGEFILES
-VECT_LFS_FLAGS = -D_FILE_OFFSET_BITS=64
+LFS_CFLAGS = -D_FILE_OFFSET_BITS=64
endif
-CFLAGS = $(INC) $(COMPILE_FLAGS)
-CXXFLAGS = $(INC) $(COMPILE_FLAGS_CXX)
LDFLAGS = $(LIBPATH) $(LINK_FLAGS) $(LD_SEARCH_FLAGS) $(PQLIBPATH)
-VECT_CFLAGS = $(GDALCFLAGS) $(GEOSCFLAGS) $(VECT_LFS_FLAGS)
+VECT_CFLAGS = $(GDALCFLAGS) $(GEOSCFLAGS)
# Object with _fmode which must be linked to each executable on Windows
ifdef MINGW
Modified: grass/trunk/include/Make/Platform.make.in
===================================================================
--- grass/trunk/include/Make/Platform.make.in 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/include/Make/Platform.make.in 2010-01-22 14:19:24 UTC (rev 40620)
@@ -80,8 +80,8 @@
DEFAULT_LOCATION =
CPPFLAGS = @CPPFLAGS@
-CFLAGS1 = @CFLAGS@
-CXXFLAGS1 = @CXXFLAGS@
+CFLAGS = @CFLAGS@
+CXXFLAGS = @CXXFLAGS@
INCLUDE_DIRS = @INCLUDE_DIRS@
LINK_FLAGS = @LDFLAGS@
Modified: grass/trunk/include/config.h.in
===================================================================
--- grass/trunk/include/config.h.in 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/include/config.h.in 2010-01-22 14:19:24 UTC (rev 40620)
@@ -242,6 +242,9 @@
/* define if pthread.h exists */
#undef HAVE_PTHREAD_H
+/* define if fseeko() exists */
+#undef HAVE_FSEEKO
+
/*
* configuration information solely dependent on the above
* nothing below this point should need changing
Modified: grass/trunk/lib/bitmap/Makefile
===================================================================
--- grass/trunk/lib/bitmap/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/lib/bitmap/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -8,16 +8,12 @@
include $(MODULE_TOPDIR)/include/Make/Lib.make
-
default: lib
+$(OBJDIR)/main$(EXE): $(OBJDIR)/main.o $(BITMAPDEP) $(LINKMDEP)
+ $(call linker)
-#$(OBJ): #linkm.h
+$(OBJDIR)/smain$(EXE): $(OBJDIR)/smain.o $(BITMAPDEP) $(LINKMDEP)
+ $(call linker)
-main: main.o $(BITMAPLIB) $(LINKMLIB)
- $(CC) $(LDFLAGS) main.o $(BITMAPLIB) $(LINKMLIB) -o main
-
-smain: smain.o $(BITMAPLIB) $(LINKMLIB)
- $(CC) $(LDFLAGS) smain.o $(BITMAPLIB) $(LINKMLIB) -o smain
-
-#$(LINKMLIB): #
+$(OBJDIR)/main$(EXE) $(OBJDIR)/smain$(EXE): LIBES = $(BITMAPLIB) $(LINKMLIB)
Modified: grass/trunk/lib/db/sqlp/test/Makefile
===================================================================
--- grass/trunk/lib/db/sqlp/test/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/lib/db/sqlp/test/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -2,14 +2,13 @@
MODULE_TOPDIR = ../../../..
include $(MODULE_TOPDIR)/include/Make/Other.make
+include $(MODULE_TOPDIR)/include/Make/Compile.make
LIBES = $(SQLPLIB) $(DBMILIB) $(GISLIB) $(MATHLIB) $(ZLIBLIBPATH) $(ZLIB)
-EXTRA_CLEAN_FILES = sqlptest
+EXTRA_CLEAN_FILES = $(OBJDIR)/sqlptest$(EXE)
-default: sqlptest
+default: $(OBJDIR)/sqlptest$(EXE)
-
-sqlptest: sqlptest.c
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBES)
-
+$(OBJDIR)/sqlptest$(EXE): $(OBJDIR)/sqlptest.o
+ $(call linker)
Modified: grass/trunk/lib/gis/Makefile
===================================================================
--- grass/trunk/lib/gis/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/lib/gis/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -18,11 +18,6 @@
COLORSRC := $(filter-out colors/CVS,$(wildcard colors/[abcdefghijklmnopqrstuvwxyz]*))
COLORFILES := $(patsubst colors/%,$(ETC)/colors/%,$(COLORSRC))
-#compile if LFS Large File Support present:
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
-
default: lib $(FMODE_OBJ) $(DATAFILES) $(COLORFILES) $(ETC)/colors.desc $(ETC)/element_list
ifdef MINGW
Modified: grass/trunk/lib/gis/seek.c
===================================================================
--- grass/trunk/lib/gis/seek.c 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/lib/gis/seek.c 2010-01-22 14:19:24 UTC (rev 40620)
@@ -1,5 +1,4 @@
-#include <grass/config.h>
#include <stdio.h>
#include <sys/types.h>
#include <grass/gis.h>
@@ -7,7 +6,7 @@
off_t G_ftell(FILE *fp)
{
-#ifdef HAVE_LARGEFILES
+#ifdef HAVE_FSEEKO
return ftello(fp);
#else
return (off_t) ftell(fp);
@@ -16,7 +15,7 @@
void G_fseek(FILE *fp, off_t offset, int whence)
{
-#ifdef HAVE_LARGEFILES
+#ifdef HAVE_FSEEKO
if (fseeko(fp, offset, whence) != 0)
G_fatal_error(_("unable to seek"));
#else
Modified: grass/trunk/lib/iostream/Makefile
===================================================================
--- grass/trunk/lib/iostream/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/lib/iostream/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -4,9 +4,6 @@
include $(MODULE_TOPDIR)/include/Make/Lib.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
ifneq ($(strip $(CXX)),)
default: stlib
Modified: grass/trunk/lib/raster/Makefile
===================================================================
--- grass/trunk/lib/raster/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/lib/raster/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,11 +7,6 @@
include $(MODULE_TOPDIR)/include/Make/Lib.make
include $(MODULE_TOPDIR)/include/Make/Doxygen.make
-#compile if LFS Large File Support present:
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
-
ifneq ($(GDAL_LINK),)
EXTRA_CFLAGS += -DGDAL_LINK=1
EXTRA_INC += $(PROJINC) $(GDALCFLAGS)
Modified: grass/trunk/lib/segment/Makefile
===================================================================
--- grass/trunk/lib/segment/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/lib/segment/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -6,11 +6,6 @@
include $(MODULE_TOPDIR)/include/Make/Lib.make
include $(MODULE_TOPDIR)/include/Make/Doxygen.make
-#compile if LFS Large File Support present:
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
-
default: lib
#doxygen:
Modified: grass/trunk/lib/vector/diglib/Makefile
===================================================================
--- grass/trunk/lib/vector/diglib/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/lib/vector/diglib/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -19,15 +19,20 @@
TESTFILE = test32.ok
endif
-TEST = $(OBJDIR)/test
+TEST = $(OBJDIR)/test$(EXE)
default: lib
- $(MAKE) $(TEST)
+ @echo "==============TEST============="
+ $(MAKE) test
+test: $(OBJDIR)/test.tmp $(TESTFILE)
+ diff $(OBJDIR)/test.tmp $(TESTFILE)
+
+$(OBJDIR)/test.tmp: $(TEST)
+ cd $(OBJDIR) && $(call run_grass,./test)
+
# Test portable read/write functions
-$(OBJDIR)/test: test.c $(DIG2DEP)
- echo "==============TEST============="
- $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) $(INC) $(VECT_INC) -o $@ test.c $(DIG2LIB) $(RTREELIB) \
- $(GISLIB) $(DATETIMELIB) $(MATHLIB) $(XDRLIB)
- cd $(OBJDIR); $(LD_LIBRARY_PATH_VAR)="$($(LD_LIBRARY_PATH_VAR)):$(GISBASE)/lib" ./test; diff ./test.tmp ../$(TESTFILE)
+$(TEST): $(OBJDIR)/test.o $(DIG2DEP)
+ $(call linker)
+$(TEST): LIBES = $(DIG2LIB)
Modified: grass/trunk/lib/vector/rtree/Makefile
===================================================================
--- grass/trunk/lib/vector/rtree/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/lib/vector/rtree/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -4,12 +4,6 @@
include $(MODULE_TOPDIR)/include/Make/Lib.make
-
-#compile if LFS (Large File Support) present:
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS += -D_FILE_OFFSET_BITS=64
-endif
-
RTLINC = $(ARCH_INCDIR)/rtree
HEADERS := $(RTLINC)/card.h $(RTLINC)/index.h $(RTLINC)/split.h \
$(ARCH_INCDIR)/rtree.h
@@ -27,8 +21,3 @@
$(ARCH_INCDIR)/rtree.h: rtree.h
$(INSTALL_DATA) $< $@
-
-$(OBJDIR)/test: test.c
- $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(LDFLAGS) $(INC) -o $@ test.c $(RTREELIB) -lm
- cd $(OBJDIR) && ./test
-
Modified: grass/trunk/lib/vector/transform/Makefile
===================================================================
--- grass/trunk/lib/vector/transform/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/lib/vector/transform/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -5,11 +5,6 @@
include $(MODULE_TOPDIR)/include/Make/Lib.make
-#compile if LFS (Large File Support) present:
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS += -D_FILE_OFFSET_BITS=64
-endif
-
default: lib
Modified: grass/trunk/raster/r.grow.distance/Makefile
===================================================================
--- grass/trunk/raster/r.grow.distance/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/raster/r.grow.distance/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/raster/r.in.arc/Makefile
===================================================================
--- grass/trunk/raster/r.in.arc/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/raster/r.in.arc/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/raster/r.in.ascii/Makefile
===================================================================
--- grass/trunk/raster/r.in.ascii/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/raster/r.in.ascii/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/raster/r.out.arc/Makefile
===================================================================
--- grass/trunk/raster/r.out.arc/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/raster/r.out.arc/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/raster/r.out.ascii/Makefile
===================================================================
--- grass/trunk/raster/r.out.ascii/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/raster/r.out.ascii/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -7,8 +7,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/raster/r.proj/Makefile
===================================================================
--- grass/trunk/raster/r.proj/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/raster/r.proj/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -8,8 +8,5 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
-endif
default: cmd
Modified: grass/trunk/raster/r.terraflow/Makefile
===================================================================
--- grass/trunk/raster/r.terraflow/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/raster/r.terraflow/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -8,9 +8,6 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
EXTRA_CFLAGS = -DUSER=\"$(USER)\" -DNODATA_FIX -DELEV_FLOAT -Wno-sign-compare
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS += -D_FILE_OFFSET_BITS=64
-endif
LINK = $(CXX)
Modified: grass/trunk/raster3d/r3.in.v5d/Makefile
===================================================================
--- grass/trunk/raster3d/r3.in.v5d/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/raster3d/r3.in.v5d/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -5,11 +5,6 @@
#for Linux/x86 et al. (needs fix for MacOSX)
EXTRA_CFLAGS = -DLITTLE
-#compile if LFS Large File Support present:
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS += -D_FILE_OFFSET_BITS=64
-endif
-
LIBES = $(G3DLIB) $(GISLIB) $(MATHLIB)
DEPENDENCIES = $(G3DDEP) $(GISDEP)
Modified: grass/trunk/raster3d/r3.out.v5d/Makefile
===================================================================
--- grass/trunk/raster3d/r3.out.v5d/Makefile 2010-01-22 13:00:29 UTC (rev 40619)
+++ grass/trunk/raster3d/r3.out.v5d/Makefile 2010-01-22 14:19:24 UTC (rev 40620)
@@ -5,11 +5,6 @@
#for Linux/x86 et al. (needs fix for MacOSX)
EXTRA_CFLAGS = -DLITTLE
-#compile if LFS Large File Support present:
-ifneq ($(USE_LARGEFILES),)
- EXTRA_CFLAGS += -D_FILE_OFFSET_BITS=64
-endif
-
LIBES = $(G3DLIB) $(GISLIB) $(MATHLIB)
DEPENDENCIES = $(G3DDEP) $(GISDEP)
More information about the grass-commit
mailing list