summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/Makefile10
-rw-r--r--example/Makefile.am7
2 files changed, 7 insertions, 10 deletions
diff --git a/example/Makefile b/example/Makefile
deleted file mode 100644
index 2504505..0000000
--- a/example/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-all: example
-
-example: example.o
- gcc -o example -lrcd example.o
-
-test: example
- cat input.txt | ./example
-
-clean:
- rm -f example example.o \ No newline at end of file
diff --git a/example/Makefile.am b/example/Makefile.am
new file mode 100644
index 0000000..837a3cf
--- /dev/null
+++ b/example/Makefile.am
@@ -0,0 +1,7 @@
+bin_PROGRAMS= example
+example_SOURCES= example.c
+example_LDADD= @RCD_LIBS@
+EXTRA_DIST= input.txt
+
+test: example
+ cat input.txt | ./example