source: trunk/gsdl/win32.mak@ 9990

Last change on this file since 9990 was 9990, checked in by kjdon, 19 years ago

added a make clean command

  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1###########################################################################
2#
3# win32 makefile -- gsdl
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) 1999 The New Zealand Digital Library Project
9#
10#
11# This program is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program; if not, write to the Free Software
23# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24#
25###########################################################################
26
27AR = lib
28CC = cl
29CPPFLAGS =
30
31GSDLHOME = $(MAKEDIR)
32USE_STLPORT = 0
33LOCAL_LIBRARY = 0
34DLL = 0
35DLLDEBUG = 0
36
37MDEFINES = /f win32.mak
38COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
39
40SOURCES =
41
42OBJECTS =
43
44OTHERDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt \
45 packages\mg\lib src\mgpp\lib lib src\colservr
46
47INSTALLDIRS = packages\mg\src\text src\mgpp\text src\recpt src\oaiservr
48
49MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
50!IF $(USE_STLPORT)
51MAKECMD = $(MAKECMD) USE_STLPORT=1
52!ENDIF
53!IF $(LOCAL_LIBRARY)
54MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
55INSTALLDIRS = $(INSTALLDIRS) src\w32server
56!ENDIF
57!IF $(DLL)
58MAKECMD = $(MAKECMD) DLL=1
59!ENDIF
60!IF $(DLLDEBUG)
61MAKECMD = $(MAKECMD) DLLDEBUG=1
62!ENDIF
63
64MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
65
66all: win32.mak $(OTHERDIRS) $(INSTALLDIRS)
67
68install: win32.mak $(INSTALLDIRS)
69
70clean:
71 cd packages\windows\crypt\crypt
72 $(MAKECLEANCMD)
73 cd "$(GSDLHOME)"
74 cd packages\windows\gdbm\gdbm
75 $(MAKECLEANCMD)
76 cd "$(GSDLHOME)"
77 cd lib
78 $(MAKECLEANCMD)
79 cd "$(GSDLHOME)"
80 cd packages\mg\lib
81 $(MAKECLEANCMD)
82 cd "$(GSDLHOME)"
83 cd packages\mg\src\text
84 $(MAKECLEANCMD)
85 cd "$(GSDLHOME)"
86 cd src\mgpp\lib
87 $(MAKECLEANCMD)
88 cd "$(GSDLHOME)"
89 cd src\mgpp\text
90 $(MAKECLEANCMD)
91 cd "$(GSDLHOME)"
92 cd src\colservr
93 $(MAKECLEANCMD)
94 cd "$(GSDLHOME)"
95 cd src\recpt
96 $(MAKECLEANCMD)
97 cd "$(GSDLHOME)"
98 cd src\oaiservr
99 $(MAKECLEANCMD)
100 cd "$(GSDLHOME)"
101 cd src\w32server
102 $(MAKECLEANCMD)
103 cd "$(GSDLHOME)"
104
105$(OTHERDIRS): FORCE
106 cd "$@"
107 $(MAKECMD)
108 cd "$(GSDLHOME)"
109
110$(INSTALLDIRS): FORCE
111 cd "$@"
112 $(MAKECMD)
113 $(MAKECMD) install
114 cd "$(GSDLHOME)"
115
116FORCE:
Note: See TracBrowser for help on using the repository browser.