OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [itk/] [win/] [makefile.bc] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Borland C++ 4.52 makefile
2
#
3
# Copyright (c) 1993-1996 Lucent Technologies
4
# based on original from
5
# Copyright (c) 1995-1996 by Sun Microsystems, Inc.
6
#
7
# See the file "license.terms" for information on usage and redistribution
8
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9
 
10
!include "..\..\Makefile.bc"
11
 
12
#
13
# Project directories
14
#
15
# ROOT = top of source tree
16
# TMPDIR = location where .obj files should be stored during build
17
 
18
ROOT                    = ..
19
TMPDIR                  = .
20
TARGET_LIB_ITK          = $(TARGET_LIB)\Itk2.2
21
TARGET_DOC_ITK          = $(TARGET_DOC)\Itk
22
 
23
# uncomment the following line to compile with symbols
24
#DEBUG=1
25
 
26
# uncomment the following two lines to compile with TCL_MEM_DEBUG
27
#DEBUGDEFINES   =TCL_MEM_DEBUG
28
 
29
 
30
INCLUDES   =$(BORLAND)\include;$(ROOT)\generic;$(ROOT);$(TCLDIR)\generic;$(ITCLDIR)\generic;$(TKDIR)\generic;$(TKDIR)\xlib;$(TKDIR)\bitmaps
31
LIBDIRS    =$(BORLAND)\lib;$(ROOT)\win
32
 
33
!ifndef DEBUG
34
 
35
# these macros cause maximum optimization and no symbols
36
DEBUGLDFLAGS =
37
DEBUGCCFLAGS = -v- -vi- -O2
38
 
39
!else
40
 
41
# these macros enable debugging
42
DEBUGLDFLAGS = -v
43
DEBUGCCFLAGS = -k -Od -v
44
 
45
!endif
46
 
47
DEFINES = _RTLDLL;USE_TCLALLOC=0;STRICT;$(DEBUGDEFINES);ITCL_NAMESPACES=1
48
PROJECTCCFLAGS= $(DEBUGCCFLAGS) -w-par -w-stu
49
 
50
LNFLAGS_exe = -Tpe -aa -c $(DEBUGLDFLAGS) $(BORLAND)\lib\c0w32
51
LNFLAGS_dll = -Tpd -aa -c $(DEBUGLDFLAGS) $(BORLAND)\lib\c0d32
52
 
53
LNLIBS_exe =    $(ITKLIB) $(ITCLLIBDIR)\$(ITCLLIB) $(TKLIBDIR)\$(TKLIB) $(TCLLIBDIR)\$(TCLLIB) import32 cw32i
54
LNLIBS_dll =    $(ITCLLIBDIR)\$(ITCLLIB) $(TKLIBDIR)\$(TKLIB) $(TCLLIBDIR)\$(TCLLIB) import32 cw32i
55
 
56
#
57
# Global makefile settings
58
#
59
 
60
.AUTODEPEND
61
.CACHEAUTODEPEND
62
 
63
.suffixes: .c .dll .lib .obj .exe
64
 
65
.path.c=$(ROOT)\win;$(ROOT)\generic;
66
.path.obj=$(TMPDIR)
67
 
68
ITKWISHOBJS = \
69
        $(TKLIBDIR)\tkConsole.obj \
70
        $(TMPDIR)\winMain.obj
71
 
72
ITKOBJS = \
73
        $(TMPDIR)\itk_archetype.obj \
74
        $(TMPDIR)\itk_cmds.obj \
75
        $(TMPDIR)\itk_option.obj \
76
        $(TMPDIR)\itk_util.obj \
77
        $(TMPDIR)\dllEntryPoint.obj
78
 
79
ITKWISH = itkwish.exe
80
 
81
 
82
#
83
# Targets
84
#
85
 
86
all: cfgdll $(ITKDLL) cfgexe $(ITKWISH) cfgcln
87
test: $(ITKWISH)
88
        $(CP) $(TCLLIBDIR)\*.dll
89
        $(CP) $(TKLIBDIR)\*.dll
90
        $(CP) $(ITCLLIBDIR)\*.dll
91
#set ITK_
92
        $(ITKWISH) <<|
93
   cd ..\tests
94
   source all
95
   exit
96
|
97
 
98
install: all
99
        $(MKDIR) "$(TARGET_ROOT)"
100
        $(MKDIR) "$(TARGET_BIN)"
101
        $(MKDIR) "$(TARGET_LIB_ROOT)"
102
        $(MKDIR) "$(TARGET_LIB)"
103
        $(MKDIR) "$(TARGET_LIB_ITK)"
104
        $(MKDIR) "$(TARGET_INCLUDE_ROOT)"
105
        $(MKDIR) "$(TARGET_INCLUDE)"
106
        $(MKDIR) "$(TARGET_DOC)"
107
        $(MKDIR) "$(TARGET_DOC_ITK)"
108
        $(CP) $(TMPDIR)\$(ITKWISH) "$(TARGET_BIN)"
109
        $(CP) $(TMPDIR)\$(ITKDLL) "$(TARGET_BIN)"
110
        $(CP) $(ROOT)\generic\itk.h "$(TARGET_INCLUDE)"
111
        $(CP) $(ROOT)\library\*.* "$(TARGET_LIB_ITK)"
112
        $(CP) $(ROOT)\win\*.tcl "$(TARGET_LIB_ITK)"
113
        $(CP) $(ROOT)\..\html\Itk\*.* "$(TARGET_DOC_ITK)"
114
 
115
# Implicit Targets
116
 
117
.c.obj:
118
        @$(BCC32) {$< }
119
 
120
.dll.lib:
121
        $(IMPLIB) -c $@ $<
122
 
123
.rc.res:
124
        $(RC) -i$(ROOT)\generic;$(ITCLDIR)\generic;$(TCLDIR)\generic;$(TKDIR)\generic $<
125
 
126
#
127
# Special case object file targets
128
#
129
 
130
#
131
# Configuration file targets - these files are implicitly used by the compiler
132
#
133
 
134
cfgdll:
135
        @$(CP) &&|
136
                -n$(TMPDIR) -I$(INCLUDES) -c -WD
137
                -D$(DEFINES) -3 -d $(PROJECTCCFLAGS)
138
| bcc32.cfg >NUL
139
 
140
cfgexe:
141
        @$(CP) &&|
142
                -n$(TMPDIR) -I$(INCLUDES) -c -W
143
                -D$(DEFINES) -3 -d $(PROJECTCCFLAGS)
144
| bcc32.cfg >NUL
145
 
146
cfgtest:
147
        @$(CP) &&|
148
                -n$(TMPDIR) -I$(INCLUDES) -c -W
149
                -D$(DEFINES);TCL_TEST -3 -d $(PROJECTCCFLAGS)
150
| bcc32.cfg >NUL
151
 
152
cfgcln:
153
        @$(RM) bcc32.cfg
154
 
155
#
156
# Executable targets
157
#
158
 
159
$(ITKDLL): $(ITKOBJS) itk.def rc\itk.res
160
        $(TLINK32) @&&|
161
$(LNFLAGS_dll) $(ITKOBJS)
162
$@
163
-x
164
$(LNLIBS_dll)
165
itk.def
166
rc\itk.res
167
|
168
 
169
$(ITKWISH): $(ITKWISHOBJS) $(ITKLIB) rc\itkwish.res
170
        $(TLINK32) @&&|
171
$(LNFLAGS_exe) $(ITKWISHOBJS)
172
$@
173
-x
174
$(LNLIBS_exe)
175
|, &&|
176
EXETYPE WINDOWS
177
CODE PRELOAD MOVEABLE DISCARDABLE
178
DATA PRELOAD MOVEABLE MULTIPLE
179
|, rc\itkwish.res
180
 
181
#
182
# Other dependencies
183
#
184
 
185
 
186
# The following rule automatically generates a tk.def file containing
187
# an export entry for every public symbol in the $(TKDLL) library.
188
 
189
itk.def: $(ITKOBJS)
190
        $(TCLLIBDIR)\dumpexts.exe -o $@ $(ITKDLL) @&&|
191
                $(ITKOBJS)
192
|
193
 
194
# Dependencies for .rc files:
195
rc\itk.res: rc\*.cur rc\itk.ico
196
rc\itkwish.res: rc\*.cur rc\itk.ico
197
 
198
# debugging rules, the .dll and .exe files must be in the same
199
# directory as the object files for debugging purposes
200
 
201
$(TMPDIR)\$(ITKDLL): $(ITKDLL)
202
        $(CP) $(ITKDLL) $(TMPDIR)
203
 
204
$(TMPDIR)\$(ITCLDLL): $(ITCLLIBDIR)\$(ITCLDLL)
205
        $(CP) $(ITCLLIBDIR)\$(ITCLDLL) $(TMPDIR)
206
 
207
$(TMPDIR)\$(TKDLL): $(TKLIBDIR)\$(TKDLL)
208
        $(CP) $(TKLIBDIR)\$(TKDLL) $(TMPDIR)
209
 
210
$(TMPDIR)\$(TCLDLL): $(TCLLIBDIR)\$(TCLDLL)
211
        $(CP) $(TCLLIBDIR)\$(TCLDLL) $(TMPDIR)
212
 
213
$(TMPDIR)\$(ITKWISH): $(ITKWISH)
214
        $(CP) $(ITKWISH) $(TMPDIR)
215
 
216
debug: $(TMPDIR)\$(ITKDLL) $(TMPDIR)\$(ITCLDLL) $(TMPDIR)\$(TKDLL) $(TMPDIR)\$(TCLDLL)
217
 
218
 
219
# remove all generated files
220
 
221
clean:
222
        -@$(RM) $(ITKWISH)
223
        -@$(RM) $(ITKLIB)
224
        -@$(RM) $(ITKDLL)
225
        -@$(RM) itk.def
226
        -@$(RM) $(TMPDIR)\Rc\*.res
227
        -@$(RM) $(TMPDIR)\*.obj
228
        -@$(RM) *.cfg

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.