Makefile-files (3920B)
1 ## $Id$ --*- makefile -*-- 2 3 ## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 4 ## 5 ## This program is free software; you can redistribute it and/or modify 6 ## it under the terms of the GNU General Public License as published by 7 ## the Free Software Foundation; version 2 of the License. 8 ## 9 ## This program is distributed in the hope that it will be useful, 10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 ## GNU General Public License for more details. 13 ## 14 ## You should have received a copy of the GNU General Public License 15 ## along with this program; if not, write to the Free Software 16 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 18 src_testsuite_check_active_PRGS = src/testsuite/vunify-functest \ 19 src/testsuite/chcontext-test \ 20 src/testsuite/chbind-test 21 22 src_testsuite_check_passive_PRGS = src/testsuite/rpm-fake-test 23 24 if ENSC_HAVE_C99_COMPILER 25 if ENSC_HAVE_CRYPTO 26 src_testsuite_check_passive_PRGS += src/testsuite/hashcalc \ 27 src/testsuite/hashcalc-plain 28 endif 29 endif 30 31 check_PROGRAMS += $(src_testsuite_check_passive_PRGS) \ 32 $(src_testsuite_check_active_PRGS) 33 34 if ENSC_HAVE_C99_COMPILER 35 src_testsuite_check_src_C99_SCRPTS = src/testsuite/vunify-test.sh 36 if ENSC_HAVE_CRYPTO 37 src_testsuite_check_src_C99_SCRPTS += src/testsuite/hashcalc-plain.sh \ 38 src/testsuite/hashcalc.sh 39 endif 40 else 41 src_testsuite_check_src_C99_SCRPTS = 42 endif 43 44 src_testsuite_check_src_SCRPTS = $(src_testsuite_check_src_C99_SCRPTS) 45 src_testsuite_check_gen_SCRPTS = 46 47 check_SCRIPTS += $(src_testsuite_check_src_SCRPTS) \ 48 $(src_testsuite_check_gen_SCRPTS) 49 50 TESTS += $(src_testsuite_check_active_PRGS) \ 51 $(src_testsuite_check_src_SCRPTS) \ 52 $(src_testsuite_check_gen_SCRPTS) 53 54 EXTRA_DIST += $(src_testsuite_check_src_SCRPTS) \ 55 src/testsuite/vunify-test.sh \ 56 src/testsuite/hashcalc.sh \ 57 src/testsuite/hashcalc-plain.sh \ 58 src/testsuite/vwait-test.sh 59 60 DIETPROGS += src/testsuite/vunify-functest \ 61 src/testsuite/chcontext-test \ 62 src/testsuite/chbind-test \ 63 src/testsuite/rpm-fake-test 64 65 src_testsuite_rpm_fake_test_SOURCES = src/testsuite/rpm-fake-test.c 66 67 src_testsuite_vunify_functest_SOURCES = src/testsuite/vunify-functest.c 68 src_testsuite_vunify_functest_LDADD = $(LIBINTERNAL) 69 src_testsuite_vunify_functest_CPPFLAGS= $(AM_CPPFLAGS) $(src_testsuite_CPPFLAGS) 70 71 src_testsuite_chcontext_test_SOURCES = src/testsuite/chcontext-test.c 72 src_testsuite_chcontext_test_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL) 73 74 src_testsuite_chbind_test_SOURCES = src/testsuite/chbind-test.c 75 src_testsuite_chbind_test_LDADD = $(LIBVSERVER) 76 77 src_testsuite_hashcalc_SOURCES = src/testsuite/hashcalc.c 78 src_testsuite_hashcalc_plain_SOURCES = src/testsuite/hashcalc-plain.c 79 src_testsuite_hashcalc_CFLAGS = $(AM_CFLAGS) $(ENSC_CRYPTO_CFLAGS) 80 src_testsuite_hashcalc_plain_CFLAGS = $(AM_CFLAGS) $(ENSC_CRYPTO_CFLAGS) 81 82 if ENSC_CAN_CRYPTO_WITH_DIETLIBC 83 DIETPROGS += src/testsuite/hashcalc \ 84 src/testsuite/hashcalc-plain 85 86 src_testsuite_hashcalc_LDADD = $(LIBINTERNAL) $(LIBENSCVECTOR) $(ENSC_CRYPTO_LIB) $(VSERVER_LDADDS) 87 src_testsuite_hashcalc_LDFLAGS = $(VSERVER_LDFLGS) 88 89 src_testsuite_hashcalc_plain_LDADD = $(LIBINTERNAL) $(LIBENSCVECTOR) $(ENSC_CRYPTO_LIB) $(VSERVER_LDADDS) 90 src_testsuite_hashcalc_plain_LDFLAGS = $(VSERVER_LDFLGS) 91 else 92 src_testsuite_hashcalc_LDADD = $(LIBINTERNAL_GLIBC) $(LIBENSCVECTOR_GLIBC) $(LIBVSERVER_GLIBC) $(ENSC_CRYPTO_LIB) 93 src_testsuite_hashcalc_LDFLAGS = -Wl,--as-needed 94 95 src_testsuite_hashcalc_plain_LDADD = $(LIBINTERNAL_GLIBC) $(LIBENSCVECTOR_GLIBC) $(LIBVSERVER_GLIBC) $(ENSC_CRYPTO_LIB) 96 src_testsuite_hashcalc_plain_LDFLAGS = -Wl,--as-needed 97 endif 98 99 src_testsuite_CPPFLAGS = -I $(top_srcdir)/src -D ENSC_TESTSUITE 100 101 102 clean-local: clean-testsuite 103 104 clean-testsuite: 105 rm -rf src/testsuite/.libs src/testsuite/_libs