Files
seader/Makefile
T
2026-03-08 18:39:39 -07:00

35 lines
737 B
Makefile

all: gitsub asn1 build
gitsub:
git submodule update --init --recursive
asn1:
asn1c -S ./lib/asn1_skeletons -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all seader.asn1
build:
ufbt
test-host:
mkdir -p build/host_tests
cc -std=c11 -Wall -Wextra -Werror -DSEADER_HOST_TEST -Itests/host/vendor/munit -Itests/host -I. \
tests/host/vendor/munit/munit.c \
tests/host/test_main.c \
tests/host/test_lrc.c \
tests/host/test_t1_existing.c \
tests/host/t1_test_stubs.c \
tests/host/bit_buffer_mock.c \
lrc.c \
t_1.c \
-o build/host_tests/seader_tests
./build/host_tests/seader_tests
launch:
ufbt launch
format:
ufbt format ARGS="!./tests/host/vendor/munit"
clean:
rm -rf dist
rm -rf build/host_tests