1 # $OpenBSD: Makefile,v 1.32 2013/06/01 21:26:17 stsp Exp $
3 # The NLS (message catalog) functions are always in libc. To choose that
4 # strerror(), perror(), strsignal(), psignal(), etc. actually call the NLS
5 # functions, put -DNLS on the CFLAGS line below.
7 # The YP functions are always in libc. To choose that getpwent() and friends
8 # actually call the YP functions, put -DYP on the CFLAGS line below.
15 LDADD
=-nodefaultlibs
-lclang_rt.
${MACHINE_ARCH}
18 .
include "${LIBCSRCDIR}/Makefile.inc"
20 NLS
= C.msg Pig.msg da.ISO8859-1.msg da.UTF-8.msg de.ISO8859-1.msg \
21 de.UTF-8.msg es.ISO8859-1.msg es.UTF-8.msg fi.ISO8859-1.msg \
22 fi.UTF-8.msg fr.ISO8859-1.msg fr.UTF-8.msg it.UTF-8.msg \
23 nl.ISO8859-1.msg nl.UTF-8.msg no.ISO8859-1.msg no.UTF-8.msg \
24 ru.KOI8-R.msg ru.UTF-8.msg sv.ISO8859-1.msg sv.UTF-8.msg
26 copy-to-libkern
: copy-to-libkern-machind copy-to-libkern-machdep
28 .if make
(copy-to-libkern
)
29 copy-to-libkern-machind
: ${KSRCS}
30 cp
-p
${.ALLSRC
} ${LIBKERN}
31 .if defined
(KINCLUDES
) && !empty
(KINCLUDES
)
32 (cd
${.CURDIR
} ; cp
-p
${KINCLUDES} ${LIBKERN})
35 copy-to-libkern-machdep
: ${KMSRCS}
36 .if defined
(KMSRCS
) && !empty
(KMSRCS
)
37 cp
-p
${.ALLSRC
} ${LIBKERN}/arch
/${MACHINE_CPU}
39 .if defined
(KMINCLUDES
) && !empty
(KMINCLUDES
)
40 (cd
${.CURDIR
} ; cp
-p
${KMINCLUDES} ${LIBKERN}/arch
/${MACHINE_CPU})
44 for i in
${KSRCS}; do
rm -f
${LIBKERN}/$$i; done
45 .if defined
(KMSRCS
) && !empty
(KMSRCS
)
46 for i in
${KMSRCS}; do
rm -f
${LIBKERN}/arch
/${MACHINE_CPU}/$$i; done
51 ctags
-w
${.ALLSRC
:M
*.c
}
52 egrep
"^SYSENTRY(.*)|^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" \
53 /dev
/null
${.ALLSRC
:M
*.S
} | \
54 sed
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
55 >> tags; sort -o
tags tags