From 6aa289c124bd823ee352fa5bda5c9d7c792c7bf5 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 17 Nov 2013 01:08:10 +0100 Subject: Remove main from libdispass, add test executable - Add ~dispasstest~ which is used to test the DisPass algorithms. - Remove =main= from libdispass since shared libraries shouldn't have main functions - Add ~dispass.h~ which defines and exports the DisPass algorithms. - Make some functions in ~dispass.c~ static to make clear they're not exported anywhere. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9a75ffc..021cef7 100644 --- a/Makefile +++ b/Makefile @@ -2,3 +2,6 @@ CFLAGS = -lcrypto -fPIC libdispass.so: dispass.o $(CC) $(CFLAGS) -shared -o libdispass.so $^ + +dispasstest: libdispass.so dispasstest.o + $(CC) -o dispasstest -L. -ldispass dispasstest.o -- cgit v1.2.3-54-g00ecf