1 ##############################################################################
\r
2 # Ck for Win32 using Microsoft Visual C++ 6.0
\r
3 ##############################################################################
\r
6 # TCL_DIR must be set to the installation directory of Tcl8.0
\r
8 TCL_DIR = C:\progra~1\Tcl
\r
11 # CURSES_INCLUDES must point to the directory where PDCURSES include files are
\r
13 CURSES_INCLUDES = -IE:\pdcurses
\r
16 # CURSES_LIB must point to the PDCURSES link library
\r
18 CURSES_LIB = E:\pdcurses\win32\pdcurses.lib
\r
21 # Installation directory of MS VC 6
\r
23 MSVC = "C:\progra~1\microsoft visual studio\vc98"
\r
25 #-----------------------------------------------------------------------------
\r
26 # The information below should be usable as is.
\r
32 LIBS = $(TCL_DIR)\lib\tcl80.lib libcmt.lib kernel32.lib user32.lib \
\r
35 DLLLIBS = $(TCL_DIR)\lib\tcl80.lib msvcrt.lib kernel32.lib user32.lib \
\r
38 CFLAGS = -Zi -Gs -GD -c -W3 -nologo -D_MT -DWIN32 -I$(MSVC)\include \
\r
39 -I$(TCL_DIR)\include $(CURSES_INCLUDES)
\r
41 LFLAGS = /NODEFAULTLIB /RELEASE /NOLOGO /MACHINE:IX86 /SUBSYSTEM:WINDOWS \
\r
42 /ENTRY:WinMainCRTStartup
\r
44 DLLLFLAGS = /NODEFAULTLIB /RELEASE /NOLOGO /MACHINE:IX86 /SUBSYSTEM:WINDOWS \
\r
45 /ENTRY:_DllMainCRTStartup@12 /DLL
\r
47 WIDGOBJS = ckButton.obj ckEntry.obj ckFrame.obj ckListbox.obj \
\r
48 ckMenu.obj ckMenubutton.obj ckMessage.obj ckScrollbar.obj ckTree.obj
\r
50 TEXTOBJS = ckText.obj ckTextBTree.obj ckTextDisp.obj ckTextIndex.obj \
\r
51 ckTextMark.obj ckTextTag.obj
\r
53 OBJS = ckBind.obj ckBorder.obj ckCmds.obj ckConfig.obj ckEvent.obj \
\r
55 ckGeometry.obj ckGet.obj ckGrid.obj ckMain.obj ckOption.obj \
\r
56 ckPack.obj ckPlace.obj \
\r
57 ckPreserve.obj ckRecorder.obj ckUtil.obj ckWindow.obj tkEvent.obj \
\r
58 ckAppInit.obj $(WIDGOBJS) $(TEXTOBJS)
\r
60 HDRS = default.h ks_names.h ck.h ckPort.h ckText.h
\r
62 all: ck80.dll cwsh.exe
\r
66 $(LN) $(DLLLFLAGS) -out:$@ $(DLLLIBS) @<<
\r
70 cwsh.exe: winMain.obj cwsh.res ck80.dll
\r
72 $(LN) $(LFLAGS) winMain.obj cwsh.res -out:$@ $(DLLLIBS) ck80.lib
\r
84 $(CC) -DBUILD_ck -D_DLL $(CFLAGS) $<
\r
87 $(RC) -I$(MSVC)\include -I$(TCL_DIR)\include -fo $@ -r $<
\r
89 winMain.obj: winMain.c
\r
90 $(CC) $(CFLAGS) -D_DLL winMain.c
\r