ctags.rb 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/Rakefile +23 -0
- data/ctags.rb.gemspec +23 -0
- data/ext/.gitignore +3 -0
- data/ext/extconf.rb +15 -0
- data/ext/vendor/exuberant-ctags/.gitignore +6 -0
- data/ext/vendor/exuberant-ctags/.indent.pro +31 -0
- data/ext/vendor/exuberant-ctags/COPYING +340 -0
- data/ext/vendor/exuberant-ctags/EXTENDING.html +386 -0
- data/ext/vendor/exuberant-ctags/FAQ +371 -0
- data/ext/vendor/exuberant-ctags/INSTALL +215 -0
- data/ext/vendor/exuberant-ctags/INSTALL.oth +73 -0
- data/ext/vendor/exuberant-ctags/MAINTAINERS +88 -0
- data/ext/vendor/exuberant-ctags/Makefile.in +222 -0
- data/ext/vendor/exuberant-ctags/NEWS +871 -0
- data/ext/vendor/exuberant-ctags/README +73 -0
- data/ext/vendor/exuberant-ctags/ant.c +42 -0
- data/ext/vendor/exuberant-ctags/argproc.c +505 -0
- data/ext/vendor/exuberant-ctags/args.c +274 -0
- data/ext/vendor/exuberant-ctags/args.h +63 -0
- data/ext/vendor/exuberant-ctags/asm.c +387 -0
- data/ext/vendor/exuberant-ctags/asp.c +328 -0
- data/ext/vendor/exuberant-ctags/awk.c +81 -0
- data/ext/vendor/exuberant-ctags/basic.c +203 -0
- data/ext/vendor/exuberant-ctags/beta.c +321 -0
- data/ext/vendor/exuberant-ctags/c.c +2932 -0
- data/ext/vendor/exuberant-ctags/cobol.c +50 -0
- data/ext/vendor/exuberant-ctags/config.h.in +277 -0
- data/ext/vendor/exuberant-ctags/configure +7704 -0
- data/ext/vendor/exuberant-ctags/configure.ac +532 -0
- data/ext/vendor/exuberant-ctags/ctags.1 +1186 -0
- data/ext/vendor/exuberant-ctags/ctags.h +28 -0
- data/ext/vendor/exuberant-ctags/ctags.html +2087 -0
- data/ext/vendor/exuberant-ctags/ctags.spec +40 -0
- data/ext/vendor/exuberant-ctags/debug.c +113 -0
- data/ext/vendor/exuberant-ctags/debug.h +70 -0
- data/ext/vendor/exuberant-ctags/descrip.mms +68 -0
- data/ext/vendor/exuberant-ctags/dosbatch.c +42 -0
- data/ext/vendor/exuberant-ctags/e_amiga.h +24 -0
- data/ext/vendor/exuberant-ctags/e_djgpp.h +47 -0
- data/ext/vendor/exuberant-ctags/e_mac.h +143 -0
- data/ext/vendor/exuberant-ctags/e_msoft.h +76 -0
- data/ext/vendor/exuberant-ctags/e_os2.h +37 -0
- data/ext/vendor/exuberant-ctags/e_qdos.h +34 -0
- data/ext/vendor/exuberant-ctags/e_riscos.h +58 -0
- data/ext/vendor/exuberant-ctags/e_vms.h +31 -0
- data/ext/vendor/exuberant-ctags/eiffel.c +1352 -0
- data/ext/vendor/exuberant-ctags/entry.c +847 -0
- data/ext/vendor/exuberant-ctags/entry.h +103 -0
- data/ext/vendor/exuberant-ctags/erlang.c +189 -0
- data/ext/vendor/exuberant-ctags/flex.c +2243 -0
- data/ext/vendor/exuberant-ctags/fortran.c +2197 -0
- data/ext/vendor/exuberant-ctags/general.h +127 -0
- data/ext/vendor/exuberant-ctags/get.c +669 -0
- data/ext/vendor/exuberant-ctags/get.h +50 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/all-wcprops +47 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/entries +112 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/README.txt.svn-base +5 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regcomp.c.svn-base +3818 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regex.c.svn-base +74 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regex.h.svn-base +575 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regex_internal.c.svn-base +1713 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regex_internal.h.svn-base +773 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regexec.c.svn-base +4338 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/README.txt +5 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/regcomp.c +3818 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/regex.c +74 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/regex.h +575 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/regex_internal.c +1713 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/regex_internal.h +773 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/regexec.c +4338 -0
- data/ext/vendor/exuberant-ctags/html.c +49 -0
- data/ext/vendor/exuberant-ctags/jscript.c +1572 -0
- data/ext/vendor/exuberant-ctags/keyword.c +258 -0
- data/ext/vendor/exuberant-ctags/keyword.h +34 -0
- data/ext/vendor/exuberant-ctags/lisp.c +139 -0
- data/ext/vendor/exuberant-ctags/lregex.c +704 -0
- data/ext/vendor/exuberant-ctags/lua.c +133 -0
- data/ext/vendor/exuberant-ctags/mac.c +273 -0
- data/ext/vendor/exuberant-ctags/magic.diff +21 -0
- data/ext/vendor/exuberant-ctags/main.c +584 -0
- data/ext/vendor/exuberant-ctags/main.h +32 -0
- data/ext/vendor/exuberant-ctags/maintainer.mak +476 -0
- data/ext/vendor/exuberant-ctags/make.c +217 -0
- data/ext/vendor/exuberant-ctags/matlab.c +44 -0
- data/ext/vendor/exuberant-ctags/mk_bc3.mak +46 -0
- data/ext/vendor/exuberant-ctags/mk_bc5.mak +49 -0
- data/ext/vendor/exuberant-ctags/mk_djg.mak +18 -0
- data/ext/vendor/exuberant-ctags/mk_manx.mak +65 -0
- data/ext/vendor/exuberant-ctags/mk_mingw.mak +31 -0
- data/ext/vendor/exuberant-ctags/mk_mpw.mak +130 -0
- data/ext/vendor/exuberant-ctags/mk_mvc.mak +40 -0
- data/ext/vendor/exuberant-ctags/mk_os2.mak +104 -0
- data/ext/vendor/exuberant-ctags/mk_qdos.mak +100 -0
- data/ext/vendor/exuberant-ctags/mk_sas.mak +63 -0
- data/ext/vendor/exuberant-ctags/mkinstalldirs +40 -0
- data/ext/vendor/exuberant-ctags/ocaml.c +1842 -0
- data/ext/vendor/exuberant-ctags/options.c +1842 -0
- data/ext/vendor/exuberant-ctags/options.h +155 -0
- data/ext/vendor/exuberant-ctags/parse.c +677 -0
- data/ext/vendor/exuberant-ctags/parse.h +129 -0
- data/ext/vendor/exuberant-ctags/parsers.h +63 -0
- data/ext/vendor/exuberant-ctags/pascal.c +267 -0
- data/ext/vendor/exuberant-ctags/perl.c +382 -0
- data/ext/vendor/exuberant-ctags/php.c +237 -0
- data/ext/vendor/exuberant-ctags/python.c +771 -0
- data/ext/vendor/exuberant-ctags/qdos.c +106 -0
- data/ext/vendor/exuberant-ctags/read.c +569 -0
- data/ext/vendor/exuberant-ctags/read.h +116 -0
- data/ext/vendor/exuberant-ctags/readtags.c +959 -0
- data/ext/vendor/exuberant-ctags/readtags.h +252 -0
- data/ext/vendor/exuberant-ctags/rexx.c +39 -0
- data/ext/vendor/exuberant-ctags/routines.c +891 -0
- data/ext/vendor/exuberant-ctags/routines.h +134 -0
- data/ext/vendor/exuberant-ctags/ruby.c +408 -0
- data/ext/vendor/exuberant-ctags/scheme.c +111 -0
- data/ext/vendor/exuberant-ctags/sh.c +115 -0
- data/ext/vendor/exuberant-ctags/slang.c +41 -0
- data/ext/vendor/exuberant-ctags/sml.c +212 -0
- data/ext/vendor/exuberant-ctags/sort.c +230 -0
- data/ext/vendor/exuberant-ctags/sort.h +32 -0
- data/ext/vendor/exuberant-ctags/source.mak +122 -0
- data/ext/vendor/exuberant-ctags/sql.c +2112 -0
- data/ext/vendor/exuberant-ctags/strlist.c +281 -0
- data/ext/vendor/exuberant-ctags/strlist.h +54 -0
- data/ext/vendor/exuberant-ctags/tcl.c +116 -0
- data/ext/vendor/exuberant-ctags/tex.c +524 -0
- data/ext/vendor/exuberant-ctags/verilog.c +340 -0
- data/ext/vendor/exuberant-ctags/vhdl.c +835 -0
- data/ext/vendor/exuberant-ctags/vim.c +636 -0
- data/ext/vendor/exuberant-ctags/vstring.c +232 -0
- data/ext/vendor/exuberant-ctags/vstring.h +85 -0
- data/ext/vendor/exuberant-ctags/yacc.c +40 -0
- data/lib/ctags/exuberant.rb +45 -0
- data/lib/ctags/version.rb +3 -0
- data/lib/ctags.rb +6 -0
- data/test/test_ctags.rb +24 -0
- metadata +233 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
/*
|
2
|
+
* $Id$
|
3
|
+
*
|
4
|
+
* Copyright (c) 2008, David Fishburn
|
5
|
+
*
|
6
|
+
* This source code is released for free distribution under the terms of the
|
7
|
+
* GNU General Public License.
|
8
|
+
*
|
9
|
+
* This module contains functions for generating tags for MATLAB language files.
|
10
|
+
*/
|
11
|
+
|
12
|
+
/*
|
13
|
+
* INCLUDE FILES
|
14
|
+
*/
|
15
|
+
#include "general.h" /* must always come first */
|
16
|
+
|
17
|
+
#include <string.h>
|
18
|
+
#include "parse.h"
|
19
|
+
|
20
|
+
/*
|
21
|
+
* FUNCTION DEFINITIONS
|
22
|
+
*/
|
23
|
+
|
24
|
+
static void installMatLabRegex (const langType language)
|
25
|
+
{
|
26
|
+
/* function [x,y,z] = asdf */
|
27
|
+
addTagRegex (language, "^function[ \t]*\\[.*\\][ \t]*=[ \t]*([a-zA-Z0-9_]+)", "\\1", "f,function", NULL);
|
28
|
+
/* function x = asdf */
|
29
|
+
addTagRegex (language, "^function[ \t]*[a-zA-Z0-9_]+[ \t]*=[ \t]*([a-zA-Z0-9_]+)", "\\1", "f,function", NULL);
|
30
|
+
/* function asdf */
|
31
|
+
addTagRegex (language, "^function[ \t]*([a-zA-Z0-9_]+)[^=]*$", "\\1", "f,function", NULL);
|
32
|
+
}
|
33
|
+
|
34
|
+
extern parserDefinition* MatLabParser ()
|
35
|
+
{
|
36
|
+
static const char *const extensions [] = { "m", NULL };
|
37
|
+
parserDefinition* const def = parserNew ("MatLab");
|
38
|
+
def->extensions = extensions;
|
39
|
+
def->initialize = installMatLabRegex;
|
40
|
+
def->regex = TRUE;
|
41
|
+
return def;
|
42
|
+
}
|
43
|
+
|
44
|
+
/* vi:set tabstop=4 shiftwidth=4: */
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# $Id: mk_bc3.mak 278 2003-02-24 02:27:53Z darren $
|
2
|
+
#
|
3
|
+
# Simple makefile for Borland C++ 3.1
|
4
|
+
|
5
|
+
!include source.mak
|
6
|
+
|
7
|
+
# Adjust the paths to your location of the borland C files
|
8
|
+
BCCLOC = c:\borlandc
|
9
|
+
CC = $(BCCLOC)\bin\bcc
|
10
|
+
INC = -I$(BCCLOC)\include
|
11
|
+
LIB = -L$(BCCLOC)\lib
|
12
|
+
|
13
|
+
# Add this file for wildcard expansion (does NOT work with 4.0!)
|
14
|
+
#EXTRA = $(BCCLOC)\lib\wildargs.obj
|
15
|
+
|
16
|
+
# The following compile options can be changed for better machines.
|
17
|
+
# replace -1- with -2 to produce code for a 80286 or higher
|
18
|
+
# replace -1- with -3 to produce code for a 80386 or higher
|
19
|
+
# add -v for source debugging
|
20
|
+
OPTIMIZE= -1- -O1
|
21
|
+
|
22
|
+
CFLAGS = -DMSDOS -ml -d -w-ccc -w-par -w-pia -w-rch -w-sus $(INC)
|
23
|
+
LFLAGS = $(LIB) $(EXTRA)
|
24
|
+
EXTRA_LIBS =
|
25
|
+
|
26
|
+
ctags.exe: $(SOURCES) respbc3
|
27
|
+
$(CC) $(OPTIMIZE) -e$@ @respbc3
|
28
|
+
|
29
|
+
debug: dctags.exe
|
30
|
+
|
31
|
+
dctags.exe: $(SOURCES) respbc3 debug.c
|
32
|
+
$(CC) -DDEBUG -v -e$@ @respbc3 debug.c
|
33
|
+
|
34
|
+
respbc3: mk_bc3.mak
|
35
|
+
copy &&|
|
36
|
+
$(CFLAGS)
|
37
|
+
$(LFLAGS)
|
38
|
+
$(SOURCES)
|
39
|
+
$(EXTRA_LIBS)
|
40
|
+
| $@
|
41
|
+
|
42
|
+
clean:
|
43
|
+
del *.exe
|
44
|
+
del *.obj
|
45
|
+
del respbc3
|
46
|
+
del tags
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# $Id: mk_bc5.mak 623 2007-09-10 02:52:22Z dhiebert $
|
2
|
+
#
|
3
|
+
# Makefile for Win32 using Borland C++ compiler, version 5.5 (free version)
|
4
|
+
|
5
|
+
!include source.mak
|
6
|
+
|
7
|
+
REGEX_DEFINE = -DHAVE_REGCOMP -DREGEX_MALLOC -DSTDC_HEADERS=1
|
8
|
+
DEFINES = -DWIN32 $(REGEX_DEFINE)
|
9
|
+
INCLUDES = -I. -Ignu_regex
|
10
|
+
WARNINGS = -w-aus -w-par -w-pia -w-pro -w-sus
|
11
|
+
CFLAGS = -d -DSTRICT -lTpe -lap
|
12
|
+
BCC = bcc32
|
13
|
+
|
14
|
+
# Optimizations if your platform supports all of them.
|
15
|
+
OPT = -O2 -OS -lGt
|
16
|
+
|
17
|
+
# Allows multithreading
|
18
|
+
#MT_OPT = -tWM -lcw32mt
|
19
|
+
|
20
|
+
ctags: ctags.exe
|
21
|
+
|
22
|
+
ctags.exe: respbc5
|
23
|
+
$(BCC) $(OPT) $(MT_OPT) -e$@ $(LDFLAGS) @respbc5
|
24
|
+
|
25
|
+
readtags.exe: readtags.c
|
26
|
+
$(BCC) $(CFLAGS) $(OPT) $(MT_OPT) -e$@ $(DEFINES) -DREADTAGS_MAIN readtags.c $(LDFLAGS)
|
27
|
+
|
28
|
+
# Debug version
|
29
|
+
dctags.exe: respbc5
|
30
|
+
$(BCC) -DDEBUG -e$@ $(LDFLAGS) @respbc5 debug.c
|
31
|
+
|
32
|
+
regex.obj:
|
33
|
+
$(BCC) -c -o$@ -w- $(DEFINES) -Dconst= $(INCLUDES)
|
34
|
+
|
35
|
+
respbc5: $(SOURCES) $(REGEX_SOURCES) $(HEADERS) $(REGEX_HEADERS) mk_bc5.mak
|
36
|
+
echo $(DEFINES) $(INCLUDES) > $@
|
37
|
+
echo $(WARNINGS) >> $@
|
38
|
+
echo $(CFLAGS) >> $@
|
39
|
+
echo $(SOURCES) $(REGEX_SOURCES) >> $@
|
40
|
+
|
41
|
+
mostlyclean:
|
42
|
+
- del *.obj
|
43
|
+
- del *.tds
|
44
|
+
- del dctags.exe
|
45
|
+
- del respbc5
|
46
|
+
- del tags
|
47
|
+
|
48
|
+
clean: mostlyclean
|
49
|
+
- del ctags.exe
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# $Id: mk_djg.mak 307 2003-03-31 04:53:22Z darren $
|
2
|
+
#
|
3
|
+
# The most simplistic Makefile, for DJGPP Version 2 on Windows
|
4
|
+
#
|
5
|
+
# Rather than using this makefile, it is preferable to run "configure", then
|
6
|
+
# "make" under BASH on DJGPP (i.e. the standard means of building a package on
|
7
|
+
# Unix), but you have to have a fuller complement of DJGPP packages installed
|
8
|
+
# to do this.
|
9
|
+
|
10
|
+
include source.mak
|
11
|
+
|
12
|
+
CFLAGS = -O2 -Wall -DMSDOS
|
13
|
+
|
14
|
+
ctags.exe: $(SOURCES)
|
15
|
+
gcc $(CFLAGS) -s -o ctags.exe $(SOURCES) -lpc
|
16
|
+
|
17
|
+
clean:
|
18
|
+
del ctags.exe
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# $Id: mk_manx.mak 264 2003-02-13 02:59:30Z darren $
|
2
|
+
#
|
3
|
+
# Makefile for ctags on the Amiga, using Aztec/Manx C 5.0 or later
|
4
|
+
|
5
|
+
OBJEXT = o
|
6
|
+
|
7
|
+
OBJECTS = \
|
8
|
+
args.$(OBJEXT) \
|
9
|
+
asm.$(OBJEXT) \
|
10
|
+
asp.$(OBJEXT) \
|
11
|
+
awk.$(OBJEXT) \
|
12
|
+
beta.$(OBJEXT) \
|
13
|
+
c.$(OBJEXT) \
|
14
|
+
cobol.$(OBJEXT) \
|
15
|
+
eiffel.$(OBJEXT) \
|
16
|
+
entry.$(OBJEXT) \
|
17
|
+
erlang.$(OBJEXT) \
|
18
|
+
fortran.$(OBJEXT) \
|
19
|
+
get.$(OBJEXT) \
|
20
|
+
keyword.$(OBJEXT) \
|
21
|
+
lisp.$(OBJEXT) \
|
22
|
+
lregex.$(OBJEXT) \
|
23
|
+
lua.$(OBJEXT) \
|
24
|
+
main.$(OBJEXT) \
|
25
|
+
make.$(OBJEXT) \
|
26
|
+
options.$(OBJEXT) \
|
27
|
+
parse.$(OBJEXT) \
|
28
|
+
pascal.$(OBJEXT) \
|
29
|
+
perl.$(OBJEXT) \
|
30
|
+
php.$(OBJEXT) \
|
31
|
+
python.$(OBJEXT) \
|
32
|
+
read.$(OBJEXT) \
|
33
|
+
rexx.$(OBJEXT) \
|
34
|
+
routines.$(OBJEXT) \
|
35
|
+
ruby.$(OBJEXT) \
|
36
|
+
scheme.$(OBJEXT) \
|
37
|
+
sh.$(OBJEXT) \
|
38
|
+
slang.$(OBJEXT) \
|
39
|
+
sort.$(OBJEXT) \
|
40
|
+
sml.$(OBJEXT) \
|
41
|
+
sql.$(OBJEXT) \
|
42
|
+
strlist.$(OBJEXT) \
|
43
|
+
tcl.$(OBJEXT) \
|
44
|
+
verilog.$(OBJEXT) \
|
45
|
+
vim.$(OBJEXT) \
|
46
|
+
vstring.$(OBJEXT) \
|
47
|
+
yacc.$(OBJEXT)
|
48
|
+
|
49
|
+
CC = cc
|
50
|
+
|
51
|
+
#>>>>> choose between debugging (-bs) or optimizing (-so)
|
52
|
+
OPTIONS = -so
|
53
|
+
#OPTIONS = -bs
|
54
|
+
|
55
|
+
#>>>>>> choose -g for debugging
|
56
|
+
LN_DEBUG =
|
57
|
+
#LN_DEBUG = -g
|
58
|
+
|
59
|
+
CFLAGS = $(OPTIONS) -wapruq -ps -qf -DAMIGA -Dconst=
|
60
|
+
|
61
|
+
Ctags: $(OBJECTS)
|
62
|
+
ln +q -m $(LN_DEBUG) -o Ctags $(OBJECTS) -lc16 -lm16
|
63
|
+
|
64
|
+
.c.o:
|
65
|
+
$(CC) $(CFLAGS) -o $*.o $*.c
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# $Id: mk_mingw.mak 723 2009-07-09 20:53:19Z dhiebert $
|
2
|
+
#
|
3
|
+
# Makefile for Exuberant Ctags under Win32 with MinGW compiler
|
4
|
+
#
|
5
|
+
|
6
|
+
include source.mak
|
7
|
+
|
8
|
+
REGEX_DEFINES = -DHAVE_REGCOMP -D__USE_GNU -Dbool=int -Dfalse=0 -Dtrue=1 -Dstrcasecmp=stricmp
|
9
|
+
|
10
|
+
CFLAGS = -Wall
|
11
|
+
DEFINES = -DWIN32 $(REGEX_DEFINES)
|
12
|
+
INCLUDES = -I. -Ignu_regex
|
13
|
+
CC = gcc
|
14
|
+
|
15
|
+
ctags.exe: OPT = -O4
|
16
|
+
dctags.exe: OPT = -g
|
17
|
+
dctags.exe: DEBUG = -DDEBUG
|
18
|
+
dctags.exe: SOURCES += debug.c
|
19
|
+
|
20
|
+
ctags: ctags.exe
|
21
|
+
|
22
|
+
ctags.exe dctags.exe: $(SOURCES) $(REGEX_SOURCES) $(HEADERS) $(REGEX_HEADERS)
|
23
|
+
$(CC) $(OPT) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $(SOURCES) $(REGEX_SOURCES)
|
24
|
+
|
25
|
+
readtags.exe: readtags.c
|
26
|
+
$(CC) $(OPT) $(CFLAGS) -DREADTAGS_MAIN $(DEFINES) $(INCLUDES) -o $@ $<
|
27
|
+
|
28
|
+
clean:
|
29
|
+
- rm -f ctags.exe
|
30
|
+
- rm -f dctags.exe
|
31
|
+
- rm -f tags
|
@@ -0,0 +1,130 @@
|
|
1
|
+
# $Id: mk_mpw.mak 264 2003-02-13 02:59:30Z darren $
|
2
|
+
#
|
3
|
+
# Makefile for Macintosh using MPW
|
4
|
+
#
|
5
|
+
# Created by: Maarten L. Hekkelman <maarten@hekkelman.com>
|
6
|
+
|
7
|
+
HEADERS = �
|
8
|
+
args.h ctags.h debug.h entry.h general.h get.h keyword.h �
|
9
|
+
main.h options.h parse.h parsers.h read.h routines.h sort.h �
|
10
|
+
strlist.h vstring.h mac.h
|
11
|
+
|
12
|
+
SOURCES = �
|
13
|
+
args.c �
|
14
|
+
asm.c �
|
15
|
+
asp.c �
|
16
|
+
awk.c �
|
17
|
+
beta.c �
|
18
|
+
c.c �
|
19
|
+
cobol.c �
|
20
|
+
eiffel.c �
|
21
|
+
entry.c �
|
22
|
+
erlang.c �
|
23
|
+
fortran.c �
|
24
|
+
get.c �
|
25
|
+
keyword.c �
|
26
|
+
lisp.c �
|
27
|
+
lregex.c �
|
28
|
+
lua.c �
|
29
|
+
main.c �
|
30
|
+
make.c �
|
31
|
+
options.c �
|
32
|
+
parse.c �
|
33
|
+
pascal.c �
|
34
|
+
perl.c �
|
35
|
+
php.c �
|
36
|
+
python.c �
|
37
|
+
read.c �
|
38
|
+
rexx.c � �
|
39
|
+
routines.c �
|
40
|
+
ruby.c �
|
41
|
+
scheme.c �
|
42
|
+
sh.c �
|
43
|
+
slang.c �
|
44
|
+
sort.c �
|
45
|
+
sml.c �
|
46
|
+
sql.c �
|
47
|
+
strlist.c �
|
48
|
+
tcl.c �
|
49
|
+
verilog.c �
|
50
|
+
vim.c �
|
51
|
+
vstring.c �
|
52
|
+
yacc.c �
|
53
|
+
mac.c
|
54
|
+
|
55
|
+
OBJ = �
|
56
|
+
args.o �
|
57
|
+
asm.o �
|
58
|
+
asp.o �
|
59
|
+
awk.o �
|
60
|
+
beta.o �
|
61
|
+
c.o �
|
62
|
+
cobol.o �
|
63
|
+
eiffel.o �
|
64
|
+
entry.o �
|
65
|
+
erlang.o �
|
66
|
+
fortran.o �
|
67
|
+
get.o �
|
68
|
+
keyword.o �
|
69
|
+
lisp.o �
|
70
|
+
lregex.o �
|
71
|
+
lua.o �
|
72
|
+
main.o �
|
73
|
+
make.o �
|
74
|
+
options.o �
|
75
|
+
parse.o �
|
76
|
+
pascal.o �
|
77
|
+
perl.o �
|
78
|
+
php.o �
|
79
|
+
python.o �
|
80
|
+
read.o �
|
81
|
+
rexx.o �
|
82
|
+
routines.o �
|
83
|
+
ruby.o �
|
84
|
+
scheme.o �
|
85
|
+
sh.o �
|
86
|
+
slang.o �
|
87
|
+
sort.o �
|
88
|
+
sml.o �
|
89
|
+
sql.o �
|
90
|
+
strlist.o �
|
91
|
+
tcl.o �
|
92
|
+
verilog.o �
|
93
|
+
vim.o �
|
94
|
+
vstring.o �
|
95
|
+
yacc.o �
|
96
|
+
mac.o
|
97
|
+
|
98
|
+
LIBS = �
|
99
|
+
{PPCLibraries}PPCToolLibs.o �
|
100
|
+
{SharedLibraries}MathLib �
|
101
|
+
{SharedLibraries}InterfaceLib �
|
102
|
+
{SharedLibraries}StdCLib �
|
103
|
+
{MWPPCLibraries}'MSL StdCRuntime.Lib'
|
104
|
+
|
105
|
+
CC = mwcppc
|
106
|
+
LD = mwlinkppc
|
107
|
+
|
108
|
+
# Using -nodefaults to avoid having {MWCIncludes} in our include paths
|
109
|
+
# Needed since we're building a MPW Tool and not an application.
|
110
|
+
COptions = -nodefaults -i : -i- -i {CIncludes} -opt full
|
111
|
+
LOptions = -xm m -stacksize 128
|
112
|
+
|
113
|
+
all � CTags
|
114
|
+
|
115
|
+
CTags � TurnOfEcho {OBJ}
|
116
|
+
{LD} {LOptions} -o CTags {OBJ} {LIBS}
|
117
|
+
|
118
|
+
{OBJ} � {HEADERS}
|
119
|
+
|
120
|
+
tags � CTags
|
121
|
+
:CTags -p. {SOURCES} {HEADERS}
|
122
|
+
|
123
|
+
clean �
|
124
|
+
Delete -y -i {OBJ} {CTags} tags
|
125
|
+
|
126
|
+
.o � .c
|
127
|
+
{CC} {depDir}{default}.c -o {targDir}{default}.o {COptions}
|
128
|
+
|
129
|
+
TurnOfEcho �
|
130
|
+
set echo 0
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# $Id: mk_mvc.mak 724 2009-07-09 20:54:01Z dhiebert $
|
2
|
+
#
|
3
|
+
# Makefile for Win32 using Microsoft Visual C++ compiler
|
4
|
+
|
5
|
+
include source.mak
|
6
|
+
|
7
|
+
REGEX_DEFINES = -DHAVE_REGCOMP -D__USE_GNU -Dbool=int -Dfalse=0 -Dtrue=1 -Dstrcasecmp=stricmp
|
8
|
+
DEFINES = -DWIN32 $(REGEX_DEFINES)
|
9
|
+
INCLUDES = -I. -Ignu_regex
|
10
|
+
OPT = /O2
|
11
|
+
|
12
|
+
ctags: ctags.exe
|
13
|
+
|
14
|
+
ctags.exe: respmvc
|
15
|
+
cl $(OPT) /Fe$@ @respmvc /link setargv.obj
|
16
|
+
|
17
|
+
readtags.exe: readtags.c
|
18
|
+
cl /clr $(OPT) /Fe$@ $(DEFINES) -DREADTAGS_MAIN readtags.c /link setargv.obj
|
19
|
+
|
20
|
+
# Debug version
|
21
|
+
dctags.exe: respmvc
|
22
|
+
cl /Zi -DDEBUG /Fe$@ @respmvc debug.c /link setargv.obj
|
23
|
+
|
24
|
+
regex.obj:
|
25
|
+
cl /c $(OPT) /Fo$@ $(INCLUDES) $(DEFINES) gnu_regex/regex.c
|
26
|
+
|
27
|
+
respmvc: $(SOURCES) $(REGEX_SOURCES) $(HEADERS) $(REGEX_HEADERS) mk_mvc.mak
|
28
|
+
echo $(DEFINES) > $@
|
29
|
+
echo $(INCLUDES) >> $@
|
30
|
+
echo $(SOURCES) >> $@
|
31
|
+
echo $(REGEX_SOURCES) >> $@
|
32
|
+
|
33
|
+
mostlyclean:
|
34
|
+
- del *.obj
|
35
|
+
- del dctags.exe
|
36
|
+
- del respmvc
|
37
|
+
- del tags
|
38
|
+
|
39
|
+
clean: mostlyclean
|
40
|
+
- del ctags.exe
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# $Id: mk_os2.mak 74 2002-01-27 21:20:55Z darren $
|
2
|
+
#
|
3
|
+
# A Makefile for OS/2 using EMX/gcc
|
4
|
+
# You may want to use the OS/2 port of autoconf for building
|
5
|
+
# and comment-out the according statements in this Makefile.
|
6
|
+
# You need a library to provide regex support.
|
7
|
+
# libExt might do this, but currently (2/2001) it doesn't work well
|
8
|
+
# together with ctags ...
|
9
|
+
#
|
10
|
+
# Provided and supported by
|
11
|
+
# Alexander Mai
|
12
|
+
# <st002279@hrzpub.tu-darmstadt.de> or <amai@users.sf.net>
|
13
|
+
|
14
|
+
default:
|
15
|
+
@echo "Enter $(MAKE) -f mk_os2.mak target"
|
16
|
+
@echo "where target is one of:"
|
17
|
+
@echo " small (small executable req. EMX runtime)"
|
18
|
+
@echo " debug (executable for debugging purposes)"
|
19
|
+
@echo " release (stand-alone executable)"
|
20
|
+
@echo " clean (remove all files built)"
|
21
|
+
|
22
|
+
# Use this to create a small binary
|
23
|
+
# (requires EMX runtime libraries)
|
24
|
+
small:
|
25
|
+
$(MAKE) -f mk_os2.mak all \
|
26
|
+
CC="gcc" \
|
27
|
+
CFLAGS="-O5 -mpentium -Wall" \
|
28
|
+
LFLAGS="-Zcrtdll -s" \
|
29
|
+
LIBS="-lregex" \
|
30
|
+
OBJEXT="o"
|
31
|
+
|
32
|
+
# Use this to create a binary for debugging purposes
|
33
|
+
# (requires EMX runtime libraries)
|
34
|
+
debug:
|
35
|
+
$(MAKE) -f mk_os2.mak all \
|
36
|
+
CC="gcc" \
|
37
|
+
CFLAGS="-O0 -Wall -g" \
|
38
|
+
LFLAGS="-Zcrtdll -g" \
|
39
|
+
LIBS="-lregex" \
|
40
|
+
OBJEXT="o"
|
41
|
+
|
42
|
+
# Use this to create a stand-alone binary for distribution
|
43
|
+
# (requires link386 for linking but no EMX runtime libraries)
|
44
|
+
release:
|
45
|
+
$(MAKE) -f mk_os2.mak all \
|
46
|
+
CC="gcc" \
|
47
|
+
CFLAGS="-g -O5 -mpentium -Wall" \
|
48
|
+
LFLAGS="-s -Zomf -Zsys -Zlinker /PM:VIO" \
|
49
|
+
LIBS="-lregex" \
|
50
|
+
OBJEXT="obj"
|
51
|
+
|
52
|
+
# Use the line below if you have created config.h
|
53
|
+
# (manually or by running configure)
|
54
|
+
# Otherwise use built-in defaults (#ifdef OS2)!
|
55
|
+
# DEFINES=-DHAVE_CONFIG_H
|
56
|
+
DEFINES=-DOS2
|
57
|
+
|
58
|
+
|
59
|
+
# General rules and definitions
|
60
|
+
|
61
|
+
.SUFFIXES: .c .exe .h .o .obj
|
62
|
+
|
63
|
+
include source.mak
|
64
|
+
|
65
|
+
all: ctags.exe readtags.exe readtags.a readtags.lib
|
66
|
+
ctags: ctags.exe
|
67
|
+
etags: etags.exe
|
68
|
+
|
69
|
+
ctags.exe: $(OBJECTS)
|
70
|
+
$(CC) $(CFLAGS) $(LFLAGS) -o $@ $^ $(LIBS)
|
71
|
+
|
72
|
+
etags.exe: ctags.exe
|
73
|
+
@copy $< $@
|
74
|
+
|
75
|
+
# The readtags executable
|
76
|
+
readtags.exe: readtags.c
|
77
|
+
$(CC) $(CFLAGS) $(DEFINES) $(LFLAGS) -DREADTAGS_MAIN -o $@ $^ $(LIBS)
|
78
|
+
|
79
|
+
# We build a.out and omf version of the readtags library
|
80
|
+
readtags.o: readtags.c
|
81
|
+
$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $^
|
82
|
+
|
83
|
+
readtags.a: readtags.o
|
84
|
+
if exist $@ del $@
|
85
|
+
ar rc $@ $^
|
86
|
+
|
87
|
+
readtags.lib: readtags.a
|
88
|
+
emxomf $<
|
89
|
+
|
90
|
+
.c.o:
|
91
|
+
$(CC) $(CFLAGS) $(DEFINES) -I. -c $< -o $@
|
92
|
+
|
93
|
+
.c.obj:
|
94
|
+
$(CC) $(CFLAGS) -Zomf $(DEFINES) -I. -c $< -o $@
|
95
|
+
|
96
|
+
# Delete all files that are not part of the source distribution
|
97
|
+
clean:
|
98
|
+
@if exist ctags.exe del ctags.exe
|
99
|
+
@if exist etags.exe del etags.exe
|
100
|
+
@if exist readtags.exe del readtags.exe
|
101
|
+
@if exist readtags.a del readtags.a
|
102
|
+
@if exist readtags.lib del readtags.lib
|
103
|
+
@if exist *.obj del *.obj
|
104
|
+
@if exist *.o del *.o
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# $Id: mk_qdos.mak 264 2003-02-13 02:59:30Z darren $
|
2
|
+
#
|
3
|
+
# Makefile for ctags on QDOS/SMS systems and C68 v4.24
|
4
|
+
# Submitted by Thierry Godefroy <godefroy@imaginet.fr>
|
5
|
+
|
6
|
+
# Directories:
|
7
|
+
|
8
|
+
T = ram1_
|
9
|
+
P = drv1_C68_
|
10
|
+
|
11
|
+
# Programs name:
|
12
|
+
|
13
|
+
CC = $(P)cc
|
14
|
+
AS = $(P)as68
|
15
|
+
ASM = $(P)qmac
|
16
|
+
LD = $(P)ld
|
17
|
+
|
18
|
+
# Programs flags:
|
19
|
+
|
20
|
+
CCFLAGS = -tmp$(T) -v -Y$(P) -I$(P)include_ -O
|
21
|
+
ASFLAGS = -V
|
22
|
+
ASMFLAGS = -nolist
|
23
|
+
LDFLAGS = -v -L$(P)lib_ -bufp150K\
|
24
|
+
|
25
|
+
# Target name:
|
26
|
+
|
27
|
+
EXEC = ctags
|
28
|
+
|
29
|
+
# Additional libraries:
|
30
|
+
|
31
|
+
LIBS =
|
32
|
+
|
33
|
+
# Target dependencies:
|
34
|
+
|
35
|
+
OBJEXT = o
|
36
|
+
|
37
|
+
HEADERS = e_qdos.h \
|
38
|
+
args.h ctags.h debug.h entry.h general.h get.h keyword.h \
|
39
|
+
main.h options.h parse.h parsers.h read.h routines.h sort.h \
|
40
|
+
strlist.h vstring.h
|
41
|
+
|
42
|
+
OBJECTS = qdos.$(OBJEXT) \
|
43
|
+
args.$(OBJEXT) \
|
44
|
+
asm.$(OBJEXT) \
|
45
|
+
asp.$(OBJEXT) \
|
46
|
+
awk.$(OBJEXT) \
|
47
|
+
beta.$(OBJEXT) \
|
48
|
+
c.$(OBJEXT) \
|
49
|
+
cobol.$(OBJEXT) \
|
50
|
+
eiffel.$(OBJEXT) \
|
51
|
+
entry.$(OBJEXT) \
|
52
|
+
erlang.$(OBJEXT) \
|
53
|
+
fortran.$(OBJEXT) \
|
54
|
+
get.$(OBJEXT) \
|
55
|
+
keyword.$(OBJEXT) \
|
56
|
+
lisp.$(OBJEXT) \
|
57
|
+
lregex.$(OBJEXT) \
|
58
|
+
lua.$(OBJEXT) \
|
59
|
+
main.$(OBJEXT) \
|
60
|
+
make.$(OBJEXT) \
|
61
|
+
options.$(OBJEXT) \
|
62
|
+
parse.$(OBJEXT) \
|
63
|
+
pascal.$(OBJEXT) \
|
64
|
+
perl.$(OBJEXT) \
|
65
|
+
php.$(OBJEXT) \
|
66
|
+
python.$(OBJEXT) \
|
67
|
+
read.$(OBJEXT) \
|
68
|
+
rexx.$(OBJEXT) \
|
69
|
+
routines.$(OBJEXT) \
|
70
|
+
ruby.$(OBJEXT) \
|
71
|
+
scheme.$(OBJEXT) \
|
72
|
+
sh.$(OBJEXT) \
|
73
|
+
slang.$(OBJEXT) \
|
74
|
+
sort.$(OBJEXT) \
|
75
|
+
sml.$(OBJEXT) \
|
76
|
+
sql.$(OBJEXT) \
|
77
|
+
strlist.$(OBJEXT) \
|
78
|
+
tcl.$(OBJEXT) \
|
79
|
+
verilog.$(OBJEXT) \
|
80
|
+
vim.$(OBJEXT) \
|
81
|
+
vstring.$(OBJEXT) \
|
82
|
+
yacc.$(OBJEXT)
|
83
|
+
|
84
|
+
$(EXEC) : $(OBJECTS)
|
85
|
+
$(LD) -o$(EXEC) $(LDFLAGS) $(OBJECTS) $(LIBS)
|
86
|
+
|
87
|
+
$(OBJECTS): $(HEADERS)
|
88
|
+
|
89
|
+
# Construction rules:
|
90
|
+
|
91
|
+
_c_o :
|
92
|
+
$(CC) -c $(CCFLAGS) $<
|
93
|
+
|
94
|
+
_s_o :
|
95
|
+
$(AS) $(ASFLAGS) $< $@
|
96
|
+
|
97
|
+
_asm_rel :
|
98
|
+
$(ASM) $< $(ASMFLAGS)
|
99
|
+
|
100
|
+
#end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# $Id: mk_sas.mak 264 2003-02-13 02:59:30Z darren $
|
2
|
+
#
|
3
|
+
# Makefile for SAS/C Amiga Compiler
|
4
|
+
# Submitted by Stefan Haubenthal <polluks@freeshell.org>
|
5
|
+
|
6
|
+
CFLAGS= def AMIGA opt parm r sint
|
7
|
+
|
8
|
+
OBJEXT = o
|
9
|
+
|
10
|
+
OBJECTS = \
|
11
|
+
args.$(OBJEXT) \
|
12
|
+
asm.$(OBJEXT) \
|
13
|
+
asp.$(OBJEXT) \
|
14
|
+
awk.$(OBJEXT) \
|
15
|
+
beta.$(OBJEXT) \
|
16
|
+
c.$(OBJEXT) \
|
17
|
+
cobol.$(OBJEXT) \
|
18
|
+
eiffel.$(OBJEXT) \
|
19
|
+
entry.$(OBJEXT) \
|
20
|
+
erlang.$(OBJEXT) \
|
21
|
+
fortran.$(OBJEXT) \
|
22
|
+
get.$(OBJEXT) \
|
23
|
+
keyword.$(OBJEXT) \
|
24
|
+
lisp.$(OBJEXT) \
|
25
|
+
lregex.$(OBJEXT) \
|
26
|
+
lua.$(OBJEXT) \
|
27
|
+
main.$(OBJEXT) \
|
28
|
+
make.$(OBJEXT) \
|
29
|
+
options.$(OBJEXT) \
|
30
|
+
parse.$(OBJEXT) \
|
31
|
+
pascal.$(OBJEXT) \
|
32
|
+
perl.$(OBJEXT) \
|
33
|
+
php.$(OBJEXT) \
|
34
|
+
python.$(OBJEXT) \
|
35
|
+
read.$(OBJEXT) \
|
36
|
+
rexx.$(OBJEXT) \
|
37
|
+
routines.$(OBJEXT) \
|
38
|
+
ruby.$(OBJEXT) \
|
39
|
+
scheme.$(OBJEXT) \
|
40
|
+
sh.$(OBJEXT) \
|
41
|
+
slang.$(OBJEXT) \
|
42
|
+
sort.$(OBJEXT) \
|
43
|
+
sml.$(OBJEXT) \
|
44
|
+
sql.$(OBJEXT) \
|
45
|
+
strlist.$(OBJEXT) \
|
46
|
+
tcl.$(OBJEXT) \
|
47
|
+
verilog.$(OBJEXT) \
|
48
|
+
vim.$(OBJEXT) \
|
49
|
+
vstring.$(OBJEXT) \
|
50
|
+
yacc.$(OBJEXT)
|
51
|
+
|
52
|
+
ctags: $(OBJECTS)
|
53
|
+
sc link to $@ $(OBJECTS) math s sint
|
54
|
+
|
55
|
+
.c.o:
|
56
|
+
$(CC) $(CFLAGS) -o $*.o $*.c
|
57
|
+
|
58
|
+
clean:
|
59
|
+
-delete $(OBJECTS) ctags.lnk
|
60
|
+
|
61
|
+
archive: clean
|
62
|
+
@-delete force RAM:ctags.lha
|
63
|
+
lha -r a RAM:ctags // ctags
|