Skip to content

Commit

Permalink
readtags: use external libreadtags repo
Browse files Browse the repository at this point in the history
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Mar 10, 2020
1 parent 7ccd834 commit 112a28b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ endif

if USE_READCMD
bin_PROGRAMS+= readtags
readtags_CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/main -I$(srcdir)/read
readtags_CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/main -I$(srcdir)/libreadtags
readtags_CFLAGS = $(COVERAGE_CFLAGS)
dist_readtags_SOURCES = $(READTAGS_SRCS) $(READTAGS_HEADS)
readtags_CPPFLAGS += -DREADTAGS_DSL -I$(srcdir)/dsl
Expand Down
10 changes: 6 additions & 4 deletions mk_mingw.mak
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ALL_OBJS += $(FNMATCH_OBJS)
ALL_OBJS += $(WIN32_OBJS)
ALL_OBJS += $(PEG_OBJS)
ALL_OBJS += $(RES_OBJ)
VPATH = . ./main ./parsers ./optlib ./read ./win32
VPATH = . ./main ./parsers ./optlib ./readtags-cmd ./libreadtags ./win32

ifeq (yes, $(WITH_ICONV))
DEFINES += -DHAVE_ICONV
Expand Down Expand Up @@ -106,8 +106,10 @@ ctags.exe: $(ALL_OBJS) $(ALL_HEADS) $(PEG_HEADS) $(PEG_EXTRA_HEADS) $(REGEX_HEAD
$(RES_OBJ): win32/ctags.rc win32/ctags.exe.manifest win32/resource.h
$(V_WINDRES) $(WINDRES) -o $@ -O coff $<

read/%.o: read/%.c
$(V_CC) $(CC) -c $(OPT) $(CFLAGS) -DWIN32 -Iread -o $@ $<
readtags-cmd/%.o: readtags-cmd/%.c
$(V_CC) $(CC) -c $(OPT) $(CFLAGS) -DWIN32 -Ilibreadtags -o $@ $<
libreadtags/%.o: libreadtags/%.c
$(V_CC) $(CC) -c $(OPT) $(CFLAGS) -DWIN32 -Ilibreadtags -o $@ $<

readtags.exe: $(READTAGS_OBJS) $(READTAGS_HEADS)
$(V_CC) $(CC) $(OPT) -o $@ $(READTAGS_OBJS) $(LIBS)
Expand All @@ -116,4 +118,4 @@ clean:
$(SILENT) echo Cleaning
$(SILENT) rm -f ctags.exe readtags.exe $(PACKCC)
$(SILENT) rm -f tags
$(SILENT) rm -f main/*.o optlib/*.o parsers/*.o parsers/cxx/*.o gnu_regex/*.o fnmatch/*.o misc/packcc/*.o peg/*.o read/*.o win32/*.o win32/mkstemp/*.o
$(SILENT) rm -f main/*.o optlib/*.o parsers/*.o parsers/cxx/*.o gnu_regex/*.o fnmatch/*.o misc/packcc/*.o peg/*.o readtags-cmd/*.o libreadtags/*.o win32/*.o win32/mkstemp/*.o
10 changes: 6 additions & 4 deletions mk_mvc.mak
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ REGEX_DEFINES = -DHAVE_REGCOMP -D__USE_GNU -DHAVE_STDBOOL_H -Dstrcasecmp=stricmp
OBJEXT = obj
COMMON_DEFINES =
DEFINES = -DWIN32 $(REGEX_DEFINES) -DHAVE_PACKCC $(COMMON_DEFINES) -DHAVE_REPOINFO_H
INCLUDES = -I. -Imain -Ignu_regex -Ifnmatch -Iparsers
INCLUDES = -I. -Imain -Ignu_regex -Ifnmatch -Iparsers -Ilibreadtags
OPT = /O2 /WX
PACKCC = packcc.exe
REGEX_OBJS = $(REGEX_SRCS:.c=.obj)
Expand Down Expand Up @@ -58,8 +58,10 @@ PDBFLAG =
$(CC) $(OPT) $(DEFINES) $(INCLUDES) /Foparsers\ /c $<
{parsers\cxx}.c{parsers\cxx}.obj::
$(CC) $(OPT) $(DEFINES) $(INCLUDES) /Foparsers\cxx\ /c $<
{read}.c{read}.obj::
$(CC) $(OPT) $(DEFINES) $(INCLUDES) /Foread\ /c $<
{readtags-cmd}.c{readtags-cmd}.obj::
$(CC) $(OPT) $(DEFINES) $(INCLUDES) /Foreadtags-cmd\ /c $<
{libreadtags}.c{libreadtags}.obj::
$(CC) $(OPT) $(DEFINES) $(INCLUDES) /Folibreadtags\ /c $<
{win32\mkstemp}.c{win32\mkstemp}.obj::
$(CC) $(OPT) $(DEFINES) $(INCLUDES) /Fowin32\mkstemp\ /c $<
{peg}.peg{peg}.c::
Expand Down Expand Up @@ -98,6 +100,6 @@ $(RES_OBJ): win32/ctags.rc win32/ctags.exe.manifest win32/resource.h


clean:
- del *.obj main\*.obj optlib\*.obj parsers\*.obj parsers\cxx\*.obj gnu_regex\*.obj fnmatch\*.obj misc\packcc\*.obj peg\*.obj read\*.obj win32\mkstemp\*.obj win32\*.res main\repoinfo.h
- del *.obj main\*.obj optlib\*.obj parsers\*.obj parsers\cxx\*.obj gnu_regex\*.obj fnmatch\*.obj misc\packcc\*.obj peg\*.obj readtags-cmd\*.obj libreadtags\*.obj win32\mkstemp\*.obj win32\*.res main\repoinfo.h
- del ctags.exe readtags.exe $(PACKCC)
- del tags
File renamed without changes.
6 changes: 3 additions & 3 deletions source.mak
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,11 @@ ALL_OBJS = \


READTAGS_SRCS = \
read/readtags.c \
read/readtags-cmd.c \
libreadtags/readtags.c \
readtags-cmd/readtags-cmd.c \
\
$(NULL)
READTAGS_HEADS = read/readtags.h
READTAGS_HEADS = libreadtags/readtags.h
READTAGS_OBJS = $(READTAGS_SRCS:.c=.$(OBJEXT))

PACKCC_SRCS = \
Expand Down

0 comments on commit 112a28b

Please sign in to comment.