libclayer/Makefile.am

55 lines
926 B
Makefile
Raw Permalink Normal View History

2022-12-25 08:58:00 +00:00
include $(top_srcdir)/make/shared.am
include $(top_srcdir)/make/checks.am
ACLOCAL_AMFLAGS = -I m4
2022-12-25 10:30:48 +00:00
EXTRA_DIST = autogen.sh sha256sums.txt
2022-12-25 08:58:00 +00:00
2022-12-25 10:06:58 +00:00
SUBDIRS = include .
2022-12-25 08:58:00 +00:00
if ENABLE_CHECKS
2022-12-25 09:16:21 +00:00
SUBDIRS += tests
2022-12-25 08:58:00 +00:00
endif
2022-12-27 09:05:30 +00:00
lib_LTLIBRARIES =
if ENABLE_LIBCLAYER
lib_LTLIBRARIES += libclayer.la
libclayer_la_SOURCES = $(common_sources)
endif
if ENABLE_LIBC
lib_LTLIBRARIES += libc.la
libc_la_SOURCES = $(common_sources)
libc_la_CFLAGS = $(AM_CFLAGS) -DLIBCLAYER_NOPREFIX
endif
2022-12-25 08:58:00 +00:00
if ENABLE_PKG_CONFIG
pkgconfigdir = @pkgconfdir@
2022-12-25 10:14:39 +00:00
pkgconfig_DATA = libclayer.pc
2022-12-25 08:58:00 +00:00
endif
##################
# Required files #
##################
2022-12-27 09:05:30 +00:00
common_sources = \
2022-12-25 10:06:58 +00:00
src/ctype.c \
src/errno.c \
2022-12-25 10:21:35 +00:00
src/libclayer.c \
2022-12-25 10:06:58 +00:00
src/stdlib.c \
src/string.c
if ASM_I386
2022-12-27 09:05:30 +00:00
common_sources += \
2022-12-25 10:06:58 +00:00
src/asm/i386/longjmp.S \
src/asm/i386/setjmp.S
endif
2022-12-25 08:58:00 +00:00
2022-12-25 10:06:58 +00:00
if ASM_X86_64
2022-12-27 09:05:30 +00:00
common_sources += \
2022-12-25 10:06:58 +00:00
src/asm/x86_64/longjmp.S \
src/asm/x86_64/setjmp.S
2022-12-25 08:58:00 +00:00
endif
2022-12-25 10:06:58 +00:00
# TODO: implement setjmp/longjmp for riscv64