Use system wide libcryptsetup in examples.
authorMilan Broz <gmazyland@gmail.com>
Sat, 15 Oct 2011 20:27:51 +0000 (20:27 +0000)
committerMilan Broz <gmazyland@gmail.com>
Sat, 15 Oct 2011 20:27:51 +0000 (20:27 +0000)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@643 36d66b0a-2a48-0410-832c-cd162a569da5

docs/doxygen_index
docs/examples/Makefile

index eff8a57..b574275 100644 (file)
  *
  *             @subsection cluks_ex crypt_luks_usage.c - Complex example
  *
- *                     To compile and link against current libcryptsetup use command:
+ *                     To compile and run use following commands in examples directory:
  *
  * @code
- * gcc -Wall -L../../lib/.libs -I../../lib -lcryptsetup crypt_luks_usage.c -o crypt_luks_usage
- * LD_LIBRARY_PATH=../../lib/.libs ./crypt_luks_usage _path_to_[block_device]_file
+ * make
+ * ./crypt_luks_usage _path_to_[block_device]_file
  * @endcode
  *
  *                     Note that you need to have the cryptsetup library compiled. @include crypt_luks_usage.c
  *
  *     @section clog crypt_log_usage - cryptsetup logging API example
  *
- *             Example describes basic use case for cryptsetup logging API. To compile the example and link
- *             against current libcryptsetup use command:
+ *             Example describes basic use case for cryptsetup logging. To compile and run
+ *             use following commands in examples directory:
  *
  * @code
- * gcc -Wall -L../../lib/.libs -I../../lib -lcryptsetup crypt_log_usage.c -o crypt_log_usage
- * LD_LIBRARY_PATH=../../.libs ./crypt_log_usage
+ * make
+ * ./crypt_log_usage
  * @endcode
  *
  *             Note that you need to have the cryptsetup library compiled. @include crypt_log_usage.c
index e275186..845b6cb 100644 (file)
@@ -1,7 +1,6 @@
-# LD_LIBRARY_PATH=../../lib/.libs
 TARGETS=crypt_log_usage crypt_luks_usage
-CFLAGS=-O0 -g -Wall -D_GNU_SOURCE -I../../lib
-LDLIBS=-lcryptsetup -L../../lib/.libs
+CFLAGS=-O0 -g -Wall -D_GNU_SOURCE
+LDLIBS=-lcryptsetup
 CC=gcc
 
 all: $(TARGETS)