aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/Makefile
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2012-06-14 10:52:33 +0300
committerLasse Collin <lasse.collin@tukaani.org>2012-06-14 10:52:33 +0300
commit3a0c5378abefaf86aa39a62a7c9682bdb21568a1 (patch)
tree2ce6cc67b02009b36955b7d6e9b134ae1ce40821 /doc/examples/Makefile
parentDocs: Move xz_pipe_comp.c and xz_pipe_decomp.c to doc/examples_old. (diff)
downloadxz-3a0c5378abefaf86aa39a62a7c9682bdb21568a1.tar.xz
Docs: Add new example programs.
These have more comments than the old examples and human-readable error messages. More tutorial-like examples are needed but these are a start.
Diffstat (limited to 'doc/examples/Makefile')
-rw-r--r--doc/examples/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/examples/Makefile b/doc/examples/Makefile
new file mode 100644
index 00000000..644dc32e
--- /dev/null
+++ b/doc/examples/Makefile
@@ -0,0 +1,23 @@
+#
+# Author: Lasse Collin
+#
+# This file has been put into the public domain.
+# You can do whatever you want with this file.
+#
+
+CC = c99
+CFLAGS = -g
+LDFLAGS = -llzma
+
+PROGS = \
+ 01_compress_easy \
+ 02_decompress \
+ 03_compress_custom
+
+all: $(PROGS)
+
+.c:
+ $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
+
+clean:
+ -rm -f $(PROGS)