Annotation of embedaddon/axTLS/ssl/test/Makefile, revision 1.1.1.1

1.1       misho       1: #
                      2: # Copyright (c) 2007, Cameron Rich
                      3: #
                      4: # All rights reserved.
                      5: #
                      6: # Redistribution and use in source and binary forms, with or without
                      7: # modification, are permitted provided that the following conditions are met:
                      8: #
                      9: # * Redistributions of source code must retain the above copyright notice,
                     10: #   this list of conditions and the following disclaimer.
                     11: # * Redistributions in binary form must reproduce the above copyright
                     12: #   notice, this list of conditions and the following disclaimer in the
                     13: #   documentation and/or other materials provided with the distribution.
                     14: # * Neither the name of the axTLS project nor the names of its
                     15: #   contributors may be used to endorse or promote products derived
                     16: #   from this software without specific prior written permission.
                     17: #
                     18: # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
                     19: # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
                     20: # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
                     21: # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
                     22: # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
                     23: # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
                     24: # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
                     25: # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
                     26: # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
                     27: # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
                     28: # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     29: #
                     30: 
                     31: all:
                     32: 
                     33: AXTLS_HOME=../..
                     34: 
                     35: include $(AXTLS_HOME)/config/.config
                     36: include $(AXTLS_HOME)/config/makefile.conf
                     37: 
                     38: ifdef CONFIG_PERFORMANCE_TESTING
                     39: all: performance
                     40: endif
                     41: 
                     42: ifdef CONFIG_SSL_TEST
                     43: all: ssltesting
                     44: endif
                     45: 
                     46: include $(AXTLS_HOME)/config/makefile.post
                     47: 
                     48: ifndef CONFIG_PLATFORM_WIN32
                     49: performance: $(AXTLS_HOME)/$(STAGE)/perf_bigint
                     50: ssltesting: $(AXTLS_HOME)/$(STAGE)/ssltest
                     51: LIBS=$(AXTLS_HOME)/$(STAGE)
                     52: 
                     53: $(AXTLS_HOME)/$(STAGE)/perf_bigint: perf_bigint.o $(LIBS)/libaxtls.a
                     54:        $(LD) $(LDFLAGS) -o $@ $^ -L $(LIBS) -laxtls
                     55: 
                     56: $(AXTLS_HOME)/$(STAGE)/ssltest: ssltest.o $(LIBS)/libaxtls.a
                     57:        $(LD) $(LDFLAGS) -o $@ $^ -lpthread -L $(LIBS) -laxtls
                     58: else
                     59: performance: $(AXTLS_HOME)/$(STAGE)/perf_bigint.exe
                     60: ssltesting: $(AXTLS_HOME)/$(STAGE)/ssltest.exe
                     61: 
                     62: CRYPTO_PATH="$(AXTLS_INCLUDE)crypto\\"
                     63: AXTLS_SSL_PATH="$(AXTLS_INCLUDE)ssl\\"
                     64: 
                     65: CRYPTO_OBJ=\
                     66:        $(CRYPTO_PATH)aes.obj \
                     67:        $(CRYPTO_PATH)bigint.obj \
                     68:        $(CRYPTO_PATH)crypto_misc.obj \
                     69:        $(CRYPTO_PATH)hmac.obj \
                     70:        $(CRYPTO_PATH)md2.obj \
                     71:        $(CRYPTO_PATH)md5.obj \
                     72:        $(CRYPTO_PATH)rc4.obj \
                     73:        $(CRYPTO_PATH)rsa.obj \
                     74:        $(CRYPTO_PATH)sha1.obj
                     75: 
                     76: OBJ=\
                     77:        $(AXTLS_SSL_PATH)asn1.obj \
                     78:        $(AXTLS_SSL_PATH)gen_cert.obj \
                     79:        $(AXTLS_SSL_PATH)loader.obj \
                     80:        $(AXTLS_SSL_PATH)openssl.obj \
                     81:        $(AXTLS_SSL_PATH)os_port.obj \
                     82:        $(AXTLS_SSL_PATH)p12.obj \
                     83:        $(AXTLS_SSL_PATH)x509.obj \
                     84:        $(AXTLS_SSL_PATH)tls1.obj \
                     85:        $(AXTLS_SSL_PATH)tls1_svr.obj \
                     86:        $(AXTLS_SSL_PATH)tls1_clnt.obj
                     87: 
                     88: $(AXTLS_HOME)/$(STAGE)/perf_bigint.exe: perf_bigint.obj
                     89:        $(LD) $(LDFLAGS) /out:$@ $? $(CRYPTO_OBJ) $(OBJ)
                     90: 
                     91: $(AXTLS_HOME)/$(STAGE)/ssltest.exe: ssltest.obj
                     92:        $(LD) $(LDFLAGS) /out:$@ $? $(CRYPTO_OBJ) $(OBJ)
                     93: endif
                     94: 
                     95: clean::
                     96:        -@rm -f $(AXTLS_HOME)/$(STAGE)/perf_bigint* $(AXTLS_HOME)/$(STAGE)/ssltest*
                     97: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>