diff options
author | Mattias Andrée <maandree@kth.se> | 2023-12-07 20:35:16 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-12-07 20:35:16 +0100 |
commit | 225f1408e03f2e66198f3da20c42a746e2729ab0 (patch) | |
tree | ebd6bd4b576c85159e852103ce21d4515484d853 /mk | |
parent | Third commit (diff) | |
download | libsyscalls-225f1408e03f2e66198f3da20c42a746e2729ab0.tar.gz libsyscalls-225f1408e03f2e66198f3da20c42a746e2729ab0.tar.bz2 libsyscalls-225f1408e03f2e66198f3da20c42a746e2729ab0.tar.xz |
Fourth commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'mk')
-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) > $@ |