From 225f1408e03f2e66198f3da20c42a746e2729ab0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 7 Dec 2023 20:35:16 +0100 Subject: Fourth commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- mk/generate.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/generate.mk b/mk/generate.mk index 17671f4..9575c34 100644 --- a/mk/generate.mk +++ b/mk/generate.mk @@ -1,7 +1,8 @@ # See LICENSE file for copyright and license details. NPARAMS != printf '%d\n' 1 $(NPARAMS) | sort -n | sed -n '$$p' +NFIELDS != printf '%d\n' 1 $(NFIELDS) | sort -n | sed -n '$$p' -IMPORTANT_CPPFLAGS += -DNPARAMS="$(NPARAMS)" +IMPORTANT_CPPFLAGS += -DNPARAMS="$(NPARAMS)" -DNFIELDS="$(NFIELDS)" GET_SYSCALL_RANGE_GEN != printf 'generated/get_syscall_range.%s.c\n' $(OPERATING_SYSTEMS) @@ -21,6 +22,9 @@ libsyscalls_get_syscall_errors.lo: generated/errors.c libsyscalls_get_datatype_description.o: generated/types.c libsyscalls_get_datatype_description.lo: generated/types.c +libsyscalls_get_integer_alignment.o: generated/integers.c +libsyscalls_get_integer_alignment.lo: generated/integers.c + $(GET_SYSCALL_RANGE_GEN): get_syscall_range.template.c mk/generate.mk mkdir -p -- generated @@ -48,6 +52,10 @@ generated/types.c: Makefile mk/generate.mk mkdir -p -- generated printf '\43include "../%s/types.c"\n' $(OPERATING_SYSTEMS) > $@ +generated/integers.c: Makefile mk/generate.mk + mkdir -p -- generated + printf '\43include "../%s/integers.c"\n' $(OPERATING_SYSTEMS) > $@ + generated/arches.h: Makefile mk/generate.mk mkdir -p -- generated printf '\43include "%s-arches.h"\n' $(OPERATING_SYSTEMS) > $@ -- cgit v1.2.3-70-g09d2