"Fossies" - the Fresh Open Source Software Archive

Member "ragel-7.0.4/src/Makefile.am" (15 Feb 2021, 2238 Bytes) of package /linux/misc/ragel-7.0.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 7.0.3_vs_7.0.4.

    1 SUBDIRS = . host-ruby host-asm host-julia host-ocaml host-c \
    2 	host-d host-csharp host-go host-java host-rust host-crack host-js
    3 
    4 # libragel contains the parse tree and other parsing support code. Everything
    5 # except the reducers, which are specific to the frontends.
    6 lib_LTLIBRARIES = libragel.la
    7 
    8 bin_PROGRAMS = ragel
    9 
   10 # nodist_pkginclude_HEADERS = config.h
   11 
   12 data_DATA = ragel.lm
   13 
   14 #
   15 # libragel: ragel program minus host-specific code
   16 #
   17 libragel_la_CPPFLAGS = -I$(top_srcdir)/aapl -I$(top_srcdir)/colm/include -DBINDIR='"@bindir@"'
   18 
   19 dist_libragel_la_SOURCES = \
   20 	parsedata.h parsetree.h inputdata.h pcheck.h reducer.h rlscan.h load.h \
   21 	parsetree.cc longest.cc parsedata.cc inputdata.cc load.cc reducer.cc
   22 
   23 libragel_la_LDFLAGS = -no-undefined
   24 libragel_la_LIBADD = $(LIBFSM_LA) $(LIBCOLM_LA)
   25 
   26 if LINKER_NO_UNDEFINED
   27 libragel_la_LDFLAGS += -Wl,--no-undefined
   28 endif
   29 
   30 #
   31 # ragel program.
   32 #
   33 ragel_CPPFLAGS = -I$(top_srcdir)/aapl -I$(top_srcdir)/colm/include
   34 
   35 dist_ragel_SOURCES = \
   36 	main.cc
   37 
   38 nodist_ragel_SOURCES = \
   39 	parse.c rlreduce.cc
   40 
   41 ragel_LDADD = $(LIBFSM_LA) $(LIBCOLM_LA) libragel.la
   42 ragel_DEPENDENCIES = $(LIBFSM_LA) $(LIBCOLM_LA) libragel.la
   43 
   44 BUILT_SOURCES = \
   45 	version.h \
   46 	parse.c rlreduce.cc
   47 
   48 if WITH_RAGEL_KELBT
   49 nodist_ragel_SOURCES += \
   50 	rlscan.cc rlparse.cc rlparse.h 
   51 
   52 BUILT_SOURCES += \
   53 	rlscan.cc rlparse.cc rlparse.h 
   54 endif
   55 
   56 version.h: Makefile
   57 	echo '#define VERSION "@VERSION@"' > version.h
   58 	echo '#define PUBDATE "@PUBDATE@"' >> version.h
   59 
   60 EXTRA_DIST = \
   61 	$(RAGEL_LM) \
   62 	rlscan.rl \
   63 	rlparse.kh \
   64 	rlparse.kl
   65 
   66 CLEANFILES = parse.c commit.cc rlhc.c
   67 
   68 if WITH_RAGEL_KELBT
   69 CLEANFILES += rlscan.cc rlparse.cc rlparse.h 
   70 endif
   71 
   72 RAGEL_LM = \
   73 	rlparse.lm \
   74 	ragel.lm \
   75 	rlreduce.lm
   76 
   77 parse.pack: $(RAGEL_LM) $(COLM) $(COLM_WRAP)
   78 	$(COLM_WRAP) -c -b rlparseC -o $@ -p parse.c -m rlreduce.cc $<
   79 
   80 rlreduce.cc: parse.pack
   81 	$(COLM_WRAP) -o $@ $<
   82 
   83 parse.c: parse.pack
   84 	$(COLM_WRAP) -o $@ $<
   85 
   86 if WITH_RAGEL_KELBT
   87 
   88 # This dependency comes from the import of the parser defines into the scanner.
   89 rlscan.cc: rlparse.h
   90 inputdata.cc: rlparse.h
   91 
   92 ragel-rlscan.$(OBJEXT): rlscan.cc
   93 
   94 rlscan.cc: rlscan.rl
   95 	$(RAGEL) -G2 -I$(builddir) -o $@ $<
   96 
   97 rlparse.h: rlparse.kh
   98 	$(KELBT) -o $@ $<
   99 
  100 rlparse.cc: rlparse.kl rlparse.kh
  101 	$(KELBT) -o $@ $<
  102 
  103 endif