HardenedBSD/sys/amd64/Makefile
Warner Losh e9ac41698b Remove residual blank line at start of Makefile
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
2024-07-15 16:43:39 -06:00

40 lines
1.1 KiB
Makefile

# Makefile for amd64 links, tags file
# SYS is normally set in Make.tags.inc
SYS=/sys
TAGDIR= amd64
.include "../kern/Make.tags.inc"
all:
@echo "make links or tags only"
# Directories in which to place amd64 tags links
DAMD64= acpica amd64 ia32 include linux linux32 pci sgx vmm
links::
-for i in ${COMMDIR1}; do \
(cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done
-for i in ${COMMDIR2}; do \
(cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done
-for i in ${DAMD64}; do \
(cd ${SYS}/amd64/$$i && { rm -f tags; ln -s ../tags tags; }) done
SAMD64= ${SYS}/amd64/acpica/*.[ch] \
${SYS}/amd64/amd64/*.[ch] ${SYS}/amd64/ia32/*.[ch] \
${SYS}/amd64/include/*.[ch] ${SYS}/amd64/linux/*.[ch] \
${SYS}/amd64/linux32/*.[ch] ${SYS}/amd64/pci/*.[ch] \
${SYS}/amd64/sgx/*.[ch] ${SYS}/amd64/vmm/*.[ch]
AAMD64= ${SYS}/amd64/amd64/*.S
tags::
-ctags -wdt ${COMM} ${SAMD64}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMD64} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> tags
sort -o tags tags
chmod 444 tags
rm -f ${SYS}/amd64/tags
mv tags ${SYS}/amd64/tags