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/mg/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@
    3556CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -fpic
    36 DEFS = @DEFS@
     57DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
    3758RANLIB = @RANLIB@
    3859
     
    4364##########################################
    4465
    45  
     66
    4667prefix = @prefix@
    4768datadir = $(prefix)/share
    4869localedir = $(datadir)/locale
    49  
     70
    5071COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
    51  
     72
    5273.SUFFIXES:
    5374.SUFFIXES: .c .o
     
    5778ANSI2KNR = @ANSI2KNR@
    5879o = .@U@o
    59  
     80
    6081.SUFFIXES: ._c ._o
    6182.c._c:
     
    7192    @ln $*._c _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
    7293
    73  
     94
    7495INCLUDES = -I../../.. -I.. -I$(srcdir)
    75  
     96
    7697HEADERS = \
    7798    bitio_m_random.h   filestats.h        local_strings.h    lovinstem.h \
     
    123144
    124145DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
    125  
     146
    126147all : libmglib.a gsdllibmg.a
    127148
     
    137158    $(AR) cru gsdllibmg.a $(LIB_OBJECTS)
    138159    $(RANLIB) gsdllibmg.a
    139  
     160
    140161
    141162install:
     
    146167maninstall:
    147168manuninstall:
    148  
     169
    149170dist: $(DISTFILES)
    150171    for file in $(DISTFILES); do \
     
    155176mostlyclean:
    156177    rm -f *.o *_.o
    157  
     178
    158179clean: mostlyclean
    159180    rm -f libmglib.a gsdllibmg.a
    160  
     181
    161182distclean: clean
    162183    rm -f Makefile
    163  
     184
    164185maintainer-clean: distclean
    165186    @echo "This command is intended only for maintainers to use;"
     
    168189#Makefile: Makefile.in ../../../config.status
    169190#   cd ../../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
    170  
     191
    171192# Tell versions [3.59,3.63) of GNU make not to export all variables.
    172193# Otherwise a system limit (for SysV at least) may be exceeded.
Note: See TracChangeset for help on using the changeset viewer.