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