aboutsummaryrefslogtreecommitdiff
path: root/lib/build.mk
blob: 06c6006c28891084a03cc53d5d8b9b9a5a429166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!../mach

# minimal C standard library
TARGETLIB += libk
libk.SRCS = \
	libk/endian/little.c \
	libk/stdio/printf.c libk/stdio/fprintf.c libk/stdio/vfprintf.cpp \
	libk/stdlib/memcpy.c libk/stdlib/memset.c libk/stdlib/linked_list_allocator.c \
	libk/string/itoa.c

HOSTTARGETBIN += libk/endian/test_endian_little
libk/endian/test_endian_little.SRCS = libk/endian/test_endian_little.cc

HOSTTARGETBIN += libk/stdlib/test_linked_list_allocator
libk/stdlib/test_linked_list_allocator.SRCS = libk/stdlib/test_linked_list_allocator.cc

HOSTTARGETBIN += libk/stdlib/test_mem
libk/stdlib/test_mem.SRCS = libk/stdlib/test_mem.cc

HOSTTARGETBIN += libk/string/test_string
libk/string/test_string.SRCS = libk/string/test_string.cc

TESTS += \
	 libk/endian/test_endian_little \
	 libk/stdlib/test_linked_list_allocator libk/stdlib/test_mem \
	 libk/string/test_string

# blake2s hash algorithm
TARGETLIB += blake2
blake2.SRCS = blake2/blake2s.c

HOSTTARGETBIN += blake2/test_blake2s_selftest
blake2/test_blake2s_selftest.SRCS = blake2/test_blake2s_selftest.cc

TESTS += blake2/test_blake2s_selftest