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

Modified to be more independent of GS2.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.