File: makefile.mak

package info (click to toggle)
wbd 1.0ucl4-7
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 296 kB
  • ctags: 476
  • sloc: ansic: 4,131; tcl: 1,663; makefile: 91
file content (76 lines) | stat: -rw-r--r-- 2,145 bytes parent folder | download | duplicates (4)
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
TOOLS32       =  e:\progra~1\devstudio\vc
cc32 = $(TOOLS32)\bin\cl -I$(TOOLS32)\include
rc32 = e:\progra~1\devstudio\sharedIDE\bin\rc
link32 = $(TOOLS32)\bin\link

#Uncomment this line to compile an optimized (with no debug symbols) version of the program.
NODEBUG=1
TARGETOS=WIN95
!include <ntwin32.mak>

TK_DIR  = ../tk8.0
TCL_DIR = ../tcl8.0
INCLUDE_TK = -I$(TK_DIR)/win -I$(TK_DIR)/generic
INCLUDE_TCL = -I$(TCL_DIR)/win -I$(TCL_DIR)/generic
INCLUDE_X11 = -I$(TK_DIR)/xlib

GENERICDIR	= $(TK_DIR)\generic
RCDIR		= $(TK_DIR)\win\rc

LIB_TK = c:\progra~1\tcl\lib\tk80vc.lib
LIB_TCL = c:\progra~1\tcl\lib\tcl80vc.lib
LIBRARY_TK	= $(TK_DIR)\library
LIBRARY_TCL	= $(TCL_DIR)\library

LIBS = $(LIB_TK) $(LIB_TCL) $(guilibs) wsock32.lib
CFLAGS		= $(INCLUDE_X11) $(INCLUDE_TK) $(INCLUDE_TCL) -DNDEBUG -DRELATE_INT -DWIN32 -D_Windows -DWIN32_LEAN_AND_MEAN

.c.obj:
	$(cc32) $(cdebug) $(cflags) $(cvars) $(CFLAGS) -o $@ -FR$*.sbr $<

# Tcl initialisation files to be compiled into a C string.
TCL_FILES = \
	$(LIBRARY_TCL)/init.tcl \
	$(LIBRARY_TK)/tk.tcl \
	$(LIBRARY_TK)/bgerror.tcl \
	$(LIBRARY_TK)/button.tcl \
	$(LIBRARY_TK)/clrpick.tcl \
	$(LIBRARY_TK)/comdlg.tcl \
	$(LIBRARY_TK)/dialog.tcl \
	$(LIBRARY_TK)/entry.tcl \
	$(LIBRARY_TK)/focus.tcl \
	$(LIBRARY_TK)/listbox.tcl \
	$(LIBRARY_TK)/menu.tcl \
	$(LIBRARY_TK)/palette.tcl \
	$(LIBRARY_TK)/scale.tcl \
	$(LIBRARY_TK)/tearoff.tcl \
	$(LIBRARY_TK)/text.tcl \
	$(LIBRARY_TK)/optMenu.tcl \
	$(LIBRARY_TK)/scrlbar.tcl \
	$(LIBRARY_TK)/tkfbox.tcl \
	$(LIBRARY_TK)/xmfbox.tcl \
	$(LIBRARY_TK)/msgbox.tcl \
	wbdxbm.tcl \
	wbddlg.tcl \
	wbd.tcl

INC	= wb.h db.h
SRC	= main.c comms.c db.c wbd.tcl
OBJ	= tk.res main.obj comms.obj db.obj tcllibs.obj

wbd	:	$(OBJ) $(INC)
	$(link32) $(ldebug) $(guilflags) -out:$@.exe tk.res $(OBJ) $(LIBS)

clean	: del *.obj

# tcl2c comes from Ron Frederick's (Xerox) nv distribution.
tcl2c	:	tcl2c.o
	$(CC) $(CFLAGS) tcl2c.o $(LIBS) -o tcl2c

# Tcl library files are turned into a single object file.
tcllibs.obj: $(TCL_FILES) tcl2c.exe
	tcl2c.exe 1 $(TCL_FILES) >tcllibs.c
	$(cc32) /c $(CFLAGS) tcllibs.c

tk.res:
	$(rc32) -fo $@ -r -i $(GENERICDIR) $(RCDIR)/tk.rc