- Added automatic WINDOWS define in Makefile

This commit is contained in:
Paul Bakker 2012-05-10 20:49:10 +00:00
parent 4d2c1243b1
commit cd5b529d6d
3 changed files with 11 additions and 1 deletions

View File

@ -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 \

View File

@ -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 \

View File

@ -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 \