Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # $OpenBSD: Makefile,v 1.39 2015/07/21 04:14:48 jasper Exp $
  2. # Makefile for kernel tags files, init_sysent, etc.
  3. ARCH= alpha amd64 armish armv7 aviion \
  4. hppa hppa64 i386 landisk loongson \
  5. luna88k macppc octeon sgi socppc \
  6. solbourne sparc sparc64 vax zaurus
  7. all:
  8. @echo "Doing nothing. Did you want make syscalls?"
  9. syscalls: init_sysent.c
  10. SYSCALLSRC = makesyscalls.sh syscalls.conf syscalls.master
  11. init_sysent.c syscalls.c ../sys/syscall.h ../sys/syscallargs.h: ${SYSCALLSRC}
  12. sh makesyscalls.sh syscalls.conf syscalls.master
  13. # Kernel tags:
  14. # tags files are built in the top-level directory for each architecture.
  15. # Links to the correct tags file are placed in each source directory.
  16. # We need to have links to tags files
  17. # from the generic directories that are relative to the machine type, even
  18. # via remote mounts; therefore we use symlinks to $SYSTAGS, which points at
  19. # ${SYSDIR}/${MACHINE}/tags.
  20. SYSTAGS=/var/db/sys_tags
  21. SYSDIR=/sys
  22. # Directories in which to place tags links (other than machine-dependent)
  23. DGEN= compat compat/common \
  24. compat/linux \
  25. conf \
  26. ddb \
  27. dev dev/eisa dev/ic dev/isa dev/pci dev/pcmcia dev/cardbus \
  28. dev/sun dev/tc \
  29. isofs isofs/cd9660 \
  30. kern \
  31. lib/libkern lib/libkern/arch/${MACHINE} \
  32. lib/libkern/arch/${MACHINE_ARCH} \
  33. miscfs miscfs/deadfs miscfs/fifofs \
  34. msdosfs \
  35. net netinet netmpls \
  36. nfs \
  37. scsi \
  38. sys \
  39. ufs ufs/ffs ufs/mfs ufs/ufs \
  40. uvm
  41. tags::
  42. -for i in ${ARCH}; do \
  43. (cd ../arch/$$i && make ${MFLAGS} tags); done
  44. links::
  45. rm -f ${SYSTAGS}
  46. ln -s ${SYSDIR}/arch/${MACHINE}/tags ${SYSTAGS}
  47. -for i in ${DGEN}; do \
  48. (cd ../$$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done
  49. -for i in ${ARCH}; do \
  50. (cd ../arch/$$i && make ${MFLAGS} SYSTAGS=${SYSTAGS} links); done