File: makefile.blc

package info (click to toggle)
vile 9.4-s1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 10,448 kB
  • ctags: 7,909
  • sloc: ansic: 85,708; lex: 7,137; sh: 2,992; perl: 2,926; cpp: 2,869; makefile: 750; awk: 271
file content (148 lines) | stat: -rw-r--r-- 3,158 bytes parent folder | download
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#
# makefile for vile on WIN32 using Borland C++
#
# $Header: /usr/build/vile/vile/RCS/makefile.blc,v 1.18 2004/12/06 19:43:51 tom Exp $
#
# Tested with
#	Borland C++ 5.5.1
#	make 5.2
#
.autodepend

ICON = vile

TARGET = vile
SCREEN = ntconio
DISP_DEF = -DDISP_NTCONS=1
LDFLAGS = -v -tWM -tWC
EXTRA =
RESFILE =

# Use
#	make -Dwinvile
!ifdef  winvile
TARGET = winvile
SCREEN = ntwinio
DISP_DEF = -DDISP_NTWIN=1
LDFLAGS = -v -tWM -tW
RESFILE = $(TARGET).res
!endif

CFLAGS = -v -tWM -w-par -DWIN32_LEAN_AND_MEAN -Dscrn_chosen $(DISP_DEF)

# Use
#	make -Dtrace
!ifdef	trace
CFLAGS = $(CFLAGS) -DOPT_TRACE=1
EXTRA = $(EXTRA) trace.obj
!endif

CC = bcc32

# these are normal editable headers
HDRS = estruct.h edef.h proto.h dirstuff.h

# these headers are built by the mktbls program from the information in cmdtbl
# and in modetbl
BUILTHDRS = \
	nebind.h \
	nefkeys.h \
	nefsms.h \
	nefunc.h \
	nemode.h \
	nename.h \
	neproto.h \
	nevars.h

SRC = 	main.c $(SCREEN).c basic.c bind.c btree.c buffer.c \
	csrch.c display.c eval.c exec.c externs.c \
	fences.c file.c filec.c \
	fileio.c finderr.c glob.c globals.c history.c \
	input.c insert.c itbuff.c isearch.c \
	line.c modes.c msgs.c oneliner.c opers.c \
	path.c random.c regexp.c \
	region.c search.c select.c spawn.c statevar.c \
	tags.c tbuff.c termio.c ucrypt.c undo.c \
	version.c w32cmd.c w32cbrd.c w32misc.c w32oo.cpp w32pipe.c \
	window.c word.c wordmov.c map.c

OBJ = 	main.obj $(SCREEN).obj basic.obj bind.obj btree.obj buffer.obj \
      	csrch.obj display.obj eval.obj exec.obj externs.obj \
	fences.obj file.obj filec.obj \
	fileio.obj finderr.obj glob.obj globals.obj history.obj \
	input.obj insert.obj itbuff.obj isearch.obj \
	line.obj modes.obj msgs.obj oneliner.obj opers.obj \
	path.obj random.obj regexp.obj \
	region.obj search.obj select.obj spawn.obj statevar.obj \
	tags.obj tbuff.obj termio.obj ucrypt.obj undo.obj \
	version.obj w32cmd.obj w32cbrd.obj w32misc.obj w32oo.obj w32pipe.obj \
	window.obj word.obj wordmov.obj map.obj $(EXTRA)

.c.obj:
	$(CC) $(CFLAGS) -c $<

.cpp.obj:
	$(CC) $(CFLAGS) -c $<

all :		$(TARGET).exe

sources :	$(BUILTHDRS)

$(TARGET).exe: 	$(BUILTHDRS) $(OBJ) $(RESFILE)
	$(CC) $(LDFLAGS) -e$(TARGET).exe @&&!
$(OBJ)
!
!ifdef winvile
	brc32 $(RESFILE)
!endif

$(OBJ):	estruct.h

nebind.h \
nefkeys.h \
neexec.h \
nefunc.h \
neproto.h :	nename.h

nename.h :	cmdtbl mktbls.exe
	mktbls.exe cmdtbl

nefsms.h \
nevars.h :	nemode.h

nemode.h :	modetbl mktbls.exe
	mktbls.exe modetbl

mktbls.exe:  mktbls.c
	$(CC) $(CFLAGS) mktbls.c

clean:
	- del *.bak
	- del *.map
	- del *.tds
	- del *.res
	- del *.exe
	- del *.obj
	- del ne*.h

bind.obj:	nefunc.h
eval.obj:	nevars.h
exec.obj:	nefunc.h
externs.obj:	nebind.h nename.h neproto.h nefunc.h
filec.obj:	dirstuff.h
glob.obj:	dirstuff.h
globals.obj:	nefunc.h
main.obj:	chgdfunc.h nevars.h
modes.obj:	chgdfunc.h
opers.obj:	nefunc.h
path.obj:	dirstuff.h
random.obj:	nefunc.h
select.obj:	nefunc.h
statevar.obj:	nevars.h
spawn.obj:	nefunc.h
termio.obj:	nefunc.h
version.obj:	patchlev.h
word.obj:	nefunc.h

winvile.res :	winvile.rc winvile.h
	$(RC) -32 -I$(MAKEDIR)\..\include -DVILE_ICON="$(ICON).ico" -Iicons winvile.rc