Build a dylib on Darwin
This commit is contained in:
parent
bd7b33e66e
commit
1920cf75cd
|
@ -1,6 +1,14 @@
|
|||
|
||||
PLATFORM=`uname -o`
|
||||
LDFLAGS += -lgcrypt
|
||||
CFLAGS += -g -Wall -fPIC -O0 -Wstrict-prototypes -pthread -fno-strict-aliasing
|
||||
|
||||
ifeq ($(PLATFORM), darwin)
|
||||
CFLAGS += -dynamiclib
|
||||
else
|
||||
CFLAGS += -shared
|
||||
endif
|
||||
|
||||
default: binaries doc libseccure.so
|
||||
|
||||
binaries: seccure-key seccure-encrypt seccure-decrypt seccure-sign \
|
||||
|
@ -36,7 +44,7 @@ seccure-key: seccure.o $(OBJS)
|
|||
strip seccure-key
|
||||
|
||||
libseccure.so: $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl -o libseccure.so $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -Wl -o libseccure.so $(OBJS)
|
||||
|
||||
seccure-encrypt: seccure-key
|
||||
ln -f seccure-key seccure-encrypt
|
||||
|
|
Loading…
Reference in New Issue