source: main/trunk/gs2-core/common-src/src/lib/win32.mak@ 22832

Last change on this file since 22832 was 22832, checked in by mdewsnip, 11 years ago

Lots of improvements, particularly to Windows makefiles.

File size: 1.5 KB
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
12COMMON_SRC_DIR = ..\..
13GSDL_DIR = $(COMMON_SRC_DIR)\..
14
15
16# Libraries compiled
17LIBRARIES = libgsdllib.lib
18
19# Library: libgsdllib.lib
20LIBGSDL_CPPFLAGS =
21
22# Option: SQLite support (enabled by default)
23USE_SQLITE = 1
24!IF $(USE_SQLITE)
25LIBGSDL_CPPFLAGS = -DUSE_SQLITE $(LIBGSDL_CPPFLAGS) -I"$(GSDL_DIR)\common-src\packages\sqlite\include"
26!ENDIF
27
28# Objects for libgsdllib.lib
29LIBGSDL_OBJECTS = \
30 cfgread.obj \
31 cnfgable.obj \
32 cnfgator.obj \
33 dbclass.obj \
34 display.obj \
35 fileutil.obj \
36 gsdlsitecfg.obj \
37 gsdltimes.obj \
38 gsdltools.obj \
39 gsdlunicode.obj \
40 infodbclass.obj \
41 OIDtools.obj \
42 phrases.obj \
43 sqldbclass.obj \
44 text_t.obj \
45 unitool.obj
46
47# Option: SQLite support (enabled by default)
48USE_SQLITE = 1
49!IF $(USE_SQLITE)
50LIBGSDL_OBJECTS = $(LIBGSDL_OBJECTS) sqlitedbclass.obj
51!ENDIF
52
53
54COMPILE = $(CPP) -nologo -c -EHsc -D__WIN32__ -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE $(LIBGSDL_CPPFLAGS)
55
56.SUFFIXES:
57.SUFFIXES: .cpp .obj
58
59.cpp.obj:
60 $(COMPILE) $<
61
62
63libgsdllib.lib: $(LIBGSDL_OBJECTS)
64 if EXIST libgsdllib.lib del libgsdllib.lib
65 lib -nologo /out:libgsdllib.lib $(LIBGSDL_OBJECTS)
66
67all: $(LIBRARIES)
68
69install: $(LIBRARIES)
70
71clean:
72 if EXIST *.obj del *.obj
73 if EXIST $(LIBRARIES) del $(LIBRARIES)
Note: See TracBrowser for help on using the repository browser.