Edit

kc3-lang/libbsd/include/Makefile.am

Branch :

  • Browse

    Commit

  • Author : Guillem Jover
    Date : 2024-02-11 23:55:40
    Hash : be4aced4
    Message : build: Make almost all exposed interfaces use the new ABI selection Explicitly select what to include as part of the target ABI, instead of letting autoconfiguration potentially break ABI if the system grows functionality provided by the library. Make almost all the library selectable per target. Do not install manual pages for interfaces not included in the library. Control inclusion of symbols in map file via pre-processor macros, and move the comments describing the ABI selection to configure.ac. For now the header files are included as is and filtered through pre-processor conditionals. Eventually they might get switched to be autogenerated at build time.

  • include/Makefile.am
  • ## Process this file with automake to produce Makefile.in
    
    nobase_include_HEADERS = \
    	bsd/sys/bitstring.h \
    	bsd/sys/cdefs.h \
    	bsd/sys/endian.h \
    	bsd/sys/param.h \
    	bsd/sys/poll.h \
    	bsd/sys/queue.h \
    	bsd/sys/time.h \
    	bsd/sys/tree.h \
    	bsd/netinet/ip_icmp.h \
    	bsd/bitstring.h \
    	bsd/bsd.h \
    	bsd/inttypes.h \
    	bsd/libutil.h \
    	bsd/stdio.h \
    	bsd/stdlib.h \
    	bsd/string.h \
    	bsd/unistd.h \
    	bsd/wchar.h \
    	# EOL
    
    if ABI_ERR
    nobase_include_HEADERS += \
    	bsd/err.h \
    	# EOL
    endif
    
    if ABI_BSD_GETOPT
    nobase_include_HEADERS += \
    	bsd/getopt.h \
    	# EOL
    endif
    
    if ABI_MD5
    nobase_include_HEADERS += \
    	bsd/md5.h \
    	# EOL
    endif
    
    if ABI_NLIST
    nobase_include_HEADERS += \
    	bsd/nlist.h \
    	# EOL
    endif
    
    if ABI_READPASSPHRASE
    nobase_include_HEADERS += \
    	bsd/readpassphrase.h \
    	# EOL
    endif
    
    if ABI_PWCACHE
    nobase_include_HEADERS += \
    	bsd/grp.h \
    	bsd/pwd.h \
    	# EOL
    endif
    
    if ABI_STRINGLIST
    nobase_include_HEADERS += \
    	bsd/stringlist.h \
    	# EOL
    endif
    
    if ABI_TIMECONV
    nobase_include_HEADERS += \
    	bsd/timeconv.h \
    	# EOL
    endif
    
    if ABI_VIS
    nobase_include_HEADERS += \
    	bsd/vis.h \
    	# EOL
    endif