libkernaux/Makefile.am

105 lines
2.0 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 \
-Wall \
-Wextra \
-Wno-gnu-variable-sized-type-not-at-end \
-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 = \
2020-12-06 22:24:43 +00:00
examples/printf \
2020-12-07 00:27:42 +00:00
examples/printf_va \
2020-12-06 21:37:53 +00:00
tests/test_printf \
2020-11-30 00:25:30 +00:00
tests/test_stdlib
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 = \
2020-12-06 21:37:53 +00:00
src/printf.c \
2020-11-30 00:00:47 +00:00
src/stdlib.c
2020-11-27 16:04:15 +00:00
2020-11-30 10:46:35 +00:00
if ARCH_X86
libkernaux_a_SOURCES += src/arch/x86.S
2020-11-30 03:29:58 +00:00
endif
2020-12-06 00:23:07 +00: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
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
TESTS += tests/test_pfa
endif
examples_cmdline_SOURCES = \
$(libkernaux_a_SOURCES) \
examples/cmdline.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
2020-11-29 12:57:34 +00:00
tests_multiboot2_print1_SOURCES = \
2020-11-28 21:24:50 +00:00
$(libkernaux_a_SOURCES) \
2020-11-29 12:57:34 +00:00
tests/multiboot2_print1.c
tests_multiboot2_print2_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/multiboot2_print2.c
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
tests_test_multiboot2_helpers_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_multiboot2_helpers.c
2020-11-28 21:24:50 +00: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-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
2020-12-06 21:37:53 +00:00
tests_test_printf_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_printf.c
2020-11-30 00:25:30 +00:00
tests_test_stdlib_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_stdlib.c