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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [itcl/] [win/] [makefile.vc] - Blame information for rev 1773

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

Line No. Rev Author Line
1 578 markom
# Visual C++ 4.0 makefile
2
#
3
# Copyright (c) 1993-1996 Lucent Technologies
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
# Project directories
10
#
11
# ROOT    = top of source tree
12
#
13
# TMPDIR  = location where .obj files should be stored during build
14
#
15
 
16
!include "..\..\Makefile.vc"
17
 
18
ROOT            = ..
19
TMPDIR          = .
20
TARGET_LIB_ITCL = $(TARGET_LIB)\Itcl2.2
21
TARGET_DOC_ITCL = $(TARGET_DOC)\Itcl
22
 
23
# Comment the following line to compile with symbols
24
NODEBUG=1
25
 
26
# uncomment the following two lines to compile with TCL_MEM_DEBUG
27
#DEBUGDEFINES   = -DTCL_MEM_DEBUG
28
 
29
WINDIR          = $(ROOT)\win
30
GENERICDIR      = $(ROOT)\generic
31
 
32
TCL_INCLUDES    = -I$(WINDIR) -I$(GENERICDIR) -I$(TCLDIR)\generic
33
 
34
TCL_DEFINES     = -D__WIN32__ -DUSE_TCLALLOC=0 $(DEBUGDEFINES) -Dtry=__try \
35
        -Dexcept=__except
36
 
37
ITCLSHOBJS = \
38
        $(TMPDIR)\tclAppInit.obj
39
 
40
ITCLOBJS = \
41
        $(TMPDIR)\itcl_bicmds.obj \
42
        $(TMPDIR)\itcl_class.obj \
43
        $(TMPDIR)\itcl_cmds.obj \
44
        $(TMPDIR)\itcl_linkage.obj \
45
        $(TMPDIR)\itcl_methods.obj \
46
        $(TMPDIR)\itcl_objects.obj \
47
        $(TMPDIR)\itcl_obsolete.obj \
48
        $(TMPDIR)\itcl_parse.obj \
49
        $(TMPDIR)\itcl_util.obj \
50
        $(TMPDIR)\dllEntryPoint.obj
51
 
52
DUMPEXTS = $(TCLLIBDIR)\dumpexts.exe
53
ITCLSH = itclsh.exe
54
ITCLTEST = itcltest.exe
55
 
56
CPU                = i386
57
INCLUDE         = $(TOOLS32)\include
58
!include 
59
 
60
TCL_CFLAGS              = $(cdebug) $(cflags) $(cvarsdll) $(include32) $(TCL_INCLUDES) $(TCL_DEFINES)
61
CON_CFLAGS              = $(cdebug) $(cflags) $(cvars) $(include32) -DCONSOLE
62
DOS_CFLAGS              = $(cdebug) $(cflags) $(include16) -AL
63
DLL16_CFLAGS    = $(cdebug) $(cflags) $(include16) -ALw
64
 
65
#
66
# Targets
67
#
68
 
69
release:  $(ITCLDLL) $(ITCLSH)
70
all:        $(ITCLDLL) $(ITCLSH)
71
test:       $(ITCLSH)
72
        $(CP) $(TCLLIBDIR)\*.dll
73
        $(ITCLSH) <<
74
                cd ../tests
75
                source all
76
<<
77
 
78
install: all
79
        $(MKDIR) "$(TARGET_ROOT)"
80
        $(MKDIR) "$(TARGET_BIN)"
81
        $(MKDIR) "$(TARGET_LIB_ROOT)"
82
        $(MKDIR) "$(TARGET_LIB)"
83
        $(MKDIR) "$(TARGET_LIB_ITCL)"
84
        $(MKDIR) "$(TARGET_INCLUDE_ROOT)"
85
        $(MKDIR) "$(TARGET_INCLUDE)"
86
        $(MKDIR) "$(TARGET_DOC)"
87
        $(MKDIR) "$(TARGET_DOC_ITCL)"
88
        $(CP) $(TMPDIR)\$(ITCLSH) "$(TARGET_BIN)"
89
        $(CP) $(TMPDIR)\$(ITCLDLL) "$(TARGET_BIN)"
90
        $(CP) $(ROOT)\generic\itcl.h "$(TARGET_INCLUDE)"
91
        $(CP) $(ROOT)\library\*.* "$(TARGET_LIB_ITCL)"
92
        $(CP) $(ROOT)\win\*.tcl "$(TARGET_LIB_ITCL)"
93
        $(CP) $(ROOT)\..\html\Itcl\*.* "$(TARGET_DOC_ITCL)"
94
 
95
$(ITCLDLL): $(ITCLOBJS) $(TCLLIBDIR)\$(TCLLIB) $(TMPDIR)\itclvc.def $(TMPDIR)\itcl.res
96
        set LIB=$(TOOLS32)\lib
97
        $(link32) $(linkdebug) $(dlllflags) -def:$(TMPDIR)\itclvc.def \
98
                -out:$@ $(TMPDIR)\itcl.res $(guilibsdll) @<<
99
$(ITCLOBJS) $(TCLLIBDIR)\$(TCLLIB)
100
<<
101
 
102
$(ITCLSH): $(ITCLSHOBJS) $(ITCLLIB) $(TCLLIBDIR)\$(TCLLIB) $(TMPDIR)\itclsh.res
103
        set LIB=$(TOOLS32)\lib
104
        $(link32) $(linkdebug) $(conlflags) $(TMPDIR)\itclsh.res \
105
                -out:$@ $(conlibsdll) $(ITCLLIB) $(TCLLIBDIR)\$(TCLLIB) $(ITCLSHOBJS)
106
 
107
$(ITCLTEST): $(ITCLTESTOBJS) $(ITCLLIB) $(TCLLIBDIR)\$(TCLLIB) $(TMPDIR)\itclsh.res
108
        set LIB=$(TOOLS32)\lib
109
        $(link32) $(linkdebug) $(conlflags) $(TMPDIR)\itclsh.res \
110
                 -out:$@ $(conlibsdll) $(ITCLLIB) $(TCLLIBDIR)\$(TCLLIB) $(ITCLTESTOBJS)
111
 
112
#
113
# Special case object file targets
114
#
115
 
116
$(TMPDIR)\itclvc.def: $(DUMPEXTS) $(ITCLOBJS)
117
        $(DUMPEXTS) -o $@ $(ITCLDLL) @<<
118
$(ITCLOBJS)
119
<<
120
 
121
$(TMPDIR)\testMain.obj: $(WINDIR)\tclAppInit.c
122
        $(cc32) $(TCL_CFLAGS) -DTCL_TEST -Fo$(TMPDIR)\testMain.obj $?
123
 
124
#
125
# Implicit rules
126
#
127
 
128
{$(WINDIR)}.c{$(TMPDIR)}.obj:
129
    $(cc32) $(TCL_CFLAGS) -Fo$(TMPDIR)\ $<
130
 
131
{$(GENERICDIR)}.c{$(TMPDIR)}.obj:
132
    $(cc32) $(TCL_CFLAGS) -Fo$(TMPDIR)\ $<
133
 
134
{$(ROOT)\compat}.c{$(TMPDIR)}.obj:
135
    $(cc32) $(TCL_CFLAGS) -Fo$(TMPDIR)\ $<
136
 
137
{$(WINDIR)}.rc{$(TMPDIR)}.res:
138
        $(rc32) -fo $@ -r -i $(GENERICDIR) -i $(WINDIR) -i $(TCLDIR)\generic $(TCL_DEFINES) $<
139
 
140
clean:
141
        -@$(RM) *.exe
142
        -@$(RM) *.lib
143
        -@$(RM) *.dll
144
        -@$(RM) *.res
145
        -@$(RM) itclvc.def
146
        -@$(RM) $(TMPDIR)\*.obj
147
        -@$(RM) *.exp

powered by: WebSVN 2.1.0

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