*
* @subsection cluks_ex crypt_luks_usage.c - Complex example
*
*
* @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:
- * 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
*
* @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:
- * 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
* @endcode
*
* Note that you need to have the cryptsetup library compiled. @include crypt_log_usage.c
-# LD_LIBRARY_PATH=../../lib/.libs
TARGETS=crypt_log_usage crypt_luks_usage
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