forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmk_mvc.mak
39 lines (28 loc) · 833 Bytes
/
mk_mvc.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
# $Id$
#
# Makefile for Win32 using Microsoft Visual C++ compiler
include source.mak
REGEX_DEFINE = -DHAVE_REGCOMP -DREGEX_MALLOC -DSTDC_HEADERS=1
EXTRA_LIBS = regex.obj
DEFINES = -DWIN32 $(REGEX_DEFINE)
INCLUDES = -I.
OPT = /O2
ctags: ctags.exe
ctags.exe: $(SOURCES) respmvc $(EXTRA_LIBS)
cl $(OPT) /Fe$@ @respmvc /link setargv.obj
readtags.exe: readtags.c
cl /clr $(OPT) /Fe$@ $(DEFINES) -DREADTAGS_MAIN readtags.c /link setargv.obj
# Debug version
dctags.exe: $(SOURCES) respmvc $(EXTRA_LIBS)
cl /Zi -DDEBUG /Fe$@ @respmvc debug.c /link setargv.obj
regex.obj:
cl /c $(OPT) /Fo$@ $(DEFINES) -Dconst= regex.c
respmvc: $(SOURCES) $(HEADERS) mk_mvc.mak
echo $(DEFINES) $(INCLUDES) $(SOURCES) $(EXTRA_LIBS) > $@
mostlyclean:
- del *.obj
- del dctags.exe
- del respmvc
- del tags
clean: mostlyclean
- del ctags.exe