vshost-util-vserver

Build script and sources for util-vserver.
git clone https://ccx.te2000.cz/git/vshost-util-vserver
Log | Files | Refs

Makefile-files (4438B)


      1 ## $Id$	--*- makefile -*--
      2 
      3 ## Copyright (C) 2004 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 check_PROGRAMS +=		lib_internal/testsuite/command
     19 
     20 if ENSC_HAVE_C99_COMPILER
     21 check_PROGRAMS +=		lib_internal/testsuite/filecfg-ml \
     22 				lib_internal/testsuite/copy \
     23 				lib_internal/testsuite/isnumber \
     24 				lib_internal/testsuite/isnumber-gnu \
     25 				lib_internal/testsuite/sigbus \
     26 				lib_internal/testsuite/sigbus-gnu \
     27 				lib_internal/testsuite/matchlist \
     28 				lib_internal/testsuite/matchlist-gnu
     29 TESTS +=			lib_internal/testsuite/filecfg-ml \
     30 				lib_internal/testsuite/copy-check \
     31 				lib_internal/testsuite/isnumber \
     32 				lib_internal/testsuite/isnumber-gnu \
     33 				lib_internal/testsuite/sigbus \
     34 				lib_internal/testsuite/sigbus-gnu \
     35 				lib_internal/testsuite/matchlist \
     36 				lib_internal/testsuite/matchlist-gnu
     37 endif
     38 
     39 if ENSC_HAVE_CRYPTO
     40 check_PROGRAMS +=		lib_internal/testsuite/crypto \
     41 				lib_internal/testsuite/crypto-speed
     42 TESTS +=			lib_internal/testsuite/crypto
     43 endif
     44 
     45 DIETPROGS +=			lib_internal/testsuite/isnumber \
     46 				lib_internal/testsuite/sigbus \
     47 				lib_internal/testsuite/matchlist
     48 
     49 if ENSC_CAN_CRYPTO_WITH_DIETLIBC
     50 DIETPROGS +=			lib_internal/testsuite/crypto \
     51 				lib_internal/testsuite/crypto-speed
     52 endif
     53 
     54 EXTRA_DIST +=			lib_internal/testsuite/copy-check
     55 
     56 TESTS_ENVIRONMENT += 		libinternaltestsuitedir=$(top_builddir)/lib_internal/testsuite
     57 
     58 
     59 # When building both a GNU and a dietlibc version, set target specific
     60 # CPPFLAGS to enforce separate compilation for both variants
     61 
     62 lib_internal_testsuite_command_SOURCES =	lib_internal/testsuite/command.c
     63 lib_internal_testsuite_command_LDADD =		$(LIBINTERNAL_GLIBC) \
     64 						$(LIBENSCVECTOR_GLIBC)
     65 
     66 lib_internal_testsuite_filecfg_ml_SOURCES =	lib_internal/testsuite/filecfg-ml.c
     67 lib_internal_testsuite_filecfg_ml_LDADD =	$(LIBINTERNAL_GLIBC)
     68 
     69 lib_internal_testsuite_copy_SOURCES =		lib_internal/testsuite/copy.c
     70 lib_internal_testsuite_copy_LDADD =		$(LIBINTERNAL_GLIBC)
     71 
     72 lib_internal_testsuite_isnumber_SOURCES =	lib_internal/testsuite/isnumber.c
     73 lib_internal_testsuite_isnumber_LDADD =		$(LIBINTERNAL)
     74 lib_internal_testsuite_isnumber_CPPFLAGS =	$(AM_CPPFLAGS)		# see note above
     75 
     76 lib_internal_testsuite_isnumber_gnu_SOURCES =	lib_internal/testsuite/isnumber.c
     77 lib_internal_testsuite_isnumber_gnu_LDADD =	$(LIBINTERNAL_GLIBC)
     78 lib_internal_testsuite_isnumber_gnu_CPPFLAGS =	$(AM_CPPFLAGS)		# see note above
     79 
     80 lib_internal_testsuite_sigbus_SOURCES =		lib_internal/testsuite/sigbus.c
     81 lib_internal_testsuite_sigbus_CPPFLAGS =	$(AM_CPPFLAGS)		# see note above
     82 
     83 lib_internal_testsuite_sigbus_gnu_SOURCES =	lib_internal/testsuite/sigbus.c
     84 lib_internal_testsuite_sigbus_gnu_CPPFLAGS =	$(AM_CPPFLAGS)		# see note above
     85 
     86 lib_internal_testsuite_matchlist_SOURCES =	lib_internal/testsuite/matchlist.c
     87 lib_internal_testsuite_matchlist_LDADD =	$(LIBINTERNAL)
     88 lib_internal_testsuite_matchlist_CPPFLAGS =	$(AM_CPPFLAGS)		# see note above
     89 
     90 lib_internal_testsuite_matchlist_gnu_SOURCES =	lib_internal/testsuite/matchlist.c
     91 lib_internal_testsuite_matchlist_gnu_LDADD =	$(LIBINTERNAL_GLIBC)
     92 lib_internal_testsuite_matchlist_gnu_CPPFLAGS =	$(AM_CPPFLAGS)		# see note above
     93 
     94 if ENSC_HAVE_CRYPTO
     95 lib_internal_testsuite_crypto_speed_SOURCES =	lib_internal/testsuite/crypto-speed.c
     96 lib_internal_testsuite_crypto_speed_CFLAGS =	$(AM_CFLAGS) $(ENSC_CRYPTO_CFLAGS)
     97 lib_internal_testsuite_crypto_speed_LDADD =	$(ENSC_CRYPTO_LIB) -lrt
     98 
     99 lib_internal_testsuite_crypto_SOURCES =		lib_internal/testsuite/crypto.c
    100 lib_internal_testsuite_crypto_CFLAGS =		$(AM_CFLAGS) $(ENSC_CRYPTO_CFLAGS)
    101 lib_internal_testsuite_crypto_LDADD =		$(ENSC_CRYPTO_LIB)
    102 
    103 if !ENSC_CAN_CRYPTO_WITH_DIETLIBC
    104 lib_internal_testsuite_crypto_speed_LDFLAGS =	-Wl,--as-needed
    105 lib_internal_testsuite_crypto_LDFLAGS =		-Wl,--as-needed
    106 endif
    107 endif