diff options
Diffstat (limited to '')
-rw-r--r-- | mk/generate.mk | 10 |
1 files changed, 9 insertions, 1 deletions
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) > $@ |