# $Id$
bin_PROGRAMS = re2c
-win_BINARIES = $(WINBUILDDIR)/re2c.exe
re2c_SOURCES = code.cc dfa.cc main.cc parser.cc actions.cc scanner.re substr.cc range.cc \
translate.cc scanner.cc mbo_getopt.cc print.cc input_api.cc \
enc.cc utf8.cc utf8_range.cc utf8_regexp.cc utf16.cc utf16_range.cc utf16_regexp.cc range_suffix.cc \
doc examples test bootstrap/*.cc bootstrap/*.h bootstrap/re2c.1 lessons \
$(DOCS)
EXTRA_DIST = $(EXTRA_SRC) makerpm.in re2c.spec.in re2c.spec README.in config_w32.h.in
-EXTRA_ZIP = $(EXTRA_SRC) config_w32.h re2c.rules
dist-hook: re2c.spec
rm -rf `find $(distdir)/doc -name .git`
rpmbuild -bs re2c.spec
cp -f `rpm --eval "%{_srcrpmdir}"`/re2c-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE).src.rpm .
-zip: $(bin_PROGRAMS) $(EXTRA_ZIP)
- if test -f re2c-$(PACKAGE_VERSION)-src.zip; then rm -f re2c-$(PACKAGE_VERSION)-src.zip; fi
- zip -q -o -9 -r re2c-$(PACKAGE_VERSION)-src.zip $(re2c_SOURCES) $(EXTRA_ZIP)
- zipinfo -1 re2c-$(PACKAGE_VERSION)-src.zip | grep .git | xargs zip -d re2c-$(PACKAGE_VERSION)-src.zip >/dev/null
- if test -f re2c-$(PACKAGE_VERSION)-bin.zip; then rm -f re2c-$(PACKAGE_VERSION)-bin.zip; fi
- if test -f $(WINBUILDDIR)/re2c.exe; then \
- zip -q -o -9 -j re2c-$(PACKAGE_VERSION)-bin.zip $(win_BINARIES); \
- fi;
-
-release: dist zip src-rpm
+release: dist src-rpm
parser.cc: $(top_srcdir)/parser.y
@if test $(BISON) = "yes"; then \
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>\r
-<VisualStudioToolFile\r
- Name="re2c"\r
- Version="8.00"\r
- >\r
- <Rules>\r
- <CustomBuildRule\r
- Name="re2c"\r
- DisplayName="re2c"\r
- CommandLine="re2c.exe [AllOptions] [AdditionalOptions] [inputs]"\r
- Outputs="[$OutputFileName]"\r
- FileExtensions="*.re"\r
- ExecutionDescription="Compiling regular expressions..."\r
- >\r
- <Properties>\r
- <StringProperty\r
- Name="OutputFileName"\r
- DisplayName="Output File Name"\r
- Description="Specifies the name of the output source file. (-o[file])"\r
- Switch="-o"[value]""\r
- DefaultValue="$(InputDir)$(InputName).cpp"\r
- />\r
- <EnumProperty\r
- Name="Version"\r
- DisplayName="Show Version Information"\r
- Description="Displays version information at compile-time. (-v -V)"\r
- >\r
- <Values>\r
- <EnumValue\r
- Value="0"\r
- DisplayName="Default"\r
- />\r
- <EnumValue\r
- Value="1"\r
- Switch="-v"\r
- DisplayName="Show Version (-v)"\r
- />\r
- <EnumValue\r
- Value="2"\r
- Switch="-V"\r
- DisplayName="Show Version as a Number (-V)"\r
- />\r
- </Values>\r
- </EnumProperty>\r
- <BooleanProperty\r
- Name="NoLineInfo"\r
- DisplayName="Suppress Line Information"\r
- Description="Suppress line-number debugging information in the output file. (-i)"\r
- Switch="-i"\r
- />\r
- <BooleanProperty\r
- Name="NoGenerationDate"\r
- DisplayName="Suppress Generation Date"\r
- Description="Suppress generation-date information in the output file. (--no-generation-date)"\r
- Switch="--no-generation-date"\r
- />\r
- <EnumProperty\r
- Name="CharacterSet"\r
- DisplayName="Scanner Character Set"\r
- PropertyPageName="Code Generation"\r
- Description="Specifies the generated scanner's character set. (-e, -w, -u)"\r
- >\r
- <Values>\r
- <EnumValue\r
- Value="0"\r
- DisplayName="Default"\r
- />\r
- <EnumValue\r
- Value="1"\r
- Switch="-e"\r
- DisplayName="EBCDIC (-e)"\r
- />\r
- <EnumValue\r
- Value="2"\r
- Switch="-w"\r
- DisplayName="UCS-16 (-w)"\r
- />\r
- <EnumValue\r
- Value="3"\r
- Switch="-u"\r
- DisplayName="UTF-32 (-u)"\r
- />\r
- </Values>\r
- </EnumProperty>\r
- <EnumProperty\r
- Name="Optimization"\r
- DisplayName="Optimization Level"\r
- PropertyPageName="Code Generation"\r
- Description="Specifies the optimizations used in the scanner. (-s, -b, -g)"\r
- DefaultValue="2"\r
- >\r
- <Values>\r
- <EnumValue\r
- Value="0"\r
- DisplayName="None"\r
- />\r
- <EnumValue\r
- Value="1"\r
- Switch="-s"\r
- DisplayName="Use Nested If's (-s)"\r
- />\r
- <EnumValue\r
- Value="2"\r
- Switch="-b"\r
- DisplayName="Use Bit Vectors (-b)"\r
- />\r
- <EnumValue\r
- Value="3"\r
- Switch="-g"\r
- DisplayName="Use Computed Goto's (GCC Only) (-g)"\r
- />\r
- </Values>\r
- </EnumProperty>\r
- <BooleanProperty\r
- Name="StorableState"\r
- DisplayName="Enable Storable State"\r
- PropertyPageName="Code Generation"\r
- Description="Generates a scanner with support for storable state. (-r)"\r
- Switch="-r"\r
- />\r
- <BooleanProperty\r
- Name="DebugOutput"\r
- DisplayName="Enable Debugging Output"\r
- PropertyPageName="Code Generation"\r
- Description="Generates a scanner that outputs its current position and state. You must define a YYDEBUG(int state, char current) macro to recieve this information. (-d)"\r
- Switch="-d"\r
- />\r
- <BooleanProperty\r
- Name="SinglePass"\r
- DisplayName="Single Pass Code Generation"\r
- PropertyPageName="Code Generation"\r
- Description="Forces single pass code generation. This disables YYMAXFILL generation prior to last block and cannot be used with storable state. (-1)"\r
- Switch="-1"\r
- />\r
- <BooleanProperty\r
- Name="Conditions"\r
- DisplayName="Require Start Conditions"\r
- PropertyPageName="Code Generation"\r
- Description="Enables support for (f)lex-like conditions. (-c)"\r
- Switch="-c"\r
- />\r
- <StringProperty\r
- Name="TypeHeader"\r
- DisplayName="Condition Header File"\r
- PropertyPageName="Code Generation"\r
- Description="Generates a header file that contains types for the (f)lex-like condition support. (-t[file])"\r
- Switch="-t"[value]""\r
- />\r
- </Properties>\r
- </CustomBuildRule>\r
- </Rules>\r
-</VisualStudioToolFile>\r