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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [insight/] [tix/] [win/] [DLLDemo/] [Makefile.bc] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Borland C++ 4.5 makefile for Tk
2
#
3
# Copyright (c) 1995-1996 by Sun Microsystems, Inc.
4
#
5
# See the file "license.terms" for information on usage and redistribution
6
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
7
#
8
 
9
 
10
#
11
# Project directories
12
#
13
# ROOT = top of source tree
14
# TMPDIR = location where .obj files should be stored during build
15
# TCLDIR = location of top of Tcl source heirarchy
16
#
17
 
18
TMPDIR  = .
19
TOOLS   = d:\bc45
20
TCLDIR  = D:\tcl7.5
21
TKDIR   = D:\tk4.1
22
TIXDIR  = D:\Tix4.1a2
23
 
24
# uncomment the following line to compile with symbols
25
#DEBUG=1
26
 
27
# uncomment the following two lines to compile with TCL_MEM_DEBUG
28
#DEBUGDEFINES   =TCL_MEM_DEBUG
29
 
30
# You shouldn't need to change anything below this line
31
# -------------------------------------------------------------------
32
 
33
#
34
# Borland C++ tools
35
#
36
 
37
BORLAND = $(TOOLS)
38
IMPLIB  = Implib
39
BCC32   = Bcc32
40
BCC     = Bcc
41
RC      = brcc32
42
CP      = copy
43
RM      = del
44
 
45
TCL_INCLUDES    = $(TCLDIR)\generic;$(TCLDIR)\win
46
TK_INCLUDES     = $(TKDIR)\generic;$(TKDIR)\xlib;$(TKDIR)\win
47
TIX_INCLUDES    = $(TIXDIR)\include;$(TIXDIR)\generic;$(TIXDIR)\win
48
INCLUDES        = $(BORLAND)\include;$(TIX_INCLUDES);$(TK_INCLUDES);$(TCL_INCLUDES)
49
 
50
LIBDIRS =       $(BORLAND)\lib
51
TCLLIBDIR =     $(TCLDIR)\win
52
TKLIBDIR =      $(TKDIR)\win
53
TIXLIBDIR =     $(TIXDIR)\win
54
 
55
 
56
!ifndef DEBUG
57
 
58
# these macros cause maximum optimization and no symbols
59
DEBUGLDFLAGS =
60
DEBUGCCFLAGS = -v- -vi- -O2
61
 
62
!else
63
 
64
# these macros enable debugging
65
DEBUGLDFLAGS = -v
66
DEBUGCCFLAGS = -k -Od -v
67
 
68
!endif
69
 
70
DEFINES = _RTLDLL;$(DEBUGDEFINES)
71
 
72
PROJECTCCFLAGS= $(DEBUGCCFLAGS) -w-par -w-stu
73
 
74
LNFLAGS_dll = -Tpd -aa -c $(DEBUGLDFLAGS) $(BORLAND)\lib\c0d32
75
LNLIBS_dll =    $(TKLIBDIR)\$(TKLIB) $(TCLLIBDIR)\$(TCLLIB) import32 cw32i
76
LNLIBS_tixdll = $(TIXLIBDIR)\$(TIXLIB) $(TKLIBDIR)\$(TKLIB) $(TCLLIBDIR)\$(TCLLIB) import32 cw32i
77
 
78
#
79
# Global makefile settings
80
#
81
 
82
.AUTODEPEND
83
.CACHEAUTODEPEND
84
 
85
.suffixes: .c .dll .lib .obj .exe
86
 
87
.path.c=.
88
.path.obj=$(TMPDIR)
89
 
90
OBJS = $(TMPDIR)\Demo.obj
91
 
92
TCLLIB = tcl75.lib
93
TKLIB = tk41.lib
94
TIXLIB = tix41.lib
95
TCLDLL = tcl75.dll
96
TKDLL = tk41.dll
97
TIXDLL = tix41.dll
98
 
99
# This target is a DLL that depends only on Tcl and TK
100
#
101
DEMO_DLL = demo.dll
102
 
103
# This target is a DLL that depends on Tcl, TK and Tix
104
#
105
DEMO_TIX_DLL = demo_tix.dll
106
 
107
#
108
# Targets
109
#
110
 
111
all: cfgdll $(DEMO_DLL) cfgcln
112
 
113
tix: cfgdll $(DEMO_TIX_DLL) cfgcln
114
 
115
# Implicit Targets
116
 
117
.c.obj:
118
        @$(BCC32) {$< }
119
 
120
.dll.lib:
121
        $(IMPLIB) -c $@ $<
122
 
123
#
124
# Configuration file targets - these files are implicitly used by the compiler
125
#
126
 
127
cfgdll:
128
        @$(CP) &&|
129
                -n$(TMPDIR) -I$(INCLUDES) -c -WD
130
                -D$(DEFINES) -3 -d $(PROJECTCCFLAGS)
131
| bcc32.cfg >NUL
132
 
133
cfgcln:
134
        @$(RM) bcc32.cfg
135
 
136
#
137
# DLL targets
138
#
139
 
140
$(DEMO_DLL): $(OBJS) demo.def
141
        tlink32 @&&|
142
$(LNFLAGS_dll) $(OBJS)
143
$@
144
-x
145
$(LNLIBS_dll)
146
demo.def
147
|
148
 
149
#
150
# DLL targets
151
#
152
 
153
$(DEMO_TIX_DLL): $(OBJS) demo.def
154
        tlink32 @&&|
155
$(LNFLAGS_dll) $(OBJS)
156
$@
157
-x
158
$(LNLIBS_tixdll)
159
demo.def
160
|
161
 
162
 
163
# The following rule automatically generates a tix.def file containing
164
# an export entry for every public symbol in the $(TKDLL) library.
165
 
166
demo.def: $(OBJS)
167
        $(TCLLIBDIR)\dumpexts.exe -o $@ $(DEMO_DLL) @&&|
168
                $(OBJS)
169
|
170
 
171
# remove all generated files
172
 
173
clean:
174
        $(RM) $(DEMO_DLL)
175
        $(RM) $(DEMO_TIX_DLL)
176
        $(RM) demo.def
177
        $(RM) $(TMPDIR)\*.obj
178
        $(RM) bcc32.cfg

powered by: WebSVN 2.1.0

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