libkernaux/Makefile.am

167 lines
3.2 KiB
Makefile
Raw Normal View History

2020-11-27 10:29:53 +00:00
SUBDIRS = include
2020-12-06 06:51:11 +00:00
AM_CFLAGS = \
-std=c99 \
2021-12-13 21:10:38 +00:00
-pedantic \
2020-12-06 06:51:11 +00:00
-Wall \
-Wextra \
2022-01-11 09:33:21 +00:00
-Wno-cast-function-type \
2020-12-06 06:51:11 +00:00
-I$(top_srcdir)/include
2020-11-27 09:28:13 +00:00
lib_LIBRARIES = libkernaux.a
2020-11-27 16:04:15 +00:00
TESTS = \
2021-12-20 02:22:43 +00:00
examples/assert_guards \
examples/assert_simple \
2020-12-06 22:24:43 +00:00
examples/printf \
2020-12-07 00:27:42 +00:00
examples/printf_va \
2021-12-15 10:45:40 +00:00
tests/test_itoa \
tests/test_printf
2020-11-27 16:04:15 +00:00
2020-12-06 00:23:07 +00:00
noinst_PROGRAMS = $(TESTS)
2020-11-27 16:04:15 +00:00
2020-11-27 09:28:13 +00:00
libkernaux_a_SOURCES = \
2021-12-14 20:37:11 +00:00
src/assert.c \
2021-12-15 10:45:40 +00:00
src/itoa.c \
src/libc.c \
src/printf.c
2020-11-27 16:04:15 +00:00
if ASM_I386
libkernaux_a_SOURCES += src/asm/i386.S
2020-11-30 03:29:58 +00:00
endif
if ASM_X86_64
libkernaux_a_SOURCES += src/asm/x86_64.S
2020-12-07 04:37:16 +00:00
endif
if WITH_CMDLINE
2020-12-06 00:23:07 +00:00
libkernaux_a_SOURCES += src/cmdline.c
TESTS += \
examples/cmdline \
tests/test_cmdline
endif
if WITH_CONSOLE
2022-01-10 04:45:02 +00:00
libkernaux_a_SOURCES += src/console.c
2020-12-06 00:23:07 +00:00
endif
if WITH_ELF
2021-12-13 22:07:00 +00:00
libkernaux_a_SOURCES += src/elf.c
TESTS += tests/test_elf
endif
2022-01-11 08:58:47 +00:00
if WITH_FRAMEBUFFER
libkernaux_a_SOURCES += src/framebuffer.c
endif
if WITH_MULTIBOOT2
2020-12-06 00:23:07 +00:00
libkernaux_a_SOURCES += \
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
TESTS += \
2022-01-13 03:25:09 +00:00
tests/test_multiboot2_info_helpers \
2022-01-13 03:12:28 +00:00
tests/test_multiboot2_info_print \
tests/test_multiboot2_info_validation
2020-12-06 00:23:07 +00:00
noinst_PROGRAMS += \
2022-01-13 03:12:28 +00:00
tests/multiboot2_info_print1 \
tests/multiboot2_info_print2
2020-12-06 00:23:07 +00:00
endif
if WITH_PFA
2020-12-06 00:23:07 +00:00
libkernaux_a_SOURCES += src/pfa.c
2021-12-13 23:56:31 +00:00
TESTS += \
examples/pfa \
2021-12-14 22:10:28 +00:00
tests/test_pfa \
tests/test_pfa_assert
2020-12-06 00:23:07 +00:00
endif
if WITH_UNITS
libkernaux_a_SOURCES += src/units.c
2021-12-13 20:23:22 +00:00
TESTS += \
examples/units_human \
tests/test_units_human
endif
2021-12-20 02:22:43 +00:00
examples_assert_guards_SOURCES = \
2021-12-18 00:51:12 +00:00
$(libkernaux_a_SOURCES) \
2021-12-20 02:22:43 +00:00
examples/assert_guards.c
2021-12-18 00:51:12 +00:00
examples_assert_simple_SOURCES = \
2021-12-14 20:37:11 +00:00
$(libkernaux_a_SOURCES) \
2021-12-18 00:51:12 +00:00
examples/assert_simple.c
2021-12-14 20:37:11 +00:00
examples_cmdline_SOURCES = \
$(libkernaux_a_SOURCES) \
examples/cmdline.c
2021-12-13 23:56:31 +00:00
examples_pfa_SOURCES = \
$(libkernaux_a_SOURCES) \
examples/pfa.c
2020-12-06 22:24:43 +00:00
examples_printf_SOURCES = \
$(libkernaux_a_SOURCES) \
examples/printf.c
2020-12-07 00:27:42 +00:00
examples_printf_va_SOURCES = \
$(libkernaux_a_SOURCES) \
examples/printf_va.c
examples_units_human_SOURCES = \
$(libkernaux_a_SOURCES) \
examples/units_human.c
2022-01-13 03:12:28 +00:00
tests_multiboot2_info_print1_SOURCES = \
2020-11-28 21:24:50 +00:00
$(libkernaux_a_SOURCES) \
2022-01-13 03:12:28 +00:00
tests/multiboot2_info_print1.c \
2022-01-13 04:05:34 +00:00
tests/multiboot2_info_example1.h
2020-11-29 12:57:34 +00:00
2022-01-13 03:12:28 +00:00
tests_multiboot2_info_print2_SOURCES = \
2020-11-29 12:57:34 +00:00
$(libkernaux_a_SOURCES) \
2022-01-13 03:12:28 +00:00
tests/multiboot2_info_print2.c \
2022-01-13 04:05:34 +00:00
tests/multiboot2_info_example2.h
2020-11-28 21:24:50 +00:00
2020-12-01 19:55:16 +00:00
tests_test_cmdline_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_cmdline.c
2021-12-12 20:30:27 +00:00
tests_test_elf_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_elf.c
2021-12-15 10:45:40 +00:00
tests_test_itoa_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_itoa.c
2022-01-13 03:25:09 +00:00
tests_test_multiboot2_info_helpers_SOURCES = \
$(libkernaux_a_SOURCES) \
2022-01-13 03:25:09 +00:00
tests/test_multiboot2_info_helpers.c \
2022-01-13 04:05:34 +00:00
tests/multiboot2_info_example1.h \
tests/multiboot2_info_example2.h
2022-01-13 03:12:28 +00:00
tests_test_multiboot2_info_print_SOURCES = \
2020-11-28 21:24:50 +00:00
$(libkernaux_a_SOURCES) \
2022-01-13 03:12:28 +00:00
tests/test_multiboot2_info_print.c
2020-11-28 21:24:50 +00:00
tests_test_multiboot2_info_validation_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_multiboot2_info_validation.c \
2022-01-13 04:05:34 +00:00
tests/multiboot2_info_example1.h \
tests/multiboot2_info_example2.h
2020-11-30 00:25:30 +00:00
2020-11-30 18:32:27 +00:00
tests_test_pfa_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_pfa.c
2021-12-14 22:10:28 +00:00
tests_test_pfa_assert_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_pfa_assert.c
2020-12-06 21:37:53 +00:00
tests_test_printf_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_printf.c
2021-12-13 20:23:22 +00:00
tests_test_units_human_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_units_human.c