Edit

kc3-lang/libbsd/test/Makefile.am

Branch :

  • Browse

    Commit

  • Author : Guillem Jover
    Date : 2015-09-22 16:22:56
    Hash : 151bc71d
    Message : Add compile and link-time deprecation warnings for fgetln() Although the current implementation in libbsd is probably one of the safest ones around, it still poses some problems when used with many file streams. This function has now a replacement, that is both more standard and portable. Ask users to switch to getline(3) instead.

  • test/Makefile.am
  • ## Process this file with automake to produce Makefile.in
    
    AM_CPPFLAGS = \
    	-I$(top_builddir) \
    	-isystem $(top_srcdir)/include/bsd/ \
    	-include $(top_builddir)/config.h \
    	-DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED \
    	-D__REENTRANT
    
    LDADD = $(top_builddir)/src/libbsd.la
    
    check_PROGRAMS = \
    	headers \
    	overlay \
    	closefrom \
    	endian \
    	humanize \
    	fgetln \
    	funopen \
    	fparseln \
    	fpurge \
    	proctitle-init \
    	$(nil)
    
    if BUILD_LIBBSD_CTOR
    check_PROGRAMS += proctitle
    endif
    
    fgetln_SOURCES = test-stream.c test-stream.h fgetln.c
    fgetln_CFLAGS = -Wno-deprecated-declarations
    fparseln_SOURCES = test-stream.c test-stream.h fparseln.c
    
    proctitle_init_SOURCES = proctitle.c
    proctitle_init_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_USE_SETPROCTITLE_INIT=1
    
    proctitle_LDFLAGS = \
    	-Wl,-u,libbsd_init_func \
    	$(top_builddir)/src/libbsd-ctor.a \
    	$(top_builddir)/src/libbsd.la \
    	$(nil)
    
    TESTS = $(check_PROGRAMS)