--- libelwix/example/Makefile	2013/03/07 15:41:11	1.1.1.1.2.1
+++ libelwix/example/Makefile	2024/10/10 23:55:48	1.9
@@ -1,16 +1,23 @@
 all:
-	gcc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test test.c -lelwix
-	gcc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o astvar astvar.c -lelwix
-	gcc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_array test_array.c -lelwix
-	gcc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_sarray test_sarray.c -lelwix
-	gcc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o envargs envargs.c -lelwix
-	gcc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o rb rb.c -lelwix
-	gcc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o rb2 rb2.c -lelwix
-	gcc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_n2 test_n2.c -lelwix
-	gcc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_vars test_vars.c -lelwix
-	gcc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_mem test_mem.c -lpthread -lelwix
-	gcc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_time test_time.c -lpthread -lelwix
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test test.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o astvar astvar.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_array test_array.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_sarray test_sarray.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o envargs envargs.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o rb rb.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o rb2 rb2.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_n2 test_n2.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_vars test_vars.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_mem test_mem.c -lpthread -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_time test_time.c -lpthread -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_pack test_pack.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_json test_json.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_iovec test_iovec.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_index test_index.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_tlv test_tlv.c -lelwix -lpthread -fPIC
+	cc -g -I/usr/local/include -I. -L. -L/usr/local/lib -o test_crc test_crc.c -lelwix -lpthread -fPIC
 
 clean:
 	rm -f *.o *~ test astvar test_array test_sarray \
-		envargs rb rb2 test_n2 test_vars test_mem test_time
+		envargs rb rb2 test_n2 test_vars test_mem test_time test_pack \
+		test_json test_iovec test_index test_tlv test_crc