Skip to content
Snippets Groups Projects
Makefile.am 3.46 KiB
Newer Older
gauthier's avatar
gauthier committed
################################################################################
#   OpenAirInterface
#   Copyright(c) 1999 - 2014 Eurecom
#
#    OpenAirInterface is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#
#    OpenAirInterface is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with OpenAirInterface.The full GNU General Public License is
#    included in this distribution in the file called "COPYING". If not,
#    see <http://www.gnu.org/licenses/>.
#
#  Contact Information
#  OpenAirInterface Admin: openair_admin@eurecom.fr
#  OpenAirInterface Tech : openair_tech@eurecom.fr
#  OpenAirInterface Dev  : openair4g-devel@lists.eurecom.fr
gauthier's avatar
gauthier committed
#
#  Address      : Eurecom, Compus SophiaTech 450, route des chappes, 06451 Biot, France.
#
################################################################################
Cédric Roux's avatar
Cédric Roux committed
AM_CFLAGS = @ADD_CFLAGS@ \
	@CHECK_CFLAGS@	\
	-I$(top_srcdir)/COMMON	\
	-I$(top_srcdir)/GTPV1-U			\
	-I$(top_srcdir)/GTPV1-U/nw-gtpv1u/include	\
	-I$(top_srcdir)/GTPV1-U/nw-gtpv1u/shared	\
	-I$(top_srcdir)/SCTP			\
	-I$(top_srcdir)/INTERTASK_INTERFACE	\
	-I$(top_srcdir)/IPV4			\
	-I$(top_builddir)/S1AP/MESSAGES	\
	-I$(top_builddir)/S1AP			\
	-I$(top_srcdir)/S1AP			\
	-I$(top_srcdir)/SECU			\
	-I$(top_srcdir)/S6A			\
	-I$(top_srcdir)/SGW-LITE		\
	-I$(top_srcdir)/UDP			\
	-I$(top_srcdir)/UTILS			\
	-I$(top_srcdir)/UTILS/TIMER		\
	-I$(top_srcdir)/UTILS/HASTABLE

if HAVE_CHECK
TESTS =	\
	test_kdf	\
	test_aes128_cmac_encrypt	\
	test_aes128_ctr_encrypt	\
	test_aes128_ctr_decrypt	\
	test_secu_kenb	\
	test_secu_knas	\
gauthier's avatar
gauthier committed
    test_secu_knas_encrypt_eea1 \
    test_secu_knas_encrypt_eia1 \
    test_secu_knas_encrypt_eea2 \
    test_secu_knas_encrypt_eia2
Cédric Roux's avatar
Cédric Roux committed
else
TESTS =
endif

libtest_util_la_SOURCES = \
	test_util.c	test_util.h

noinst_LTLIBRARIES = libtest_util.la 
Cédric Roux's avatar
Cédric Roux committed

common_ldadd = 	$(top_builddir)/SECU/libsecu.la	\
	libtest_util.la	\
	$(top_builddir)/UTILS/libutils.la	\
Cédric Roux's avatar
Cédric Roux committed
	@CHECK_LIBS@

check_PROGRAMS =	\
	test_kdf	\
	test_aes128_cmac_encrypt	\
	test_aes128_ctr_encrypt	\
	test_aes128_ctr_decrypt	\
	test_secu_kenb	\
	test_secu_knas	\
gauthier's avatar
gauthier committed
    test_secu_knas_encrypt_eea1 \
    test_secu_knas_encrypt_eia1 \
    test_secu_knas_encrypt_eea2 \
    test_secu_knas_encrypt_eia2
Cédric Roux's avatar
Cédric Roux committed

test_kdf_LDADD =	\
	$(common_ldadd)

test_secu_knas_LDADD =	\
	$(common_ldadd)

test_secu_kenb_LDADD =	\
	$(common_ldadd)

gauthier's avatar
gauthier committed
test_secu_knas_encrypt_eea1_LDADD = \
    $(common_ldadd)
Cédric Roux's avatar
Cédric Roux committed

gauthier's avatar
gauthier committed
test_secu_knas_encrypt_eia1_LDADD = \
    $(common_ldadd)

test_secu_knas_encrypt_eea2_LDADD = \
    $(common_ldadd)

test_secu_knas_encrypt_eia2_LDADD = \
    $(common_ldadd)
Cédric Roux's avatar
Cédric Roux committed

test_aes128_ctr_encrypt_LDADD =	\
	$(common_ldadd)

test_aes128_ctr_decrypt_LDADD =	\
	$(common_ldadd)

test_aes128_cmac_encrypt_LDADD =	\
	$(common_ldadd)

gauthier's avatar
gauthier committed
test_s1ap_LDADD = libtest_util.la	\
 	$(top_builddir)/S1AP/libs1ap.la
Cédric Roux's avatar
Cédric Roux committed
# 
gauthier's avatar
gauthier committed
 test_s1ap_SOURCES = test_s1ap.c	\
 	$(top_srcdir)/S1AP/s1ap_eNB_decoder.c \
 	$(top_srcdir)/S1AP/s1ap_eNB_decoder.h \
 	$(top_srcdir)/S1AP/s1ap_eNB_encoder.c \
 	$(top_srcdir)/S1AP/s1ap_eNB_encoder.h
 
 test_secu_kenb_SOURCES = test_secu_kenb.c
 test_secu_knas_SOURCES = test_secu_knas.c