Hi everybody, since I wrote these for a project I'm working on, I thought they might be useful to others too; they should be pretty generic and well suited for being integrated in other projects.
There are two macros, CHECK_RAGEL and CHECK_RAGEL_AM, the latter will enable the HAVE_RAGEL conditional, while the former will just do the autoconf check. The macros both accept a single parameter, the relative path to a source file generated by Ragel (i.e.: the .c file not the .rl file) that can be checked to be present or not. The make rule uses RAGELFLAGS to pass extra options to Ragel so the user is able to choose a different FSM implementation rather than the default -T0. HTH, -- Diego "Flameeyes" Pettenò http://blog.flameeyes.eu/
# -*- Makefile -*-
SUFFIXES = .rl
.rl.c:
$(RAGEL) $(RAGELFLAGS) -C $< -o $@
ragel.m4
Description: application/m4
signature.asc
Description: This is a digitally signed message part
_______________________________________________ ragel-users mailing list [email protected] http://www.complang.org/mailman/listinfo/ragel-users
