libclayer/Makefile.am

44 lines
721 B
Makefile
Raw 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-25 10:14:39 +00:00
lib_LTLIBRARIES = libclayer.la
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-25 10:14:39 +00:00
libclayer_la_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-25 10:14:39 +00:00
libclayer_la_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-25 10:14:39 +00:00
libclayer_la_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