Ignore:
Timestamp:
2001-05-24T17:06:48+12:00 (23 years ago)
Author:
sjboddie
Message:

Fiddled about with mgpp to get it compiling on Windows under VC++ 6.0. I
still can't get it to compile under VC++ 4.2 because of some weird
behaviour in STLport.

Also tidied up a little and removed some of the old log information
that was scattered about in some of the files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/lib/WIN32.MAK

    r855 r2468  
    1 # Generated automatically from Makefile.in by configure.
    21###########################################################################
    32#
    4 # Makefile.in -- Makefile for the general purpose library
    5 # Copyright (C) 1994  Neil Sharman; (C) 1995 Tim Shimmin
     3# win32 makefile -- mgpp\text
     4# A component of the Greenstone digital library software
     5# from the New Zealand Digital Library Project at the
     6# University of Waikato, New Zealand.
     7#
     8# Copyright (C) 2000  The New Zealand Digital Library Project
     9#
    610#
    711# This program is free software; you can redistribute it and/or modify
     
    1923# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    2024#
    21 #       @(#)Makefile.in 1.3 16 Mar 1994
    22 #
    2325###########################################################################
    2426
     27GSDLHOME = ..\..\..
     28USE_STLPORT = 0
    2529
    26 PACKAGE = mg
    27 VERSION = 1.3
    28  
    29 AR = lib
     30STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
     31
    3032CC = cl
    31 #CFLAGS = -g -O
    32 CPPFLAGS =
    33 DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN
    34  
    35 COMPILE = $(CC) -c $(DEFS) -I. -I..
    36  
     33CPPFLAGS =
     34DEFS = -DSHORT_SUFFIX -DSILENT -DHAVE_CONFIG_H -D__WIN32__
     35INCLUDES = -I"$(GSDLHOME)"
     36!IF $(USE_STLPORT)
     37DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
     38INCLUDES = $(INCLUDES) -I$(STLPATH)
     39!ENDIF
     40
     41LDFLAGS =
     42
     43LIBS =
     44
     45COMPILE = $(CC) -c $(DEFS) $(INCLUDES)
     46LINK = $(CC) $(LDFLAGS)
     47
    3748.SUFFIXES:
    38 .SUFFIXES: .c .obj
     49.SUFFIXES: .c .obj .cpp
    3950.c.obj:
    4051    $(COMPILE) $<
     52.cpp.obj:
     53    $(COMPILE) $<
    4154
    42 ANSI2KNR =
    4355o = .obj
    44  
    45  
    46 INCLUDES = -I..
    47  
     56
    4857HEADERS = \
    4958    bitio_m_random.h   local_strings.h    lovinstem.h \
    50     bitio_m_stdio.h    getopt.h           memlib.h           netorder.h \
     59    bitio_m_stdio.h    memlib.h           netorder.h \
    5160    bitio_gen.h        mgheap.h           messages.h \
    5261    bitio_m.h          huffman.h  \
    5362    bitio_m_mem.h      perf_hash.h \
    54     bitio_m_mems.h      \
     63    bitio_m_mems.h     getopt.h \
    5564    pathmax.h          getpagesize.h      sysfuncs.h         bitio_m_abstract.h  \
    5665    random.h           simplefrenchstem.h unitool.h      longlong.h \
    57     non_ansi.h         win32in.h
    58 
     66    non_ansi.h
    5967
    6068SOURCES = \
    61     mgheap.cpp        memlib.cpp \
     69    mgheap.cpp        \
    6270    huffman.cpp       messages.cpp \
    6371    bitio_gen.cpp     perf_hash.cpp \
    64     getopt.cpp         \
    65     getopt1.cpp       local_strings.cpp lovinstem.cpp \
     72    local_strings.cpp lovinstem.cpp \
    6673    bitio_m_mem.cpp   bitio_m_stdio.cpp bitio_m_mems.cpp \
    67     alloca.c                     xmalloc.c         strstr.cpp \
    68     gmalloc.c         ftruncate.cpp     strcasecmp.cpp    random.cpp \
     74    alloca.c          xmalloc.c         strstr.cpp \
     75    ftruncate.cpp     strcasecmp.cpp    random.cpp \
    6976    simplefrenchstem.cpp                unitool.cpp       bitio_m_random.cpp \
    70     bitio_m_abstract.cpp         win32in.c
     77    bitio_m_abstract.cpp getopt.c
    7178
    72 OBJECTS =  mgheap$o          memlib$o \
     79OBJECTS =  mgheap$o   \
    7380    huffman$o         messages$o \
    7481    bitio_gen$o       perf_hash$o \
    75     getopt$o           \
    76     getopt1$o         local_strings$o   lovinstem$o \
     82     local_strings$o   lovinstem$o \
    7783    bitio_m_mem$o     bitio_m_stdio$o   bitio_m_mems$o \
    7884    xmalloc$o         bitio_m_random$o  bitio_m_abstract$o \
    79     gmalloc$o        random$o          simplefrenchstem$o \
    80     unitool$o         win32in$o
     85    random$o          simplefrenchstem$o \
     86    unitool$o  getopt$o
    8187
    82  
    83 DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
    84  
    8588all : libmg.lib
    8689
    87 libmg.lib : $(OBJECTS)
     90libmg.lib: $(OBJECTS)
     91    if EXIST libmg.lib del libmg.lib
     92    lib /out:libmg.lib $(OBJECTS)
     93
     94clean:
     95    del *$o
    8896    del libmg.lib
    89     $(AR) /out:libmg.lib $(OBJECTS)
    9097
    91 $(OBJECTS): ..\win32cfg.h
    92 
    93 install:
    94 installdirs:
    95 uninstall:
    96 execinstall:
    97 execuninstall:
    98 maninstall:
    99 manuninstall:
    100  
    101 #dist: $(DISTFILES)
    102 #        for file in $(DISTFILES); do \
    103 #          ln $$file $(distdir) 2> /dev/null \
    104 #         || cp -p $$file $(distdir); \
    105 #       done
    106 
    107 mostlyclean:
    108     del *.obj
    109  
    110 clean: mostlyclean
    111     del libmg.lib
    112  
    113 distclean: clean
    114     rm -f Makefile
    115  
    116 maintainer-clean: distclean
    117     @echo "This command is intended only for maintainers to use;"
    118     @echo "rebuilding the deleted files may require special tools."
    119 
    120 #Makefile: Makefile.in ../config.status
    121 #        cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
    122  
    123 # Tell versions [3.59,3.63) of GNU make not to export all variables.
    124 # Otherwise a system limit (for SysV at least) may be exceeded.
    125 #.NOEXPORT:
     98install:
Note: See TracChangeset for help on using the changeset viewer.