Changeset 3929


Ignore:
Timestamp:
2003-03-19T15:45:11+12:00 (21 years ago)
Author:
mdewsnip
Message:

Modified to be more independent of GS2.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/indexers/mgpp/lib/WIN32.MAK

    r3365 r3929  
    11###########################################################################
    22#
    3 # win32 makefile -- mgpp\text
     3# win32 makefile -- mgpp\lib
    44# A component of the Greenstone digital library software
    55# from the New Zealand Digital Library Project at the
    66# University of Waikato, New Zealand.
    77#
    8 # Copyright (C) 2000  The New Zealand Digital Library Project
     8# Copyright (C) 1999  The New Zealand Digital Library Project
    99#
    1010#
     
    2525###########################################################################
    2626
    27 GSDLHOME = ..\..\..
    28 USE_STLPORT = 0
     27MGPPHOME = ..
    2928
    30 STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
     29AR = lib
     30CC = cl
     31CPPFLAGS =
    3132
    32 CC = cl
    33 CPPFLAGS =
    34 DEFS = -DSHORT_SUFFIX -DSILENT -DHAVE_CONFIG_H -D__WIN32__
    35 INCLUDES = -I"$(GSDLHOME)"
    36 !IF $(USE_STLPORT)
    37 DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
    38 INCLUDES = $(INCLUDES) -I$(STLPATH)
    39 !ENDIF
     33DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -DSHORT_SUFFIX
     34INCLUDES = -I"." -I"$(MGPPHOME)"
    4035
    41 LDFLAGS =
    42 
    43 LIBS =
    44 
    45 COMPILE = $(CC) -c $(DEFS) $(INCLUDES)
    46 LINK = $(CC) $(LDFLAGS)
     36COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS)
    4737
    4838.SUFFIXES:
    49 .SUFFIXES: .c .obj .cpp
     39.SUFFIXES: .c .cpp .obj
    5040.c.obj:
    5141    $(COMPILE) $<
     
    5343    $(COMPILE) $<
    5444
     45ANSI2KNR =
    5546o = .obj
    5647
     
    6152    bitio_m.h          huffman.h  \
    6253    bitio_m_mem.h      perf_hash.h \
    63     bitio_m_mems.h     getopt_old.h \
     54    bitio_m_mems.h      \
    6455    pathmax.h          getpagesize.h      sysfuncs.h         bitio_m_abstract.h  \
    6556    random.h           simplefrenchstem.h unitool.h      longlong.h \
    66     non_ansi.h
     57    non_ansi.h         getopt_old.h       win32in.h
     58
    6759
    6860SOURCES = \
     
    7567    ftruncate.cpp     strcasecmp.cpp    random.cpp \
    7668    simplefrenchstem.cpp                unitool.cpp       bitio_m_random.cpp \
    77     bitio_m_abstract.cpp getopt_old.c
     69    bitio_m_abstract.cpp                getopt_old.c      win32in.c
     70# memlib.cpp removed
     71
    7872
    7973OBJECTS =  mgheap$o   \
     
    8478    xmalloc$o         bitio_m_random$o  bitio_m_abstract$o \
    8579     random$o          simplefrenchstem$o \
    86     unitool$o  win32in$o getopt_old$o
     80    unitool$o         getopt_old$o      win32in$o
    8781
    88 all : libmg.lib
     82 
     83DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
     84 
     85all : libmgpp.lib
    8986
    90 libmg.lib: $(OBJECTS)
    91     if EXIST libmg.lib del libmg.lib
    92     lib /out:libmg.lib $(OBJECTS)
     87libmgpp.lib : $(OBJECTS)
     88    if EXIST libmgpp.lib del libmgpp.lib
     89    $(AR) /out:libmgpp.lib $(OBJECTS)
    9390
     91$(OBJECTS): "$(MGPPHOME)\win32cfg.h"
     92
     93install:
    9494clean:
    9595    del *$o
    96     del libmg.lib
    97 
    98 install:
     96    del libmgpp.lib
  • trunk/indexers/mgpp/text/WIN32.MAK

    r3365 r3929  
    11###########################################################################
    22#
    3 # win32 makefile -- mgpp\text
     3# win32 makefile -- mgpp\lib
    44# A component of the Greenstone digital library software
    55# from the New Zealand Digital Library Project at the
    66# University of Waikato, New Zealand.
    77#
    8 # Copyright (C) 2000  The New Zealand Digital Library Project
     8# Copyright (C) 1999  The New Zealand Digital Library Project
    99#
    1010#
     
    2525###########################################################################
    2626
    27 GSDLHOME = ..\..\..
    28 USE_STLPORT = 0
     27MGPPHOME = ..
    2928
    30 STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
    31 
     29AR = lib
    3230CC = cl
    3331CPPFLAGS = -GX
    34 DEFS = -DSHORT_SUFFIX -DSILENT -DHAVE_CONFIG_H -D__WIN32__ -D__STDC__ -D__GNU_LIBRARY__ -D__MSDOS__
    35 INCLUDES = -I"$(GSDLHOME)\src\mgpp\lib" -I"$(GSDLHOME)"
    36 !IF $(USE_STLPORT)
    37 DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
    38 INCLUDES = $(INCLUDES) -I$(STLPATH)
    39 !ENDIF
     32LINK = cl
    4033
    41 LDFLAGS =
     34DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -DSHORT_SUFFIX -D__STDC__ -D__GNU_LIBRARY__ -D__MSDOS__
     35INCLUDES = -I"." -I"$(MGPPHOME)" -I"$(MGPPHOME)\lib"
     36LIBS = $(MGPPHOME)\lib\libmgpp.lib
    4237
    43 LIBS = "$(GSDLHOME)\src\mgpp\lib\libmg.lib"
    44 
    45 COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
    46 LINK = $(CC) $(LDFLAGS)
     38COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS)
    4739
    4840.SUFFIXES:
    49 .SUFFIXES: .c .obj .cpp
     41.SUFFIXES: .c .cpp .obj
    5042.c.obj:
    5143    $(COMPILE) $<
     
    5345    $(COMPILE) $<
    5446
     47ANSI2KNR =
    5548o = .obj
    56 e = .exe
     49
     50HEADERS = \
     51  FIvfLevelInfo.h     TextEl.h            hash.h              stemmer.h  \
     52  FText.h             TextGet.h           invf.h              text.h     \
     53  FileBuf.h           UCArray.h           locallib.h          words.h    \
     54  FragLevelConvert.h  WordData.h          mg.h                           \
     55  IndexData.h         build.h             mg_errors.h                    \
     56  TagInfo.h           comp_dict.h         mg_files.h          Weights.h  \
     57  MGQuery.h           Terms.h             QueryLex.h          QueryParser.h \
     58  GSDLQueryLex.h    GSDLQueryParser.h
     59
    5760
    5861SOURCES = \
     
    7376
    7477
    75 HEADERS = \
    76   FIvfLevelInfo.h     TextEl.h            hash.h              stemmer.h  \
    77   FText.h             TextGet.h           invf.h              text.h     \
    78   FileBuf.h           UCArray.h           locallib.h          words.h    \
    79   FragLevelConvert.h  WordData.h          mg.h                           \
    80   IndexData.h         build.h             mg_errors.h                    \
    81   TagInfo.h           comp_dict.h         mg_files.h          Weights.h  \
    82   MGQuery.h           Terms.h             QueryLex.h          QueryParser.h \
    83   GSDLQueryLex.h    GSDLQueryParser.h
     78EXEC          = mgpp_passes mgpp_decompress_text mgpp_perf_hash_build \
     79                mgpp_invf_dump mgpp_weights_build mgpp_invf_dict mgpp_stem_idx \
     80                mgpp_invf_dict_dump mgpp_compression_dict mgpp_fast_comp_dict \
     81                QueryTester Queryer
    8482
    85 EXEC          = mgpp_passes$e mgpp_decompress_text$e mgpp_perf_hash_build$e \
    86                 mgpp_invf_dump$e mgpp_weights_build$e mgpp_invf_dict$e mgpp_stem_idx$e \
    87                 mgpp_invf_dict_dump$e mgpp_compression_dict$e mgpp_fast_comp_dict$e \
    88                 QueryTester$e Queryer$e
     83DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
     84 
     85all : $(EXEC) libtextin.lib
    8986
    90 all:    $(EXEC) libtextin.lib
    9187
    9288PASSES_OBJS = \
     
    9793        FText$o text$o FIvfLevelInfo$o
    9894
    99 mgpp_passes$e: $(PASSES_OBJS)
     95mgpp_passes: $(PASSES_OBJS)
    10096    $(LINK) $(PASSES_OBJS) $(LIBS)
    101 
    10297
    10398QUERYER_OBJS = Queryer$o mg_files$o mg_errors$o locallib$o invf$o UCArray$o \
     
    106101               GSDLQueryParser$o GSDLQueryLex$o words$o
    107102
    108 Queryer$e: $(QUERYER_OBJS)
     103Queryer: $(QUERYER_OBJS)
    109104    $(LINK) $(QUERYER_OBJS) $(LIBS)
    110105
     
    113108                    IndexData$o stemmer$o Weights$o
    114109
    115 QueryTester$e: $(QUERY_TESTER_OBJS)
     110QueryTester: $(QUERY_TESTER_OBJS)
    116111    $(LINK) $(QUERY_TESTER_OBJS) $(LIBS)
    117112
     
    119114                     FIvfLevelInfo$o FragLevelConvert$o
    120115
    121 mgpp_weights_build$e: $(WEIGHTS_BUILD_OBJS)
     116mgpp_weights_build: $(WEIGHTS_BUILD_OBJS)
    122117    $(LINK) $(WEIGHTS_BUILD_OBJS) $(LIBS)
    123118
    124119COMP_DICT_OBJS = mgpp_compression_dict$o mg_files$o locallib$o
    125120
    126 mgpp_compression_dict$e: $(COMP_DICT_OBJS)
     121mgpp_compression_dict: $(COMP_DICT_OBJS)
    127122    $(LINK) $(COMP_DICT_OBJS) $(LIBS)
    128123
    129124FAST_COMP_OBJS = mgpp_fast_comp_dict$o mg_files$o locallib$o
    130125
    131 mgpp_fast_comp_dict$e: $(FAST_COMP_OBJS)
     126mgpp_fast_comp_dict: $(FAST_COMP_OBJS)
    132127    $(LINK) $(FAST_COMP_OBJS) $(LIBS)
    133128
    134129INVF_DUMP_OBJS = mgpp_invf_dump$o locallib$o mg_files$o invf$o UCArray$o
    135130
    136 mgpp_invf_dump$e: $(INVF_DUMP_OBJS)
     131mgpp_invf_dump: $(INVF_DUMP_OBJS)
    137132    $(LINK) $(INVF_DUMP_OBJS) $(LIBS)
    138133
    139134INVF_DICT_OBJS = mgpp_invf_dict$o mg_files$o invf$o UCArray$o
    140135
    141 mgpp_invf_dict$e: $(INVF_DICT_OBJS)
     136mgpp_invf_dict: $(INVF_DICT_OBJS)
    142137    $(LINK) $(INVF_DICT_OBJS) $(LIBS)
    143138
    144139INVF_DICT_DUMP_OBJS = mgpp_invf_dict_dump$o mg_files$o invf$o UCArray$o
    145140
    146 mgpp_invf_dict_dump$e: $(INVF_DICT_DUMP_OBJS)
     141mgpp_invf_dict_dump: $(INVF_DICT_DUMP_OBJS)
    147142    $(LINK) $(INVF_DICT_DUMP_OBJS) $(LIBS)
    148143
    149144PERF_HASH_OBJS = mgpp_perf_hash_build$o mg_files$o invf$o UCArray$o
    150145
    151 mgpp_perf_hash_build$e: $(PERF_HASH_OBJS)
     146mgpp_perf_hash_build: $(PERF_HASH_OBJS)
    152147    $(LINK) $(PERF_HASH_OBJS) $(LIBS)
    153148
     
    155150                invf$o UCArray$o
    156151
    157 mgpp_stem_idx$e: $(STEM_IDX_OBJS)
     152mgpp_stem_idx: $(STEM_IDX_OBJS)
    158153    $(LINK) $(STEM_IDX_OBJS) $(LIBS)
    159154
     
    162157                locallib$o text$o UCArray$o TextGet$o FText$o
    163158
    164 mgpp_decompress_text$e: $(DECOMPRESS_TEXT_OBJS)
     159mgpp_decompress_text: $(DECOMPRESS_TEXT_OBJS)
    165160    $(LINK) $(DECOMPRESS_TEXT_OBJS) $(LIBS)
    166161
    167162
    168 PASS_OBJS = \
    169     words$o mgpass$o text.pass1$o comp_dict$o stemmer$o \
    170     text.pass2$o locallib$o \
    171     ivf.pass1$o ivf.pass2$o mg.special$o mg_files$o
    172 mgpass$e: $(PASS_OBJS)
    173     $(LINK) $(PASS_OBJS) $(LIBS)
    174 
    175 install:
    176     if NOT EXIST "$(GSDLHOME)\bin\windows" mkdir "$(GSDLHOME)\bin\windows"
    177     for %%i in ($(EXEC)) do \
    178       copy %%i "$(GSDLHOME)\bin\windows"
    179 
     163#mg_errors$o removed from LIB_OBJS to avoid conflict with mg's libtextin.a
    180164LIB_OBJS = mg_files$o  mg_errors$o locallib$o invf$o UCArray$o \
    181165           FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
     
    184168
    185169libtextin.lib: $(LIB_OBJS)
    186     if EXIST libtextin.lib del libtextin.lib
    187     lib /out:libtextin.lib $(LIB_OBJS)
     170        if exist libtextin.lib del libtextin.lib
     171        $(AR) /out:libtextin.lib $(LIB_OBJS)
    188172
     173install:
    189174clean:
    190175    del *$o
    191     del $(EXEC)
    192     del libtextin.lib
     176        del libtextin.lib
  • trunk/mgpp/lib/WIN32.MAK

    r3365 r3929  
    11###########################################################################
    22#
    3 # win32 makefile -- mgpp\text
     3# win32 makefile -- mgpp\lib
    44# A component of the Greenstone digital library software
    55# from the New Zealand Digital Library Project at the
    66# University of Waikato, New Zealand.
    77#
    8 # Copyright (C) 2000  The New Zealand Digital Library Project
     8# Copyright (C) 1999  The New Zealand Digital Library Project
    99#
    1010#
     
    2525###########################################################################
    2626
    27 GSDLHOME = ..\..\..
    28 USE_STLPORT = 0
     27MGPPHOME = ..
    2928
    30 STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
     29AR = lib
     30CC = cl
     31CPPFLAGS =
    3132
    32 CC = cl
    33 CPPFLAGS =
    34 DEFS = -DSHORT_SUFFIX -DSILENT -DHAVE_CONFIG_H -D__WIN32__
    35 INCLUDES = -I"$(GSDLHOME)"
    36 !IF $(USE_STLPORT)
    37 DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
    38 INCLUDES = $(INCLUDES) -I$(STLPATH)
    39 !ENDIF
     33DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -DSHORT_SUFFIX
     34INCLUDES = -I"." -I"$(MGPPHOME)"
    4035
    41 LDFLAGS =
    42 
    43 LIBS =
    44 
    45 COMPILE = $(CC) -c $(DEFS) $(INCLUDES)
    46 LINK = $(CC) $(LDFLAGS)
     36COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS)
    4737
    4838.SUFFIXES:
    49 .SUFFIXES: .c .obj .cpp
     39.SUFFIXES: .c .cpp .obj
    5040.c.obj:
    5141    $(COMPILE) $<
     
    5343    $(COMPILE) $<
    5444
     45ANSI2KNR =
    5546o = .obj
    5647
     
    6152    bitio_m.h          huffman.h  \
    6253    bitio_m_mem.h      perf_hash.h \
    63     bitio_m_mems.h     getopt_old.h \
     54    bitio_m_mems.h      \
    6455    pathmax.h          getpagesize.h      sysfuncs.h         bitio_m_abstract.h  \
    6556    random.h           simplefrenchstem.h unitool.h      longlong.h \
    66     non_ansi.h
     57    non_ansi.h         getopt_old.h       win32in.h
     58
    6759
    6860SOURCES = \
     
    7567    ftruncate.cpp     strcasecmp.cpp    random.cpp \
    7668    simplefrenchstem.cpp                unitool.cpp       bitio_m_random.cpp \
    77     bitio_m_abstract.cpp getopt_old.c
     69    bitio_m_abstract.cpp                getopt_old.c      win32in.c
     70# memlib.cpp removed
     71
    7872
    7973OBJECTS =  mgheap$o   \
     
    8478    xmalloc$o         bitio_m_random$o  bitio_m_abstract$o \
    8579     random$o          simplefrenchstem$o \
    86     unitool$o  win32in$o getopt_old$o
     80    unitool$o         getopt_old$o      win32in$o
    8781
    88 all : libmg.lib
     82 
     83DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
     84 
     85all : libmgpp.lib
    8986
    90 libmg.lib: $(OBJECTS)
    91     if EXIST libmg.lib del libmg.lib
    92     lib /out:libmg.lib $(OBJECTS)
     87libmgpp.lib : $(OBJECTS)
     88    if EXIST libmgpp.lib del libmgpp.lib
     89    $(AR) /out:libmgpp.lib $(OBJECTS)
    9390
     91$(OBJECTS): "$(MGPPHOME)\win32cfg.h"
     92
     93install:
    9494clean:
    9595    del *$o
    96     del libmg.lib
    97 
    98 install:
     96    del libmgpp.lib
  • trunk/mgpp/text/WIN32.MAK

    r3365 r3929  
    11###########################################################################
    22#
    3 # win32 makefile -- mgpp\text
     3# win32 makefile -- mgpp\lib
    44# A component of the Greenstone digital library software
    55# from the New Zealand Digital Library Project at the
    66# University of Waikato, New Zealand.
    77#
    8 # Copyright (C) 2000  The New Zealand Digital Library Project
     8# Copyright (C) 1999  The New Zealand Digital Library Project
    99#
    1010#
     
    2525###########################################################################
    2626
    27 GSDLHOME = ..\..\..
    28 USE_STLPORT = 0
     27MGPPHOME = ..
    2928
    30 STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
    31 
     29AR = lib
    3230CC = cl
    3331CPPFLAGS = -GX
    34 DEFS = -DSHORT_SUFFIX -DSILENT -DHAVE_CONFIG_H -D__WIN32__ -D__STDC__ -D__GNU_LIBRARY__ -D__MSDOS__
    35 INCLUDES = -I"$(GSDLHOME)\src\mgpp\lib" -I"$(GSDLHOME)"
    36 !IF $(USE_STLPORT)
    37 DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
    38 INCLUDES = $(INCLUDES) -I$(STLPATH)
    39 !ENDIF
     32LINK = cl
    4033
    41 LDFLAGS =
     34DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -DSHORT_SUFFIX -D__STDC__ -D__GNU_LIBRARY__ -D__MSDOS__
     35INCLUDES = -I"." -I"$(MGPPHOME)" -I"$(MGPPHOME)\lib"
     36LIBS = $(MGPPHOME)\lib\libmgpp.lib
    4237
    43 LIBS = "$(GSDLHOME)\src\mgpp\lib\libmg.lib"
    44 
    45 COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
    46 LINK = $(CC) $(LDFLAGS)
     38COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS)
    4739
    4840.SUFFIXES:
    49 .SUFFIXES: .c .obj .cpp
     41.SUFFIXES: .c .cpp .obj
    5042.c.obj:
    5143    $(COMPILE) $<
     
    5345    $(COMPILE) $<
    5446
     47ANSI2KNR =
    5548o = .obj
    56 e = .exe
     49
     50HEADERS = \
     51  FIvfLevelInfo.h     TextEl.h            hash.h              stemmer.h  \
     52  FText.h             TextGet.h           invf.h              text.h     \
     53  FileBuf.h           UCArray.h           locallib.h          words.h    \
     54  FragLevelConvert.h  WordData.h          mg.h                           \
     55  IndexData.h         build.h             mg_errors.h                    \
     56  TagInfo.h           comp_dict.h         mg_files.h          Weights.h  \
     57  MGQuery.h           Terms.h             QueryLex.h          QueryParser.h \
     58  GSDLQueryLex.h    GSDLQueryParser.h
     59
    5760
    5861SOURCES = \
     
    7376
    7477
    75 HEADERS = \
    76   FIvfLevelInfo.h     TextEl.h            hash.h              stemmer.h  \
    77   FText.h             TextGet.h           invf.h              text.h     \
    78   FileBuf.h           UCArray.h           locallib.h          words.h    \
    79   FragLevelConvert.h  WordData.h          mg.h                           \
    80   IndexData.h         build.h             mg_errors.h                    \
    81   TagInfo.h           comp_dict.h         mg_files.h          Weights.h  \
    82   MGQuery.h           Terms.h             QueryLex.h          QueryParser.h \
    83   GSDLQueryLex.h    GSDLQueryParser.h
     78EXEC          = mgpp_passes mgpp_decompress_text mgpp_perf_hash_build \
     79                mgpp_invf_dump mgpp_weights_build mgpp_invf_dict mgpp_stem_idx \
     80                mgpp_invf_dict_dump mgpp_compression_dict mgpp_fast_comp_dict \
     81                QueryTester Queryer
    8482
    85 EXEC          = mgpp_passes$e mgpp_decompress_text$e mgpp_perf_hash_build$e \
    86                 mgpp_invf_dump$e mgpp_weights_build$e mgpp_invf_dict$e mgpp_stem_idx$e \
    87                 mgpp_invf_dict_dump$e mgpp_compression_dict$e mgpp_fast_comp_dict$e \
    88                 QueryTester$e Queryer$e
     83DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
     84 
     85all : $(EXEC) libtextin.lib
    8986
    90 all:    $(EXEC) libtextin.lib
    9187
    9288PASSES_OBJS = \
     
    9793        FText$o text$o FIvfLevelInfo$o
    9894
    99 mgpp_passes$e: $(PASSES_OBJS)
     95mgpp_passes: $(PASSES_OBJS)
    10096    $(LINK) $(PASSES_OBJS) $(LIBS)
    101 
    10297
    10398QUERYER_OBJS = Queryer$o mg_files$o mg_errors$o locallib$o invf$o UCArray$o \
     
    106101               GSDLQueryParser$o GSDLQueryLex$o words$o
    107102
    108 Queryer$e: $(QUERYER_OBJS)
     103Queryer: $(QUERYER_OBJS)
    109104    $(LINK) $(QUERYER_OBJS) $(LIBS)
    110105
     
    113108                    IndexData$o stemmer$o Weights$o
    114109
    115 QueryTester$e: $(QUERY_TESTER_OBJS)
     110QueryTester: $(QUERY_TESTER_OBJS)
    116111    $(LINK) $(QUERY_TESTER_OBJS) $(LIBS)
    117112
     
    119114                     FIvfLevelInfo$o FragLevelConvert$o
    120115
    121 mgpp_weights_build$e: $(WEIGHTS_BUILD_OBJS)
     116mgpp_weights_build: $(WEIGHTS_BUILD_OBJS)
    122117    $(LINK) $(WEIGHTS_BUILD_OBJS) $(LIBS)
    123118
    124119COMP_DICT_OBJS = mgpp_compression_dict$o mg_files$o locallib$o
    125120
    126 mgpp_compression_dict$e: $(COMP_DICT_OBJS)
     121mgpp_compression_dict: $(COMP_DICT_OBJS)
    127122    $(LINK) $(COMP_DICT_OBJS) $(LIBS)
    128123
    129124FAST_COMP_OBJS = mgpp_fast_comp_dict$o mg_files$o locallib$o
    130125
    131 mgpp_fast_comp_dict$e: $(FAST_COMP_OBJS)
     126mgpp_fast_comp_dict: $(FAST_COMP_OBJS)
    132127    $(LINK) $(FAST_COMP_OBJS) $(LIBS)
    133128
    134129INVF_DUMP_OBJS = mgpp_invf_dump$o locallib$o mg_files$o invf$o UCArray$o
    135130
    136 mgpp_invf_dump$e: $(INVF_DUMP_OBJS)
     131mgpp_invf_dump: $(INVF_DUMP_OBJS)
    137132    $(LINK) $(INVF_DUMP_OBJS) $(LIBS)
    138133
    139134INVF_DICT_OBJS = mgpp_invf_dict$o mg_files$o invf$o UCArray$o
    140135
    141 mgpp_invf_dict$e: $(INVF_DICT_OBJS)
     136mgpp_invf_dict: $(INVF_DICT_OBJS)
    142137    $(LINK) $(INVF_DICT_OBJS) $(LIBS)
    143138
    144139INVF_DICT_DUMP_OBJS = mgpp_invf_dict_dump$o mg_files$o invf$o UCArray$o
    145140
    146 mgpp_invf_dict_dump$e: $(INVF_DICT_DUMP_OBJS)
     141mgpp_invf_dict_dump: $(INVF_DICT_DUMP_OBJS)
    147142    $(LINK) $(INVF_DICT_DUMP_OBJS) $(LIBS)
    148143
    149144PERF_HASH_OBJS = mgpp_perf_hash_build$o mg_files$o invf$o UCArray$o
    150145
    151 mgpp_perf_hash_build$e: $(PERF_HASH_OBJS)
     146mgpp_perf_hash_build: $(PERF_HASH_OBJS)
    152147    $(LINK) $(PERF_HASH_OBJS) $(LIBS)
    153148
     
    155150                invf$o UCArray$o
    156151
    157 mgpp_stem_idx$e: $(STEM_IDX_OBJS)
     152mgpp_stem_idx: $(STEM_IDX_OBJS)
    158153    $(LINK) $(STEM_IDX_OBJS) $(LIBS)
    159154
     
    162157                locallib$o text$o UCArray$o TextGet$o FText$o
    163158
    164 mgpp_decompress_text$e: $(DECOMPRESS_TEXT_OBJS)
     159mgpp_decompress_text: $(DECOMPRESS_TEXT_OBJS)
    165160    $(LINK) $(DECOMPRESS_TEXT_OBJS) $(LIBS)
    166161
    167162
    168 PASS_OBJS = \
    169     words$o mgpass$o text.pass1$o comp_dict$o stemmer$o \
    170     text.pass2$o locallib$o \
    171     ivf.pass1$o ivf.pass2$o mg.special$o mg_files$o
    172 mgpass$e: $(PASS_OBJS)
    173     $(LINK) $(PASS_OBJS) $(LIBS)
    174 
    175 install:
    176     if NOT EXIST "$(GSDLHOME)\bin\windows" mkdir "$(GSDLHOME)\bin\windows"
    177     for %%i in ($(EXEC)) do \
    178       copy %%i "$(GSDLHOME)\bin\windows"
    179 
     163#mg_errors$o removed from LIB_OBJS to avoid conflict with mg's libtextin.a
    180164LIB_OBJS = mg_files$o  mg_errors$o locallib$o invf$o UCArray$o \
    181165           FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
     
    184168
    185169libtextin.lib: $(LIB_OBJS)
    186     if EXIST libtextin.lib del libtextin.lib
    187     lib /out:libtextin.lib $(LIB_OBJS)
     170        if exist libtextin.lib del libtextin.lib
     171        $(AR) /out:libtextin.lib $(LIB_OBJS)
    188172
     173install:
    189174clean:
    190175    del *$o
    191     del $(EXEC)
    192     del libtextin.lib
     176        del libtextin.lib
Note: See TracChangeset for help on using the changeset viewer.