1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00
libkernaux/Makefile.am

86 lines
1.6 KiB
Text
Raw Normal View History

# FIXME: dependencies are not built automatically with --enable-split-*
2022-06-03 14:57:17 -04:00
include $(top_srcdir)/shared.am
2020-11-27 05:29:53 -05:00
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = autogen.sh CONTRIBUTING.md sha256sums.txt
2022-06-03 14:57:17 -04:00
SUBDIRS = include
if WITH_LIBC
SUBDIRS += libc
endif
if WITH_LIBM
SUBDIRS += libm
2022-06-03 14:57:17 -04:00
endif
2022-06-03 13:39:59 -04:00
SUBDIRS += .
if ENABLE_TESTS
SUBDIRS += examples tests
endif
2022-06-03 15:19:18 -04:00
lib_LTLIBRARIES = libkernaux.la
2022-06-03 15:19:18 -04:00
libkernaux_la_SOURCES = src/libc.h src/assert.c
libkernaux_la_LIBADD =
2020-11-27 11:04:15 -05:00
if ASM_I386
libkernaux_la_SOURCES += src/asm/i386.S
2020-11-29 22:29:58 -05:00
endif
2022-01-15 05:09:45 -05:00
if ASM_RISCV64
libkernaux_la_SOURCES += src/asm/riscv64.S
2022-01-15 05:09:45 -05:00
endif
if ASM_X86_64
libkernaux_la_SOURCES += src/asm/x86_64.S
2020-12-06 23:37:16 -05:00
endif
if WITH_CMDLINE
libkernaux_la_SOURCES += src/cmdline.c
2020-12-05 19:23:07 -05:00
endif
if WITH_CONSOLE
libkernaux_la_SOURCES += src/console.c
2020-12-05 19:23:07 -05:00
endif
if WITH_ELF
libkernaux_la_SOURCES += src/elf.c
2022-01-17 07:33:28 -05:00
endif
if WITH_FILE
libkernaux_la_SOURCES += src/file.c
endif
2022-01-11 03:58:47 -05:00
if WITH_FRAMEBUFFER
libkernaux_la_SOURCES += src/framebuffer.c
2022-01-11 03:58:47 -05:00
endif
if WITH_LIBC
libkernaux_la_LIBADD += libc/libc.la
endif
if WITH_LIBM
libkernaux_la_LIBADD += libm/libm.la
endif
if WITH_MBR
libkernaux_la_SOURCES += src/mbr.c
2022-01-17 07:33:28 -05:00
endif
if WITH_MULTIBOOT2
libkernaux_la_SOURCES += \
src/multiboot2/enums_to_str.c \
src/multiboot2/header_helpers.c \
2022-01-13 08:50:51 -05:00
src/multiboot2/header_is_valid.c \
src/multiboot2/header_print.c \
2022-01-12 22:25:09 -05:00
src/multiboot2/info_helpers.c \
src/multiboot2/info_is_valid.c \
2022-01-12 22:12:28 -05:00
src/multiboot2/info_print.c
2020-12-05 19:23:07 -05:00
endif
if WITH_NTOA
libkernaux_la_SOURCES += src/ntoa.c
endif
if WITH_PFA
libkernaux_la_SOURCES += src/pfa.c
2022-01-17 07:33:28 -05:00
endif
2022-01-17 10:00:29 -05:00
if WITH_PRINTF
libkernaux_la_SOURCES += src/printf.c
2022-06-03 21:05:57 -04:00
endif
2022-06-03 15:13:51 -04:00
if WITH_PRINTF_FMT
libkernaux_la_SOURCES += src/printf_fmt.c
2022-06-03 15:13:51 -04:00
endif
if WITH_UNITS
libkernaux_la_SOURCES += src/units.c
2022-06-03 14:57:17 -04:00
endif