Added tests for encryption plugin changes

This commit is contained in:
James Booth
2017-01-22 00:57:09 +00:00
parent c0eefa2ff7
commit 9fb6ea1cf3
3 changed files with 260 additions and 0 deletions

18
tests/enc_c/Makefile Normal file
View File

@@ -0,0 +1,18 @@
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LINK_FLAGS := -fno-common -flat_namespace -bundle -undefined suppress
else
LINK_FLAGS := -shared -fpic
endif
all: enc_c.so
%.so:%.o
$(CC) $(LINK_FLAGS) -lprofanity -o $@ $^
%.o:%.c
$(CC) $(INCLUDE) -D_GNU_SOURCE -D_BSD_SOURCE -fpic -g3 -O0 -std=c99 \
-Wextra -pedantic -c -o $@ $<
clean:
$(RM) enc_c.so