- Added automatic WINDOWS define in Makefile
This commit is contained in:
Родитель
4d2c1243b1
Коммит
cd5b529d6d
|
@ -24,7 +24,9 @@ DLEXT=so
|
|||
# DLEXT=dylib
|
||||
|
||||
# Windows shared library extension:
|
||||
# DLEXT=dll
|
||||
ifdef WINDOWS
|
||||
DLEXT=dll
|
||||
endif
|
||||
|
||||
OBJS= aes.o arc4.o asn1parse.o \
|
||||
asn1write.o \
|
||||
|
|
|
@ -11,6 +11,10 @@ ifdef DEBUG
|
|||
CFLAGS += -g3
|
||||
endif
|
||||
|
||||
ifdef WINDOWS
|
||||
LDFLAGS += -lws2_32
|
||||
endif
|
||||
|
||||
APPS = aes/aescrypt2 aes/crypt_and_hash \
|
||||
hash/hello hash/generic_sum \
|
||||
hash/md5sum hash/sha1sum \
|
||||
|
|
|
@ -13,6 +13,10 @@ ifdef DEBUG
|
|||
CFLAGS += -g3
|
||||
endif
|
||||
|
||||
ifdef WINDOWS
|
||||
LDFLAGS += -lws2_32
|
||||
endif
|
||||
|
||||
APPS = test_suite_aes test_suite_arc4 \
|
||||
test_suite_base64 test_suite_camellia \
|
||||
test_suite_cipher.aes test_suite_cipher.camellia \
|
||||
|
|
Загрузка…
Ссылка в новой задаче