# along with Ragel; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-BUILD_COMMON = common redfsm rlgen-cd rlgen-java rlgen-ruby rlgen-csharp rlgen-dot
BUILD_SUBDIRS = ragel
-ALL_SUBDIRS = $(BUILD_COMMON) $(BUILD_SUBDIRS) test examples doc
+ALL_SUBDIRS = $(BUILD_SUBDIRS) test examples doc
#*************************************
.PHONY: $(ALL_SUBDIRS)
-$(BUILD_COMMON):
- @cd $@ && $(MAKE)
-
$(BUILD_SUBDIRS): $(BUILD_COMMON)
@cd $@ && $(MAKE)
+++ /dev/null
-#
-# Copyright 2001-2006 Adrian Thurston <thurston@complang.org>
-#
-
-# This file is part of Ragel.
-#
-# Ragel is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# Ragel is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ragel; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-INCS += -I../aapl
-DEFS +=
-
-CXXFLAGS += -g -Wall
-LDFLAGS +=
-
-CC_SRCS = common.cpp
-
-GEN_SRC = version.h
-
-#*************************************
-prefix = @prefix@
-
-# Programs
-CXX = @CXX@
-AR = @AR@
-RANLIB = @RANLIB@
-
-# Get objects and dependencies from sources.
-OBJS = $(CC_SRCS:%.cpp=%.o)
-DEPS = $(CC_SRCS:%.cpp=.%.d)
-
-# Get the version info.
-include ../version.mk
-
-# rules
-
-all: common.a
-
-common.a: $(GEN_SRC) $(OBJS)
- $(AR) -cr $@ $(OBJS)
- $(RANLIB) $@
-
-version.h: ../version.mk
- echo '#define VERSION "$(VERSION)"' > version.h
- echo '#define PUBDATE "$(PUBDATE)"' >> version.h
- echo '#define PREFIX "$(prefix)"' >> version.h
-
-%.o: %.cpp
- @$(CXX) -M $(DEFS) $(INCS) $< > .$*.d
- $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCS) -o $@ $<
-
-distclean: clean
- rm -f Makefile config.h
-
-clean:
- rm -f tags version.h .*.d *.o common.a
-
-install: all
- @true
-
--include $(DEPS)
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-ac_config_headers="$ac_config_headers common/config.h"
+ac_config_headers="$ac_config_headers ragel/config.h"
BUILD_PARSERS=true
for ac_config_target in $ac_config_targets
do
case $ac_config_target in
- "common/config.h") CONFIG_HEADERS="$CONFIG_HEADERS common/config.h" ;;
+ "ragel/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ragel/config.h" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
"ragel/Makefile") CONFIG_FILES="$CONFIG_FILES ragel/Makefile" ;;
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
AC_INIT(ragel/main.cpp)
-AC_CONFIG_HEADER(common/config.h)
+AC_CONFIG_HEADER(ragel/config.h)
dnl Set to true if build system should generate parsers from ragel, kelbt, and
dnl gperf sources. Set to false if generated files are included and not to be
#
-# Copyright 2001-2007 Adrian Thurston <thurston@complang.org>
+# Copyright 2001-2008 Adrian Thurston <thurston@complang.org>
#
# This file is part of Ragel.
# along with Ragel; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-INCS += -I../common -I../aapl -I../redfsm
+INCS += -I../aapl
DEFS +=
CXXFLAGS += -g -Wall
CC_SRCS = \
main.cpp parsetree.cpp parsedata.cpp fsmstate.cpp fsmbase.cpp \
fsmattach.cpp fsmmin.cpp fsmgraph.cpp fsmap.cpp xmlcodegen.cpp \
- rlscan.cpp rlparse.cpp inputdata.cpp
-
-GEN_SRC = rlscan.cpp rlparse.h rlparse.cpp
-
-RAGEL_LIBS = ../common/common.a \
- ../redfsm/redfsm.a \
- ../rlgen-cd/rlgen-cd.a \
- ../rlgen-java/rlgen-java.a \
- ../rlgen-ruby/rlgen-ruby.a \
- ../rlgen-csharp/rlgen-csharp.a \
- ../rlgen-dot/rlgen-dot.a
-
-LIBS = $(RAGEL_LIBS)
+ rlscan.cpp rlparse.cpp inputdata.cpp common.cpp \
+ redfsm.cpp gendata.cpp xmltags.cpp xmlscan.cpp xmlparse.cpp \
+ cd-main.cpp cd-fsmcodegen.cpp \
+ cd-tabcodegen.cpp cd-ftabcodegen.cpp cd-flatcodegen.cpp \
+ cd-fflatcodegen.cpp cd-gotocodegen.cpp cd-fgotocodegen.cpp \
+ cd-ipgotocodegen.cpp cd-splitcodegen.cpp \
+ java-main.cpp java-javacodegen.cpp \
+ ruby-main.cpp ruby-codegen.cpp ruby-tabcodegen.cpp ruby-ftabcodegen.cpp \
+ ruby-flatcodegen.cpp ruby-fflatcodegen.cpp ruby-rbx-gotocodegen.cpp \
+ csharp-main.cpp csharp-fsmcodegen.cpp \
+ csharp-tabcodegen.cpp csharp-ftabcodegen.cpp csharp-flatcodegen.cpp \
+ csharp-fflatcodegen.cpp csharp-gotocodegen.cpp csharp-fgotocodegen.cpp \
+ csharp-ipgotocodegen.cpp csharp-splitcodegen.cpp \
+ dot-main.cpp dot-gvdotgen.cpp
+
+GEN_SRC = version.h rlscan.cpp rlparse.h rlparse.cpp \
+ xmltags.cpp xmlscan.cpp xmlparse.cpp xmlparse.h
+
+LIBS =
MINGW_LIBS = -lpsapi
#*************************************
OBJS = $(CC_SRCS:%.cpp=%.o)
DEPS = $(CC_SRCS:%.cpp=.%.d)
+# Get the version info.
+include ../version.mk
+
# Rules.
all: ragel$(EXEEXT)
-ragel$(EXEEXT): $(GEN_SRC) $(OBJS) $(RAGEL_LIBS)
+ragel$(EXEEXT): $(GEN_SRC) $(OBJS)
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
+version.h: ../version.mk
+ echo '#define VERSION "$(VERSION)"' > version.h
+ echo '#define PUBDATE "$(PUBDATE)"' >> version.h
+ echo '#define PREFIX "$(prefix)"' >> version.h
+
ifeq ($(BUILD_PARSERS),true)
rlparse.h: rlparse.kh
rlscan.cpp: rlscan.rl
ragel -G2 -o $@ $<
+xmlparse.h: xmlparse.kh
+ kelbt -o $@ $<
+
+xmlparse.cpp: xmlparse.kl xmlparse.kh
+ kelbt -o $@ $<
+
+xmlscan.cpp: xmlscan.rl
+ ragel -G2 -o xmlscan.cpp xmlscan.rl
+
+xmltags.cpp: xmltags.gperf
+ gperf -L C++ -t $< > $@
+
endif
%.o: %.cpp
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-cd.h"
-#include "fflatcodegen.h"
+#include "cd-rlgen-cd.h"
+#include "cd-fflatcodegen.h"
#include "redfsm.h"
#include "gendata.h"
#define _FFLATCODEGEN_H
#include <iostream>
-#include "flatcodegen.h"
+#include "cd-flatcodegen.h"
/* Forwards. */
struct CodeGenData;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-cd.h"
-#include "fgotocodegen.h"
+#include "cd-rlgen-cd.h"
+#include "cd-fgotocodegen.h"
#include "redfsm.h"
#include "gendata.h"
#include "bstmap.h"
#define _FGOTOCODEGEN_H
#include <iostream>
-#include "gotocodegen.h"
+#include "cd-gotocodegen.h"
/* Forwards. */
struct CodeGenData;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-cd.h"
-#include "flatcodegen.h"
+#include "cd-rlgen-cd.h"
+#include "cd-flatcodegen.h"
#include "redfsm.h"
#include "gendata.h"
#define _FLATCODEGEN_H
#include <iostream>
-#include "fsmcodegen.h"
+#include "cd-fsmcodegen.h"
/* Forwards. */
struct CodeGenData;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-cd.h"
-#include "fsmcodegen.h"
+#include "cd-rlgen-cd.h"
+#include "cd-fsmcodegen.h"
#include "redfsm.h"
#include "gendata.h"
#include <sstream>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-cd.h"
-#include "ftabcodegen.h"
+#include "cd-rlgen-cd.h"
+#include "cd-ftabcodegen.h"
#include "redfsm.h"
#include "gendata.h"
#define _FTABCODEGEN_H
#include <iostream>
-#include "tabcodegen.h"
+#include "cd-tabcodegen.h"
/* Forwards. */
struct CodeGenData;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-cd.h"
-#include "gotocodegen.h"
+#include "cd-rlgen-cd.h"
+#include "cd-gotocodegen.h"
#include "redfsm.h"
#include "bstmap.h"
#include "gendata.h"
#define _GOTOCODEGEN_H
#include <iostream>
-#include "fsmcodegen.h"
+#include "cd-fsmcodegen.h"
/* Forwards. */
struct CodeGenData;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-cd.h"
-#include "ipgotocodegen.h"
+#include "cd-rlgen-cd.h"
+#include "cd-ipgotocodegen.h"
#include "redfsm.h"
#include "gendata.h"
#include "bstmap.h"
#define _IPGCODEGEN_H
#include <iostream>
-#include "gotocodegen.h"
+#include "cd-gotocodegen.h"
/* Forwards. */
struct CodeGenData;
#include <unistd.h>
#include "common.h"
-#include "rlgen-cd.h"
+#include "cd-rlgen-cd.h"
#include "xmlparse.h"
#include "pcheck.h"
#include "vector.h"
#include "version.h"
/* Code generators. */
-#include "tabcodegen.h"
-#include "ftabcodegen.h"
-#include "flatcodegen.h"
-#include "fflatcodegen.h"
-#include "gotocodegen.h"
-#include "fgotocodegen.h"
-#include "ipgotocodegen.h"
-#include "splitcodegen.h"
+#include "cd-tabcodegen.h"
+#include "cd-ftabcodegen.h"
+#include "cd-flatcodegen.h"
+#include "cd-fflatcodegen.h"
+#include "cd-gotocodegen.h"
+#include "cd-fgotocodegen.h"
+#include "cd-ipgotocodegen.h"
+#include "cd-splitcodegen.h"
using std::istream;
using std::ifstream;
*/
-#include "rlgen-cd.h"
-#include "splitcodegen.h"
+#include "cd-rlgen-cd.h"
+#include "cd-splitcodegen.h"
#include "gendata.h"
#include <assert.h>
#ifndef _SPLITCODEGEN_H
#define _SPLITCODEGEN_H
-#include "ipgotocodegen.h"
+#include "cd-ipgotocodegen.h"
class SplitCodeGen : public IpGotoCodeGen
{
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-cd.h"
-#include "tabcodegen.h"
+#include "cd-rlgen-cd.h"
+#include "cd-tabcodegen.h"
#include "redfsm.h"
#include "gendata.h"
#define _TABCODEGEN_H
#include <iostream>
-#include "fsmcodegen.h"
+#include "cd-fsmcodegen.h"
/* Forwards. */
struct CodeGenData;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-csharp.h"
-#include "fflatcodegen.h"
+#include "csharp-rlgen-csharp.h"
+#include "csharp-fflatcodegen.h"
#include "redfsm.h"
#include "gendata.h"
#define _FFLATCODEGEN_H
#include <iostream>
-#include "flatcodegen.h"
+#include "csharp-flatcodegen.h"
/* Forwards. */
struct CodeGenData;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-csharp.h"
-#include "fgotocodegen.h"
+#include "csharp-rlgen-csharp.h"
+#include "csharp-fgotocodegen.h"
#include "redfsm.h"
#include "gendata.h"
#include "bstmap.h"
#define _FGOTOCODEGEN_H
#include <iostream>
-#include "gotocodegen.h"
+#include "csharp-gotocodegen.h"
/* Forwards. */
struct CodeGenData;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-csharp.h"
-#include "flatcodegen.h"
+#include "csharp-rlgen-csharp.h"
+#include "csharp-flatcodegen.h"
#include "redfsm.h"
#include "gendata.h"
#define _FLATCODEGEN_H
#include <iostream>
-#include "fsmcodegen.h"
+#include "csharp-fsmcodegen.h"
/* Forwards. */
struct CodeGenData;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-csharp.h"
-#include "fsmcodegen.h"
+#include "csharp-rlgen-csharp.h"
+#include "csharp-fsmcodegen.h"
#include "redfsm.h"
#include "gendata.h"
#include <sstream>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-csharp.h"
-#include "ftabcodegen.h"
+#include "csharp-rlgen-csharp.h"
+#include "csharp-ftabcodegen.h"
#include "redfsm.h"
#include "gendata.h"
#define _FTABCODEGEN_H
#include <iostream>
-#include "tabcodegen.h"
+#include "csharp-tabcodegen.h"
/* Forwards. */
struct CodeGenData;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-csharp.h"
-#include "gotocodegen.h"
+#include "csharp-rlgen-csharp.h"
+#include "csharp-gotocodegen.h"
#include "redfsm.h"
#include "bstmap.h"
#include "gendata.h"
#define _GOTOCODEGEN_H
#include <iostream>
-#include "fsmcodegen.h"
+#include "csharp-fsmcodegen.h"
/* Forwards. */
struct CodeGenData;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-csharp.h"
-#include "ipgotocodegen.h"
+#include "csharp-rlgen-csharp.h"
+#include "csharp-ipgotocodegen.h"
#include "redfsm.h"
#include "gendata.h"
#include "bstmap.h"
#define _IPGCODEGEN_H
#include <iostream>
-#include "gotocodegen.h"
+#include "csharp-gotocodegen.h"
/* Forwards. */
struct CodeGenData;
#include <unistd.h>
#include "common.h"
-#include "rlgen-csharp.h"
+#include "csharp-rlgen-csharp.h"
#include "xmlparse.h"
#include "pcheck.h"
#include "vector.h"
#include "version.h"
/* Code generators. */
-#include "tabcodegen.h"
-#include "ftabcodegen.h"
-#include "flatcodegen.h"
-#include "fflatcodegen.h"
-#include "gotocodegen.h"
-#include "fgotocodegen.h"
-#include "ipgotocodegen.h"
-#include "splitcodegen.h"
+#include "csharp-tabcodegen.h"
+#include "csharp-ftabcodegen.h"
+#include "csharp-flatcodegen.h"
+#include "csharp-fflatcodegen.h"
+#include "csharp-gotocodegen.h"
+#include "csharp-fgotocodegen.h"
+#include "csharp-ipgotocodegen.h"
+#include "csharp-splitcodegen.h"
using std::istream;
using std::ifstream;
*/
-#include "rlgen-csharp.h"
-#include "splitcodegen.h"
+#include "csharp-rlgen-csharp.h"
+#include "csharp-splitcodegen.h"
#include "gendata.h"
#include <assert.h>
#ifndef _SPLITCODEGEN_H
#define _SPLITCODEGEN_H
-#include "ipgotocodegen.h"
+#include "csharp-ipgotocodegen.h"
class CSharpSplitCodeGen : public CSharpIpGotoCodeGen
{
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-csharp.h"
-#include "tabcodegen.h"
+#include "csharp-rlgen-csharp.h"
+#include "csharp-tabcodegen.h"
#include "redfsm.h"
#include "gendata.h"
#define _TABCODEGEN_H
#include <iostream>
-#include "fsmcodegen.h"
+#include "csharp-fsmcodegen.h"
/* Forwards. */
struct CodeGenData;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-dot.h"
-#include "gvdotgen.h"
+#include "dot-rlgen-dot.h"
+#include "dot-gvdotgen.h"
#include "gendata.h"
using namespace std;
#include <unistd.h>
#include "common.h"
-#include "rlgen-dot.h"
+#include "dot-rlgen-dot.h"
#include "xmlparse.h"
#include "pcheck.h"
#include "vector.h"
#include "version.h"
-#include "gvdotgen.h"
+#include "dot-gvdotgen.h"
using std::istream;
using std::ifstream;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "rlgen-java.h"
-#include "javacodegen.h"
+#include "java-rlgen-java.h"
+#include "java-javacodegen.h"
#include "redfsm.h"
#include "gendata.h"
#include <iomanip>
#include <fstream>
#include <unistd.h>
-#include "rlgen-java.h"
+#include "java-rlgen-java.h"
#include "xmlparse.h"
#include "pcheck.h"
#include "vector.h"
#include "version.h"
#include "common.h"
-#include "javacodegen.h"
+#include "java-javacodegen.h"
using std::istream;
using std::ifstream;
#include <sstream>
#include "redfsm.h"
#include "gendata.h"
-#include "rlgen-ruby.h"
+#include "ruby-rlgen-ruby.h"
#include "ruby-codegen.h"
using std::ostream;
*/
#include "ruby-flatcodegen.h"
-#include "rlgen-ruby.h"
+#include "ruby-rlgen-ruby.h"
#include "redfsm.h"
#include "gendata.h"
#include <sstream>
#include "redfsm.h"
#include "gendata.h"
-#include "rlgen-ruby.h"
+#include "ruby-rlgen-ruby.h"
#include "ruby-ftabcodegen.h"
using std::ostream;
#include "vector.h"
#include "version.h"
#include "common.h"
-#include "rlgen-ruby.h"
+#include "ruby-rlgen-ruby.h"
#include "ruby-tabcodegen.h"
#include "ruby-ftabcodegen.h"
#include "ruby-flatcodegen.h"
#include "ruby-fflatcodegen.h"
-#include "rbx-gotocodegen.h"
+#include "ruby-rbx-gotocodegen.h"
using std::istream;
using std::ifstream;
#include <stdio.h>
#include <string>
-#include "rlgen-ruby.h"
-#include "rbx-gotocodegen.h"
+#include "ruby-rlgen-ruby.h"
+#include "ruby-rbx-gotocodegen.h"
#include "redfsm.h"
#include "bstmap.h"
#include "gendata.h"
#include <sstream>
#include "redfsm.h"
#include "gendata.h"
-#include "rlgen-ruby.h"
+#include "ruby-rlgen-ruby.h"
#include "ruby-tabcodegen.h"
using std::ostream;
+++ /dev/null
-#
-# Copyright 2001-2006 Adrian Thurston <thurston@complang.org>
-#
-
-# This file is part of Ragel.
-#
-# Ragel is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# Ragel is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ragel; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-INCS += -I../common -I../redfsm -I../aapl
-DEFS +=
-
-CXXFLAGS += -g -Wall
-LDFLAGS +=
-
-CC_SRCS = main.cpp fsmcodegen.cpp \
- tabcodegen.cpp ftabcodegen.cpp flatcodegen.cpp \
- fflatcodegen.cpp gotocodegen.cpp fgotocodegen.cpp \
- ipgotocodegen.cpp splitcodegen.cpp
-
-GEN_SRC = xmltags.cpp xmlscan.cpp xmlparse.cpp xmlparse.h
-
-LIBS = ../common/common.a ../redfsm/redfsm.a
-
-#*************************************
-
-prefix = @prefix@
-EXEEXT = @EXEEXT@
-CXX = @CXX@
-AR = @AR@
-RANLIB = @RANLIB@
-
-# Get objects and dependencies from sources.
-OBJS = $(CC_SRCS:%.cpp=%.o)
-DEPS = $(CC_SRCS:%.cpp=.%.d)
-
-# Get the version info.
-include ../version.mk
-
-# Rules.
-all: rlgen-cd.a
-
-rlgen-cd.a: $(LIBS) $(OBJS)
- $(AR) -cr $@ $(OBJS)
- $(RANLIB) $@
-
-%.o: %.cpp
- @$(CXX) -M $(DEFS) $(INCS) $< > .$*.d
- $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCS) -o $@ $<
-
-distclean: clean
- rm -f Makefile
-
-clean:
- rm -f tags .*.d *.o rlgen-cd.a $(EXTRA_CLEAN)
-
-install: all
- @true
-
--include $(DEPS)
+++ /dev/null
-#
-# Copyright 2001-2006 Adrian Thurston <thurston@complang.org>
-#
-
-# This file is part of Ragel.
-#
-# Ragel is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# Ragel is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ragel; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-INCS += -I../common -I../redfsm -I../aapl
-DEFS +=
-
-CXXFLAGS += -g -Wall
-LDFLAGS +=
-
-CC_SRCS = main.cpp fsmcodegen.cpp \
- tabcodegen.cpp ftabcodegen.cpp flatcodegen.cpp \
- fflatcodegen.cpp gotocodegen.cpp fgotocodegen.cpp \
- ipgotocodegen.cpp splitcodegen.cpp
-
-GEN_SRC = xmltags.cpp xmlscan.cpp xmlparse.cpp xmlparse.h
-
-LIBS = ../common/common.a ../redfsm/redfsm.a
-
-#*************************************
-
-prefix = @prefix@
-EXEEXT = @EXEEXT@
-CXX = @CXX@
-AR = @AR@
-RANLIB = @RANLIB@
-
-# Get objects and dependencies from sources.
-OBJS = $(CC_SRCS:%.cpp=%.o)
-DEPS = $(CC_SRCS:%.cpp=.%.d)
-
-# Get the version info.
-include ../version.mk
-
-# Rules.
-all: rlgen-csharp.a
-
-rlgen-csharp.a: $(LIBS) $(OBJS)
- $(AR) -cr $@ $(OBJS)
- $(RANLIB) $@
-
-%.o: %.cpp
- @$(CXX) -M $(DEFS) $(INCS) $< > .$*.d
- $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCS) -o $@ $<
-
-distclean: clean
- rm -f Makefile
-
-clean:
- rm -f tags .*.d *.o rlgen-csharp.a $(EXTRA_CLEAN)
-
-install: all
- @true
-
--include $(DEPS)
+++ /dev/null
-#
-# Copyright 2001-2007 Adrian Thurston <thurston@complang.org>
-#
-
-# This file is part of Ragel.
-#
-# Ragel is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# Ragel is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ragel; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-INCS += -I../common -I../redfsm -I../aapl
-DEFS +=
-
-CXXFLAGS += -g -Wall
-LDFLAGS +=
-
-CC_SRCS = main.cpp gvdotgen.cpp
-
-LIBS = ../common/common.a ../redfsm/redfsm.a
-
-
-#*************************************
-
-prefix = @prefix@
-EXEEXT = @EXEEXT@
-CXX = @CXX@
-AR = @AR@
-RANLIB = @RANLIB@
-
-# Get objects and dependencies from sources.
-OBJS = $(CC_SRCS:%.cpp=%.o)
-DEPS = $(CC_SRCS:%.cpp=.%.d)
-
-# Get the version info.
-include ../version.mk
-
-# Rules.
-all: rlgen-dot.a
-
-rlgen-dot.a: $(LIBS) $(OBJS)
- $(AR) -cr $@ $(OBJS)
- $(RANLIB) $@
-
-%.o: %.cpp
- @$(CXX) -M $(DEFS) $(INCS) $< > .$*.d
- $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCS) -o $@ $<
-
-distclean: clean
- rm -f Makefile
-
-clean:
- rm -f tags .*.d *.o rlgen-dot $(EXTRA_CLEAN)
-
-install: all
- @true
-
--include $(DEPS)
+++ /dev/null
-#
-# Copyright 2007 Adrian Thurston <thurston@complang.org>
-#
-
-# This file is part of Ragel.
-#
-# Ragel is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# Ragel is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ragel; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-INCS += -I../common -I../redfsm -I../aapl
-DEFS +=
-
-CXXFLAGS += -g -Wall
-LDFLAGS +=
-
-CC_SRCS = main.cpp javacodegen.cpp
-
-LIBS = ../common/common.a ../redfsm/redfsm.a
-
-LIBS += @LIBS@
-
-#*************************************
-
-prefix = @prefix@
-EXEEXT = @EXEEXT@
-CXX = @CXX@
-AR = @AR@
-RANLIB = @RANLIB@
-
-# Get objects and dependencies from sources.
-OBJS = $(CC_SRCS:%.cpp=%.o)
-DEPS = $(CC_SRCS:%.cpp=.%.d)
-
-# Get the version info.
-include ../version.mk
-
-# Rules.
-all: rlgen-java.a
-
-rlgen-java.a: $(LIBS) $(OBJS)
- $(AR) -cr $@ $(OBJS)
- $(RANLIB) $@
-
-%.o: %.cpp
- @$(CXX) -M $(DEFS) $(INCS) $< > .$*.d
- $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCS) -o $@ $<
-
-distclean: clean
- rm -f Makefile
-
-clean:
- rm -f tags .*.d *.o rlgen-java.a
-
-install: all
- @true
-
--include $(DEPS)
+++ /dev/null
-#
-# Copyright 2007 Adrian Thurston <thurston@complang.org>
-#
-
-# This file is part of Ragel.
-#
-# Ragel is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# Ragel is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ragel; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-INCS += -I../common -I../redfsm -I../aapl
-DEFS +=
-
-CXXFLAGS += -g -Wall
-LDFLAGS +=
-
-CC_SRCS = main.cpp ruby-codegen.cpp ruby-tabcodegen.cpp ruby-ftabcodegen.cpp \
- ruby-flatcodegen.cpp ruby-fflatcodegen.cpp rbx-gotocodegen.cpp
-
-LIBS = ../common/common.a ../redfsm/redfsm.a
-
-LIBS += @LIBS@
-
-#*************************************
-
-prefix = @prefix@
-EXEEXT = @EXEEXT@
-CXX = @CXX@
-AR = @AR@
-RANLIB = @RANLIB@
-
-# Get objects and dependencies from sources.
-OBJS = $(CC_SRCS:%.cpp=%.o)
-DEPS = $(CC_SRCS:%.cpp=.%.d)
-
-# Get the version info.
-include ../version.mk
-
-# Rules.
-all: rlgen-ruby.a
-
-rlgen-ruby.a: $(LIBS) $(OBJS)
- $(AR) -cr $@ $(OBJS)
- $(RANLIB) $@
-
-%.o: %.cpp
- @$(CXX) -M $(DEFS) $(INCS) $< > .$*.d
- $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCS) -o $@ $<
-
-distclean: clean
- rm -f Makefile
-
-clean:
- rm -f tags .*.d *.o rlgen-ruby.a
-
-install: all
- @true
-
--include $(DEPS)