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/src/text/Makefile.in

    r16583 r22058  
    2424PACKAGE = @PACKAGE@
    2525VERSION = @VERSION@
    26  
     26
    2727SHELL = /bin/sh
    2828VPATH = @srcdir@
     
    3535transform = @program_transform_name@
    3636
     37USE_GDBM = @USE_GDBM@
     38ifeq ($(USE_GDBM), 1)
     39GDBM_DEFINES = -DUSE_GDBM
     40else
     41GDBM_DEFINES =
     42endif
     43
     44USE_JDBM = @USE_JDBM@
     45ifeq ($(USE_JDBM), 1)
     46JDBM_DEFINES = -DUSE_JDBM
     47else
     48JDBM_DEFINES =
     49endif
     50
     51USE_SQLITE = @USE_SQLITE@
     52ifeq ($(USE_SQLITE), 1)
     53SQLITE_DEFINES = -DUSE_SQLITE
     54else
     55SQLITE_DEFINES =
     56endif
     57
    3758AR = ar
    3859CC = @CC@
    3960CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -fpic
    40 DEFS = @DEFS@
     61DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
    4162RANLIB = @RANLIB@
    4263INSTALL = @INSTALL@
     
    5980localedir = $(datadir)/locale
    6081mandir = $(prefix)/man/man1
    61  
     82
    6283COMPILE = $(CC) -c $(DEFS) $(TREC_MODE) $(READLINE) $(INCLUDES) $(CFLAGS)
    6384LINK = $(CC) $(LDFLAGS) -o $@
     
    6788.c.o:
    6889    $(COMPILE) $<
    69  
     90
    7091
    7192ANSI2KNR = @ANSI2KNR@
    7293o = .@U@o
    73  
     94
    7495.SUFFIXES: ._c ._o
    7596.c._c:
     
    84105    @rm -f _$*.c
    85106    @ln $*._c _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
    86  
     107
    87108INCLUDES = -I../../../.. -I../.. -I../../lib -I.
    88109
     
    360381mostlyclean:
    361382    rm -f *$o _*.c _*.o *._c *._o core core.*
    362  
     383
    363384clean: mostlyclean
    364385    rm -f $(EXEC) libmgtext.a libmgpass.a
    365  
     386
    366387distclean: clean
    367388    rm -f ansi2knr
    368389    rm -f Makefile
    369  
     390
    370391maintainer-clean: distclean
    371392    @echo "This command is intended only for maintainers to use;"
    372393    @echo "rebuilding the deleted files may require special tools."
    373  
     394
    374395dist: $(DISTFILES)
    375396    for file in $(DISTFILES); do \
     
    377398      || cp -p $(srcdir)/$$file $(distdir); \
    378399    done
    379  
     400
    380401# Tell versions [3.59,3.63) of GNU make not to export all variables.
    381402# Otherwise a system limit (for SysV at least) may be exc
Note: See TracChangeset for help on using the changeset viewer.