From ef8b8e5f111469b5bc005975f7abb9abbd372b25 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Thu, 14 Jun 2012 10:52:33 +0300 Subject: 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. --- doc/examples/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/examples/Makefile (limited to 'doc/examples/Makefile') 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) -- cgit v1.2.3