-
Notifications
You must be signed in to change notification settings - Fork 0
/
vc6_80.mak
executable file
·92 lines (69 loc) · 2.46 KB
/
vc6_80.mak
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
##############################################################################
# Ck for Win32 using Microsoft Visual C++ 6.0
##############################################################################
#
# TCL_DIR must be set to the installation directory of Tcl8.0
#
TCL_DIR = C:\progra~1\Tcl
#
# CURSES_INCLUDES must point to the directory where PDCURSES include files are
#
CURSES_INCLUDES = -IE:\pdcurses
#
# CURSES_LIB must point to the PDCURSES link library
#
CURSES_LIB = E:\pdcurses\win32\pdcurses.lib
#
# Installation directory of MS VC 6
#
MSVC = "C:\progra~1\microsoft visual studio\vc98"
#-----------------------------------------------------------------------------
# The information below should be usable as is.
CC = cl
LN = link
RC = rc
LIBS = $(TCL_DIR)\lib\tcl80.lib libcmt.lib kernel32.lib user32.lib \
$(CURSES_LIB)
DLLLIBS = $(TCL_DIR)\lib\tcl80.lib msvcrt.lib kernel32.lib user32.lib \
$(CURSES_LIB)
CFLAGS = -Zi -Gs -GD -c -W3 -nologo -D_MT -DWIN32 -I$(MSVC)\include \
-I$(TCL_DIR)\include $(CURSES_INCLUDES)
LFLAGS = /NODEFAULTLIB /RELEASE /NOLOGO /MACHINE:IX86 /SUBSYSTEM:WINDOWS \
/ENTRY:WinMainCRTStartup
DLLLFLAGS = /NODEFAULTLIB /RELEASE /NOLOGO /MACHINE:IX86 /SUBSYSTEM:WINDOWS \
/ENTRY:_DllMainCRTStartup@12 /DLL
WIDGOBJS = ckButton.obj ckEntry.obj ckFrame.obj ckListbox.obj \
ckMenu.obj ckMenubutton.obj ckMessage.obj ckScrollbar.obj ckTree.obj
TEXTOBJS = ckText.obj ckTextBTree.obj ckTextDisp.obj ckTextIndex.obj \
ckTextMark.obj ckTextTag.obj
OBJS = ckBind.obj ckBorder.obj ckCmds.obj ckConfig.obj ckEvent.obj \
ckFocus.obj \
ckGeometry.obj ckGet.obj ckGrid.obj ckMain.obj ckOption.obj \
ckPack.obj ckPlace.obj \
ckPreserve.obj ckRecorder.obj ckUtil.obj ckWindow.obj tkEvent.obj \
ckAppInit.obj $(WIDGOBJS) $(TEXTOBJS)
HDRS = default.h ks_names.h ck.h ckPort.h ckText.h
all: ck80.dll cwsh.exe
ck80.dll: $(OBJS)
set LIB=$(MSVC)\lib
$(LN) $(DLLLFLAGS) -out:$@ $(DLLLIBS) @<<
$(OBJS)
<<
cwsh.exe: winMain.obj cwsh.res ck80.dll
set LIB=$(MSVC)\lib
$(LN) $(LFLAGS) winMain.obj cwsh.res -out:$@ $(DLLLIBS) ck80.lib
clean:
del *.obj
del *.lib
del *.exp
del *.exe
del *.res
del *.pdb
del ck80.dll
.c.obj:
$(CC) -DBUILD_ck -D_DLL $(CFLAGS) $<
.rc.res:
$(RC) -I$(MSVC)\include -I$(TCL_DIR)\include -fo $@ -r $<
winMain.obj: winMain.c
$(CC) $(CFLAGS) -D_DLL winMain.c