File: Makefile.vc

package info (click to toggle)
xotcl 0.85.3-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,832 kB
  • ctags: 2,734
  • sloc: ansic: 18,065; tcl: 1,256; makefile: 653; sh: 430
file content (178 lines) | stat: -rw-r--r-- 3,960 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Generated automatically from Makefile.vc.in by configure.
# Generated automatically from Makefile.vc.in by configure.
#
# XOTcl main Visual C++ Makefile
#

# 
# be sure to adapt the following settings to your system:
#  TOOLS_32   = location of Visual C++ 
#  INSTALLDIR = location where Tcl is installed (and XOTcl should be installed)
#  TCLDIR     = location where to find Tcl
#  TKDIR      = location where to find TK
#
# Note, you have to use absolute paths!

#
# where to find the VCC tools
#
TOOLS32		= c:\progra~1\Micros~2\Vc98
TOOLS32_rc	= c:\progra~1\Micros~2\Common\MsDev98

#
# installation directory 
#
INSTALLDIR = c:/progra~1/Tcl
#
# appropriate tcl and tk sources
#
TCLDIR = c:\tcl8.3.1
TKDIR = c:\tk8.3.1

# Set NODEBUG to 0 to compile with symbols
NODEBUG = 1

# Set this to the appropriate value of /MACHINE: for your platform
MACHINE	= IX86

#
# tcl prefix of the libs, shell, etc. e.g. tcl82 for tcl82sh 
# => which tcl version should be used
#
TCLPREFIX = tcl83
TKPREFIX = tk83

#
# You should not have to modify anything further in this makefile
#

#
# package install dir & XOTcl Version
#
# The following escaped quotes are required for the VC6.0 
# preprocessor to see them as strings when being passed on the command line.
# The slashes must either be single forward or double back slashes to avoid
# the c preprocessor's substitution scan
INST_XOLIBPKG = \"$(INSTALLDIR)/lib/xotcl\"
XOVERSION = 0.85
XOTCLVERSION = \"$(XOVERSION)\"
XOTCLDIR	= ./src

XOTCLSDBMDIR = ./lib/store/XOTclSdbm
EXPATDIR = ./lib/xml/TclExpat-1.1
XOTCLPACKAGES=./lib

#
# doc dir, documentation tool command and files that 
# should be automatically documented
#
DOCDIR = doc
DOCCMD = lib/system/makeDoc.xotcl $(DOCDIR)
DOCFILES = doc/langRef.xotcl lib/system/*.xotcl apps/scripts/*.xotcl \
	apps/comm/*.xotcl \
	apps/actiweb/univ/UNIVERSAL.xotcl \
	lib/comm/*.test \
	lib/store/*.xotcl lib/store/*.test \
	lib/script-creation/Serializer.xotcl

MAKE 	  	= $(TOOLS32)\bin\nmake -fmakefile.vc
CP      		= copy
RM      		= del
MKDIR   		= -mkdir

all: xotclsh xowish xotclsdbm expat packages doc end

packages: xotclsh
	cd $(XOTCLPACKAGES)
	..\src\xotclsh.exe ./system/make.xotcl -target $(INST_XOLIBPKG) -all
	cd ..

end:
	@echo "" 
	@echo "************************************************************"
	@echo " Make completed."
	@echo ""
	@echo " In order to test XOTcl, invoke:"
	@echo "   nmake -fmakefile.vc test"
	@echo ""
	@echo " In order install XOTcl, invoke:"
	@echo "   nmake -fmakefile.vc install"
	@echo "************************************************************"

doc: xotclsh $(DOCFILES)
	src\xotclsh.exe $(DOCCMD) $(DOCFILES)

#
# XOTcl Src Directory Targets
#
xotclsh:
	cd $(XOTCLDIR)
	$(MAKE) src-xotclsh
	cd ..
xowish:
	cd $(XOTCLDIR)
	$(MAKE) src-xowish
	cd ..
xotcl-clean:
	cd $(XOTCLDIR)
	$(MAKE) src-clean
	cd ..
install-xotclsh: xotclsh
	cd $(XOTCLDIR)
	$(MAKE) src-install
	cd ..
install-xowish: xowish
	cd $(XOTCLDIR)
	$(MAKE) src-install_xowish
	cd ..

#
# XOTcl Sdbm Targets
#
xotclsdbm:
	cd $(XOTCLSDBMDIR)
	$(MAKE) src-xotclsdbm
	cd ../../..
xotclsdbm-clean:
	cd $(XOTCLSDBMDIR)
	$(MAKE) src-clean-xotclsdbm
	cd ../../..
xotclsdbm-install:
	cd $(XOTCLSDBMDIR)
	$(MAKE) src-install-xotclsdbm
	cd ../../..

#
# XOTcl Expat Targets
#
expat:
	cd $(EXPATDIR)
	$(MAKE) src-expat
	cd ../../..
expat-clean:
	cd $(EXPATDIR)
	$(MAKE) src-clean-expat
	cd ../../..
expat-install:
	cd $(EXPATDIR)
	$(MAKE) src-install-expat
	cd ../../..

install: all
	src\xotclsh.exe installWin.tcl $(INSTALLDIR)

clean: xotcl-clean xotclsdbm-clean expat-clean

test: all
	src\xotclsh.exe lib/system/speedtest.xotcl
	src\xotclsh.exe lib/system/testx.xotcl
	src\xotclsh.exe lib/system/testo.xotcl
	cd $(XOTCLPACKAGES)
	..\src\xotclsh.exe ./system/make.xotcl -target $(INST_XOLIBPKG) -test
	cd ..

# only limited tar file creation ... clean + tar everything
tar: clean
	cd ..
	tar cvfz xotcl-$(XOVERSION).tar.gz xotcl-$(XOVERSION)/*
	cd xotcl-$(XOVERSION)