trace: switch to modular code generation for sub-directories
Introduce rules in the top level Makefile that are able to generate trace.[ch] files in every subdirectory which has a trace-events file. The top level directory is handled specially, so instead of creating trace.h, it creates trace-root.h. This allows sub-directories to include the top level trace-root.h file, without ambiguity wrt to the trace.g file in the current sub-dir. Reviewed-by:Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by:
Daniel P. Berrange <berrange@redhat.com> Message-id: 20170125161417.31949-7-berrange@redhat.com Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com>
Showing
- .gitignore 16 additions, 6 deletions.gitignore
- Makefile 137 additions, 19 deletionsMakefile
- Makefile.objs 55 additions, 47 deletionsMakefile.objs
- Makefile.target 5 additions, 2 deletionsMakefile.target
- aio-posix.c 1 addition, 1 deletionaio-posix.c
- balloon.c 1 addition, 1 deletionballoon.c
- block.c 1 addition, 1 deletionblock.c
- blockdev-nbd.c 0 additions, 1 deletionblockdev-nbd.c
- blockdev.c 1 addition, 1 deletionblockdev.c
- blockjob.c 0 additions, 1 deletionblockjob.c
- cpu-exec.c 1 addition, 1 deletioncpu-exec.c
- dma-helpers.c 1 addition, 1 deletiondma-helpers.c
- exec.c 1 addition, 1 deletionexec.c
- hw/net/fsl_etsec/etsec.c 0 additions, 1 deletionhw/net/fsl_etsec/etsec.c
- include/exec/cpu_ldst_template.h 1 addition, 1 deletioninclude/exec/cpu_ldst_template.h
- include/exec/cpu_ldst_useronly_template.h 1 addition, 1 deletioninclude/exec/cpu_ldst_useronly_template.h
- include/hw/xen/xen_common.h 1 addition, 1 deletioninclude/hw/xen/xen_common.h
- include/trace.h 0 additions, 6 deletionsinclude/trace.h
- ioport.c 1 addition, 1 deletionioport.c
- kvm-all.c 1 addition, 1 deletionkvm-all.c
Loading
Please register or sign in to comment