root/main/trunk/gs2-core/common-src/src/lib/win32.mak @ 22740

Revision 22740, 1.3 KB (checked in by mdewsnip, 10 years ago)

Changing all the configure scripts and makefiles I created (from scratch, to use autoconf and automake) to have my name and copyright DL Consulting Ltd.

Line 
1###########################################################################
2#
3# win32.mak -- Windows Makefile for common-src\src\lib
4#
5# By Michael Dewsnip
6#
7# Copyright (C) 2010  DL Consulting Ltd.
8#
9###########################################################################
10
11
12GSDL_DIR = $(GSDLHOME)
13
14
15# Libraries compiled
16LIBRARIES = gsdllib.lib
17
18# Library: gsdllib.lib
19LIBGSDL_CPPFLAGS =
20
21# Objects for gsdllib.lib
22LIBGSDL_OBJECTS = \
23    cfgread.obj \
24    cnfgable.obj \
25    cnfgator.obj \
26    dbclass.obj \
27    display.obj \
28    fileutil.obj \
29    gsdlsitecfg.obj \
30    gsdltimes.obj \
31    gsdltools.obj \
32    gsdlunicode.obj \
33    infodbclass.obj \
34    md5.obj \
35    OIDtools.obj \
36    phrases.obj \
37    text_t.obj \
38    unitool.obj
39
40
41# Option: SQLite support
42!IF $(USE_SQLITE)
43LIBGSDL_CPPFLAGS = -DUSE_SQLITE $(LIBGSDL_CPPFLAGS) -I"$(GSDL_DIR)\common-src\packages\sqlite\include"
44LIBGSDL_OBJECTS = $(LIBGSDL_OBJECTS) sqlitedbclass.obj
45!ENDIF
46
47
48COMPILE = cl -nologo -c -EHsc -D__WIN32__ -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE $(LIBGSDL_CPPFLAGS)
49LINK = cl -nologo -Fe"$@"
50
51.SUFFIXES:
52.SUFFIXES: .cpp .obj
53
54.cpp.obj:
55    $(COMPILE) $<
56
57
58gsdllib.lib: $(LIBGSDL_OBJECTS)
59    if EXIST gsdllib.lib del gsdllib.lib
60    lib -nologo /out:gsdllib.lib $(LIBGSDL_OBJECTS)
61
62all: $(LIBRARIES)
63
64install: $(LIBRARIES)
65
66distclean:
67    del *.obj $(LIBRARIES) win32.mak
68
69clean:
70    del *.obj $(LIBRARIES)
Note: See TracBrowser for help on using the browser.