Makefile.am 3.24 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#/*
# * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# * contributor license agreements.  See the NOTICE file distributed with
# * this work for additional information regarding copyright ownership.
# * The OpenAirInterface Software Alliance licenses this file to You under
# * the OAI Public License, Version 1.0  (the "License"); you may not use this file
# * except in compliance with the License.
# * You may obtain a copy of the License at
# *
# *      http://www.openairinterface.org/?page_id=698
# *
# * Unless required by applicable law or agreed to in writing, software
# * distributed under the License is distributed on an "AS IS" BASIS,
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# * See the License for the specific language governing permissions and
# * limitations under the License.
# *-------------------------------------------------------------------------------
# * For more information about the OpenAirInterface (OAI) Software Alliance:
# *      contact@openairinterface.org
# */

22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
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
50 51 52 53
    test_secu_knas_encrypt_eea1 \
    test_secu_knas_encrypt_eia1 \
    test_secu_knas_encrypt_eea2 \
    test_secu_knas_encrypt_eia2
54 55 56 57 58 59 60
else
TESTS =
endif

libtest_util_la_SOURCES = \
	test_util.c	test_util.h

61
noinst_LTLIBRARIES = libtest_util.la 
62 63 64

common_ldadd = 	$(top_builddir)/SECU/libsecu.la	\
	libtest_util.la	\
65
	$(top_builddir)/UTILS/libutils.la	\
66 67 68 69 70 71 72 73 74
	@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
75 76 77 78
    test_secu_knas_encrypt_eea1 \
    test_secu_knas_encrypt_eia1 \
    test_secu_knas_encrypt_eea2 \
    test_secu_knas_encrypt_eia2
79 80 81 82 83 84 85 86 87 88

test_kdf_LDADD =	\
	$(common_ldadd)

test_secu_knas_LDADD =	\
	$(common_ldadd)

test_secu_kenb_LDADD =	\
	$(common_ldadd)

gauthier's avatar
gauthier committed
89 90
test_secu_knas_encrypt_eea1_LDADD = \
    $(common_ldadd)
91

gauthier's avatar
gauthier committed
92 93 94 95 96 97 98 99
test_secu_knas_encrypt_eia1_LDADD = \
    $(common_ldadd)

test_secu_knas_encrypt_eea2_LDADD = \
    $(common_ldadd)

test_secu_knas_encrypt_eia2_LDADD = \
    $(common_ldadd)
100 101 102 103 104 105 106 107 108 109

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
110 111
test_s1ap_LDADD = libtest_util.la	\
 	$(top_builddir)/S1AP/libs1ap.la
112
# 
gauthier's avatar
gauthier committed
113 114 115 116 117 118 119 120
 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