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

154 lines
2.8 KiB
Text
Raw Normal View History

2020-11-27 05:29:53 -05:00
SUBDIRS = include
2020-12-06 01:51:11 -05:00
AM_CFLAGS = \
-std=c99 \
2021-12-13 16:10:38 -05:00
-pedantic \
2020-12-06 01:51:11 -05:00
-Wall \
-Wextra \
-I$(top_srcdir)/include
2020-11-27 04:28:13 -05:00
lib_LIBRARIES = libkernaux.a
2020-11-27 11:04:15 -05:00
TESTS = \
2020-12-06 17:24:43 -05:00
examples/printf \
2020-12-06 19:27:42 -05:00
examples/printf_va \
2021-12-15 05:45:40 -05:00
tests/test_itoa \
tests/test_printf
2020-11-27 11:04:15 -05:00
2020-12-05 19:23:07 -05:00
noinst_PROGRAMS = $(TESTS)
2020-11-27 11:04:15 -05:00
2020-11-27 04:28:13 -05:00
libkernaux_a_SOURCES = \
2021-12-14 15:37:11 -05:00
src/assert.c \
2021-12-15 05:45:40 -05:00
src/itoa.c \
src/libc.c \
src/printf.c
2020-11-27 11:04:15 -05:00
2020-12-07 21:56:38 -05:00
if ARCH_I386
libkernaux_a_SOURCES += src/arch/i386.S
2020-11-29 22:29:58 -05:00
endif
2020-12-06 23:37:16 -05:00
if ARCH_X86_64
libkernaux_a_SOURCES += src/arch/x86_64.S
endif
2021-12-14 15:37:11 -05:00
if ENABLE_ASSERT
TESTS += examples/assert
endif
2020-12-05 19:23:07 -05:00
if ENABLE_CMDLINE
libkernaux_a_SOURCES += src/cmdline.c
TESTS += \
examples/cmdline \
tests/test_cmdline
endif
if ENABLE_CONSOLE
libkernaux_a_SOURCES += src/console.c
endif
2021-12-13 17:07:00 -05:00
if ENABLE_ELF
libkernaux_a_SOURCES += src/elf.c
TESTS += tests/test_elf
endif
2020-12-05 19:23:07 -05:00
if ENABLE_MULTIBOOT2
libkernaux_a_SOURCES += \
src/multiboot2/helpers.c \
src/multiboot2/is_valid.c \
src/multiboot2/print.c
TESTS += \
tests/test_multiboot2_helpers \
tests/test_multiboot2_print \
tests/test_multiboot2_validation
noinst_PROGRAMS += \
tests/multiboot2_print1 \
tests/multiboot2_print2
endif
if ENABLE_PFA
libkernaux_a_SOURCES += src/pfa.c
2021-12-13 18:56:31 -05:00
TESTS += \
examples/pfa \
2021-12-14 17:10:28 -05:00
tests/test_pfa \
tests/test_pfa_assert
2020-12-05 19:23:07 -05:00
endif
if ENABLE_UNITS
libkernaux_a_SOURCES += src/units.c
2021-12-13 15:23:22 -05:00
TESTS += \
examples/units_human \
tests/test_units_human
endif
2021-12-14 15:37:11 -05:00
examples_assert_SOURCES = \
$(libkernaux_a_SOURCES) \
examples/assert.c
examples_cmdline_SOURCES = \
$(libkernaux_a_SOURCES) \
examples/cmdline.c
2021-12-13 18:56:31 -05:00
examples_pfa_SOURCES = \
$(libkernaux_a_SOURCES) \
examples/pfa.c
2020-12-06 17:24:43 -05:00
examples_printf_SOURCES = \
$(libkernaux_a_SOURCES) \
examples/printf.c
2020-12-06 19:27:42 -05:00
examples_printf_va_SOURCES = \
$(libkernaux_a_SOURCES) \
examples/printf_va.c
examples_units_human_SOURCES = \
$(libkernaux_a_SOURCES) \
examples/units_human.c
2020-11-29 07:57:34 -05:00
tests_multiboot2_print1_SOURCES = \
2020-11-28 16:24:50 -05:00
$(libkernaux_a_SOURCES) \
2020-11-29 07:57:34 -05:00
tests/multiboot2_print1.c
tests_multiboot2_print2_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/multiboot2_print2.c
2020-11-28 16:24:50 -05:00
2020-12-01 14:55:16 -05:00
tests_test_cmdline_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_cmdline.c
2021-12-12 15:30:27 -05:00
tests_test_elf_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_elf.c
2021-12-15 05:45:40 -05:00
tests_test_itoa_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_itoa.c
tests_test_multiboot2_helpers_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_multiboot2_helpers.c
2020-11-28 16:24:50 -05:00
tests_test_multiboot2_print_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_multiboot2_print.c
tests_test_multiboot2_validation_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_multiboot2_validation.c
2020-11-29 19:25:30 -05:00
2020-11-30 13:32:27 -05:00
tests_test_pfa_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_pfa.c
2021-12-14 17:10:28 -05:00
tests_test_pfa_assert_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_pfa_assert.c
2020-12-06 16:37:53 -05:00
tests_test_printf_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_printf.c
2021-12-13 15:23:22 -05:00
tests_test_units_human_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_units_human.c