Ignore:
Timestamp:
2010-05-06T21:23:54+12:00 (14 years ago)
Author:
ak19
Message:

Changes to makefiles to 1. incorporate USE_GDBM and USE_JDBM flags (and USE_SQLITE) in most places so that the DEFINES variable is set at all times. This is necessary to ensure that all classes that contain objects with gdbm and jdbm members are of a consistent size. Else we've had experience with Greenstone crashing with memory errors (to do with the similar ENABLE_indexer flags). 2. ENABLE_JDBM is now USE_JDBM. 3. Not everything works now. It still compiles the default way, but the disable-gdbm flag is causing trouble when compiling argdb in recpt since it uses that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/Makefile.in

    r16583 r22058  
    2525PACKAGE = @PACKAGE@
    2626VERSION = @VERSION@
    27  
     27
    2828SHELL = /bin/sh
    2929srcdir = @srcdir@
    3030subdir = lib
    3131VPATH = @srcdir@
    32  
     32
     33USE_GDBM = @USE_GDBM@
     34ifeq ($(USE_GDBM), 1)
     35GDBM_DEFINES = -DUSE_GDBM
     36else
     37GDBM_DEFINES =
     38endif
     39
     40USE_JDBM = @USE_JDBM@
     41ifeq ($(USE_JDBM), 1)
     42JDBM_DEFINES = -DUSE_JDBM
     43else
     44JDBM_DEFINES =
     45endif
     46
     47USE_SQLITE = @USE_SQLITE@
     48ifeq ($(USE_SQLITE), 1)
     49SQLITE_DEFINES = -DUSE_SQLITE
     50else
     51SQLITE_DEFINES =
     52endif
     53
    3354AR = ar
    3455CC = @CC@
     
    4061endif
    4162CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@ -fPIC
    42 DEFS = @DEFS@
     63DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
    4364RANLIB = @RANLIB@
    4465
     
    4869datadir = $(prefix)/share
    4970localedir = $(datadir)/locale
    50  
     71
    5172COMPILE = $(CC) -c $(DEFS) $(INCLUDES)  $(CFLAGS)
    5273CXXCOMPILE = $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS)
    53  
     74
    5475.SUFFIXES:
    5576.SUFFIXES: .c .o
     
    6384ANSI2KNR = @ANSI2KNR@
    6485o = .@U@o
    65  
     86
    6687.SUFFIXES: ._c ._o
    6788.c._c:
     
    7899
    79100INCLUDES = -I.. -I$(srcdir)
    80  
     101
    81102HEADERS = \
    82103    bitio_m_random.h   local_strings.h    lovinstem.h \
     
    128149maninstall:
    129150manuninstall:
    130  
     151
    131152dist: $(DISTFILES)
    132153    for file in $(DISTFILES); do \
     
    137158mostlyclean:
    138159    rm -f *.o *_.o
    139  
     160
    140161clean: mostlyclean
    141162    rm -f libmgpplib.a
    142  
     163
    143164distclean: clean
    144165    rm -f Makefile
    145  
     166
    146167maintainer-clean: distclean
    147168    @echo "This command is intended only for maintainers to use;"
     
    151172#Makefile: Makefile.in ../../../config.status
    152173#   cd ../../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
    153  
     174
    154175# Tell versions [3.59,3.63) of GNU make not to export all variables.
    155176# Otherwise a system limit (for SysV at least) may be exceeded.
Note: See TracChangeset for help on using the changeset viewer.