-libgrasrl_la_SOURCES= $(COMMON_S) \
- gras/Transport/rl_transport.c gras/Transport/transport_plugin_tcp.c gras/Transport/transport_plugin_file.c \
- \
- gras/Virtu/rl_process.c gras/Virtu/rl_time.c gras/Virtu/rl_conditional.c
-libgrasrl_la_LDFLAGS = $(VERSION_INFO) @GRAS_RL_DEP@
-
-if HAVE_SG
- libgrassg_la_SOURCES= $(COMMON_S) \
- gras/Transport/sg_transport.c gras/Transport/transport_plugin_sg.c \
- \
- gras/Virtu/sg_process.c gras/Virtu/sg_time.c gras/Virtu/sg_conditional.c
- libgrassg_la_LDFLAGS = $(VERSION_INFO) @GRAS_SG_DEP@
+if HAVE_FLEXML
+surf/surfxml.l: surf/surfxml.dtd
+ set -e; cd surf; flexml -b 1000000 -S -L surfxml.dtd ; \
+ mv surfxml.l surfxml.l.bak ; \
+ sed 's/surfxml\.h/surf\/surfxml\.h/g' surfxml.l.bak > surfxml.l
+include/surf/surfxml.h: surf/surfxml.dtd
+ cd include/surf; flexml -H -L ../../surf/surfxml.dtd
+else
+
+include/surf/surfxml.h surf/surfxml.l: surf/surfxml.dtd
+ @echo "ERROR: src/surf/surfxml.dtd was modified, but the flexml program was not detected"
+ @echo "ERROR: Please install it, or if you didn't modify this file, try this:"
+ @echo "ERROR: touch src/include/surf/surfxml.h src/surf/surfxml.l"
+ @exit 1
+endif