Working parser for rpcgen files.
[portablexdr.git] / Makefile.am
index cc79d5f..fb0fcb3 100644 (file)
@@ -7,3 +7,13 @@ libportablexdr_la_SOURCES = xdr_array.c xdr_float.c xdr_mem.c xdr_reference.c \
        rpc/rpc.h rpc/types.h rpc/xdr.h
 libportablexdr_la_CFLAGS = -Wall -Werror -fno-strict-aliasing
 libportablexdr_la_LDFLAGS = @MINGW_EXTRA_LDFLAGS@
+
+# Replacement 'rpcgen'.  Don't call it 'rpcgen' however so that
+# we can avoid conflicting with the system rpcgen.
+BUILT_SOURCES = rpcgen_parse.h
+AM_YFLAGS = -d
+bin_PROGRAMS = portable-rpcgen
+portable_rpcgen_SOURCES = rpcgen_parse.y rpcgen_scan.l \
+       rpcgen_int.h rpcgen_main.c
+portable_rpcgen_CFLAGS = -Wall
+#portable_rpcgen_CFLAGS += -DYYDEBUG