--- /dev/null
+CFLAGS = -g -O0 -Wall -Wextra -std=c11 -pedantic `xml2-config --cflags`
+CFLAGS += -Wno-unused-parameter
+CFLAGS += -I../../include
+ASAN_FLAGS = -O0 -fsanitize=address -fno-common -fno-omit-frame-pointer -rdynamic
+CFLAGS += $(ASAN_FLAGS)
+LDFLAGS += $(ASAN_FLAGS) -fuse-ld=gold
+LDFLAGS = `xml2-config --libs`
+
+PROGS = rcxml-print-nodenames
+
+all: $(PROGS)
+
+rcxml-print-nodenames: rcxml-print-nodenames.c
+ $(CC) $(CFLAGS) -o $@ $^ ../../src/config/rcxml.c $(LDFLAGS)
+
+clean:
+ rm -f $(PROGS)
--- /dev/null
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+#include "rcxml.h"
+
+struct rcxml rc = { 0 };
+
+int main(int argc, char **argv)
+{
+ if (argc != 2) {
+ fprintf(stderr, "usage: %s <rc.xml file>\n", argv[0]);
+ exit(EXIT_FAILURE);
+ }
+ rcxml_init(&rc);
+ rcxml_set_verbose();
+ rcxml_read(argv[1]);
+}