Changeset 2338 for trunk/gsdl/lib


Ignore:
Timestamp:
2001-04-25T22:29:11+12:00 (23 years ago)
Author:
sjboddie
Message:

Tidied up windows makefiles to make compiling under windows a little
easier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/win32.mak

    r1748 r2338  
    2626
    2727GSDLHOME = ..
    28 STLPATH = f:\stlport
     28USE_STLPORT = 0
     29LOCAL_LIBRARY = 0
     30STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
    2931
    3032AR = lib
    3133CC = cl
    3234CPPFLAGS =
    33 # note that if compiling with a newer version of VC++ than 4.2 we'll
    34 # use the built in STL and so the following definitions should not
    35 # be defined - this setup is for use with VC++ 4.2 and STLPort
    36 # GSDL_NAMESPACE_BROKEN
    37 # GSDL_USE_IOS_H
    38 # __STL_NO_NEW_IOSTREAMS
    39 DEFS = -DQUIET -D__WIN32__ -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H \
    40     -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H -D__STL_NO_NEW_IOSTREAMS
    41 INCLUDES = -I$(GSDLHOME)\packages\mg\lib -I$(STLPATH)
     35
     36DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN \
     37       -DSHORT_SUFFIX
     38INCLUDES = -I"$(GSDLHOME)" -I"$(GSDLHOME)\packages\mg\lib"
     39!IF $(USE_STLPORT)
     40DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
     41INCLUDES = $(INCLUDES) -I$(STLPATH)
     42!ENDIF
     43!IF $(LOCAL_LIBRARY)
     44DEFS = $(DEFS) -DGSDL_LOCAL_LIBRARY
     45!ENDIF
    4246
    4347COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
     
    5256    $(COMPILE) $<
    5357
    54 HEADERS = \
    55   cfgread.h      fileutil.h     gsdlunicode.h  text_t.h \
    56   display.h      gsdlconf.h     gsdltimes.h    gsdltools.h
     58HEADERS = cfgread.h fileutil.h gsdlunicode.h text_t.h display.h gsdlconf.h \
     59      gsdltimes.h gsdltools.h cnfgable.h cnfgator.h
    5760
    58 SOURCES = \
    59   cfgread.cpp      fileutil.cpp     text_t.cpp \
    60   display.cpp      gsdlunicode.cpp  gsdltimes.cpp  gsdltools.cpp
     61SOURCES = cfgread.cpp fileutil.cpp gsdlunicode.cpp text_t.cpp display.cpp \
     62      gsdltimes.cpp gsdltools.cpp cnfgable.cpp cnfgator.cpp
    6163
    62 OBJECTS = \
    63   cfgread.obj        fileutil.obj       text_t.obj   \
    64   display.obj        gsdlunicode.obj    gsdltimes.obj  gsdltools.obj
     64OBJECTS = cfgread.obj fileutil.obj gsdlunicode.obj text_t.obj display.obj \
     65      gsdltimes.obj gsdltools.obj cnfgable.obj cnfgator.obj
    6566
    6667all: gsdllib.lib
     
    7071    $(AR) /out:gsdllib.lib $(OBJECTS)
    7172
     73# we want gsdltools to always be compiled in case the status of
     74# GSDL_LOCAL_LIBRARY has changed
     75gsdltools.obj: FORCE
     76
    7277clean:
    7378    del *.obj
     
    7580
    7681install:
     82
     83FORCE:
Note: See TracChangeset for help on using the changeset viewer.