libkernaux/Makefile.am

95 lines
1.8 KiB
Makefile
Raw Normal View History

include $(top_srcdir)/shared.am
2020-11-27 10:29:53 +00:00
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = autogen.sh CONTRIBUTING.md sha256sums.txt
2022-06-03 18:57:17 +00:00
SUBDIRS = include
if WITH_LIBC
# FIXME: after "make clean" libc is not rebuiling
SUBDIRS += libc
endif
2022-06-03 17:39:59 +00:00
SUBDIRS += .
if ENABLE_TESTS
SUBDIRS += examples tests
endif
2022-06-03 19:19:18 +00:00
libc/libc.la:
$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/libc libc.la
2022-06-20 21:28:35 +00:00
AM_CFLAGS += -DKERNAUX_ACCESS_PRIVATE
lib_LTLIBRARIES = libkernaux.la
2022-06-03 19:19:18 +00:00
libkernaux_la_LIBADD =
2022-06-20 21:28:35 +00:00
libkernaux_la_SOURCES = \
src/assert.c \
src/libc.h \
2022-06-21 08:37:52 +00:00
src/generic/malloc.c \
2022-06-20 21:28:35 +00:00
src/generic/mutex.c
2020-11-27 16:04:15 +00:00
if ASM_I386
libkernaux_la_SOURCES += src/asm/i386.S
2020-11-30 03:29:58 +00:00
endif
2022-01-15 10:09:45 +00:00
if ASM_RISCV64
libkernaux_la_SOURCES += src/asm/riscv64.S
2022-01-15 10:09:45 +00:00
endif
if ASM_X86_64
libkernaux_la_SOURCES += src/asm/x86_64.S
2020-12-07 04:37:16 +00:00
endif
if WITH_CMDLINE
libkernaux_la_SOURCES += src/cmdline.c
2020-12-06 00:23:07 +00:00
endif
if WITH_CONSOLE
libkernaux_la_SOURCES += src/console.c
2020-12-06 00:23:07 +00:00
endif
if WITH_ELF
libkernaux_la_SOURCES += src/elf.c
2022-01-17 12:33:28 +00:00
endif
2022-01-11 08:58:47 +00:00
if WITH_FRAMEBUFFER
libkernaux_la_SOURCES += src/framebuffer.c
2022-01-11 08:58:47 +00:00
endif
if WITH_FREE_LIST
libkernaux_la_SOURCES += src/free_list.c
endif
2022-06-14 12:03:17 +00:00
if WITH_IO
libkernaux_la_SOURCES += src/io.c
endif
if WITH_LIBC
libkernaux_la_LIBADD += libc/libc.la
endif
if WITH_MBR
libkernaux_la_SOURCES += src/mbr.c
2022-01-17 12:33:28 +00:00
endif
2022-06-15 07:58:14 +00:00
if WITH_MEMMAP
libkernaux_la_SOURCES += src/memmap.c
endif
if WITH_MULTIBOOT2
libkernaux_la_SOURCES += \
src/multiboot2/enums_to_str.c \
src/multiboot2/header_helpers.c \
2022-01-13 13:50:51 +00:00
src/multiboot2/header_is_valid.c \
src/multiboot2/header_print.c \
src/multiboot2/info_convert.c \
2022-01-13 03:25:09 +00:00
src/multiboot2/info_helpers.c \
src/multiboot2/info_is_valid.c \
2022-01-13 03:12:28 +00:00
src/multiboot2/info_print.c
2020-12-06 00:23:07 +00:00
endif
if WITH_NTOA
libkernaux_la_SOURCES += src/ntoa.c
endif
if WITH_PFA
libkernaux_la_SOURCES += src/pfa.c
2022-01-17 12:33:28 +00:00
endif
2022-01-17 15:00:29 +00:00
if WITH_PRINTF
libkernaux_la_SOURCES += src/printf.c
2022-06-04 01:05:57 +00:00
endif
2022-06-03 19:13:51 +00:00
if WITH_PRINTF_FMT
libkernaux_la_SOURCES += src/printf_fmt.c
2022-06-03 19:13:51 +00:00
endif
if WITH_UNITS
libkernaux_la_SOURCES += src/units.c
2022-06-03 18:57:17 +00:00
endif