Makefile (fb0cb808467c9991a4fa6208ee61907d1eb45dfe) | Makefile (50c77c6e8b152e463f99c4e9225f5603c02d979c) |
---|---|
1# @(#)Makefile 8.2 (Berkeley) 1/4/94 2# $FreeBSD$ 3# 4# Doing a "make install" builds /usr/include. 5 6.include <bsd.own.mk> 7 8CLEANFILES= osreldate.h version vers.c --- 9 unchanged lines hidden (view full) --- 18 netdb.h nl_types.h nlist.h nss.h nsswitch.h paths.h \ 19 printf.h proc_service.h pthread.h \ 20 pthread_np.h pwd.h ranlib.h readpassphrase.h regex.h \ 21 res_update.h resolv.h runetype.h search.h semaphore.h setjmp.h \ 22 signal.h spawn.h stab.h stdalign.h stdatomic.h stdbool.h stddef.h \ 23 stdnoreturn.h stdio.h stdlib.h string.h stringlist.h \ 24 strings.h sysexits.h tar.h termios.h tgmath.h \ 25 time.h timeconv.h timers.h ttyent.h \ | 1# @(#)Makefile 8.2 (Berkeley) 1/4/94 2# $FreeBSD$ 3# 4# Doing a "make install" builds /usr/include. 5 6.include <bsd.own.mk> 7 8CLEANFILES= osreldate.h version vers.c --- 9 unchanged lines hidden (view full) --- 18 netdb.h nl_types.h nlist.h nss.h nsswitch.h paths.h \ 19 printf.h proc_service.h pthread.h \ 20 pthread_np.h pwd.h ranlib.h readpassphrase.h regex.h \ 21 res_update.h resolv.h runetype.h search.h semaphore.h setjmp.h \ 22 signal.h spawn.h stab.h stdalign.h stdatomic.h stdbool.h stddef.h \ 23 stdnoreturn.h stdio.h stdlib.h string.h stringlist.h \ 24 strings.h sysexits.h tar.h termios.h tgmath.h \ 25 time.h timeconv.h timers.h ttyent.h \ |
26 ulimit.h unistd.h utime.h utmpx.h uuid.h varargs.h \ | 26 uchar.h ulimit.h unistd.h utime.h utmpx.h uuid.h varargs.h \ |
27 wchar.h wctype.h wordexp.h xlocale.h 28 29.PATH: ${.CURDIR}/../contrib/libc-vis 30INCS+= vis.h 31 32MHDRS= float.h floatingpoint.h stdarg.h 33 34PHDRS= sched.h _semaphore.h --- 59 unchanged lines hidden (view full) --- 94INCS+= osreldate.h 95 96osreldate.h: ${.CURDIR}/../sys/conf/newvers.sh ${.CURDIR}/../sys/sys/param.h \ 97 ${.CURDIR}/Makefile 98 @${ECHO} creating osreldate.h from newvers.sh 99 @MAKE=${MAKE}; \ 100 PARAMFILE=${.CURDIR}/../sys/sys/param.h; \ 101 . ${.CURDIR}/../sys/conf/newvers.sh; \ | 27 wchar.h wctype.h wordexp.h xlocale.h 28 29.PATH: ${.CURDIR}/../contrib/libc-vis 30INCS+= vis.h 31 32MHDRS= float.h floatingpoint.h stdarg.h 33 34PHDRS= sched.h _semaphore.h --- 59 unchanged lines hidden (view full) --- 94INCS+= osreldate.h 95 96osreldate.h: ${.CURDIR}/../sys/conf/newvers.sh ${.CURDIR}/../sys/sys/param.h \ 97 ${.CURDIR}/Makefile 98 @${ECHO} creating osreldate.h from newvers.sh 99 @MAKE=${MAKE}; \ 100 PARAMFILE=${.CURDIR}/../sys/sys/param.h; \ 101 . ${.CURDIR}/../sys/conf/newvers.sh; \ |
102 rm -f osreldate.h; \ | |
103 echo "$$COPYRIGHT" > osreldate.h; \ 104 echo "#ifdef _KERNEL" >> osreldate.h; \ 105 echo "#error \"<osreldate.h> cannot be used in the kernel, use <sys/param.h>\"" >> osreldate.h; \ 106 echo "#else" >> osreldate.h; \ 107 echo "#undef __FreeBSD_version" >> osreldate.h; \ 108 echo "#define __FreeBSD_version $$RELDATE" >> osreldate.h; \ 109 echo "#endif" >> osreldate.h 110 --- 9 unchanged lines hidden (view full) --- 120 121.if ${MACHINE} != ${MACHINE_CPUARCH} 122_MARCHS= ${MACHINE_CPUARCH} 123.endif 124.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 125_MARCHS+= x86 126.endif 127 | 102 echo "$$COPYRIGHT" > osreldate.h; \ 103 echo "#ifdef _KERNEL" >> osreldate.h; \ 104 echo "#error \"<osreldate.h> cannot be used in the kernel, use <sys/param.h>\"" >> osreldate.h; \ 105 echo "#else" >> osreldate.h; \ 106 echo "#undef __FreeBSD_version" >> osreldate.h; \ 107 echo "#define __FreeBSD_version $$RELDATE" >> osreldate.h; \ 108 echo "#endif" >> osreldate.h 109 --- 9 unchanged lines hidden (view full) --- 119 120.if ${MACHINE} != ${MACHINE_CPUARCH} 121_MARCHS= ${MACHINE_CPUARCH} 122.endif 123.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 124_MARCHS+= x86 125.endif 126 |
128.if ${MK_STAGING} != "no" 129# tell bsd.incs.mk that we have it covered 130stage_includes: 131.endif 132 | |
133.include <bsd.prog.mk> 134 | 127.include <bsd.prog.mk> 128 |
135.if ${MK_STAGING} != "no" && !defined(_SKIP_BUILD) 136.if make(all) 137DESTDIR= ${STAGE_OBJTOP} 138 139all: stage_includes 140installincludes: buildincludes 141buildincludes: stage_prep 142 143stage_prep: 144 @mkdir -p ${DESTDIR}${INCLUDEDIR} 145 @touch $@ 146 147stage_includes: .dirdep installincludes 148 @touch $@ 149.endif 150.endif 151 | |
152installincludes: ${SHARED} 153${SHARED}: compat 154 155# Take care of stale directory-level symlinks. 156compat: 157.for i in ${LDIRS} ${LSUBDIRS} machine ${_MARCHS} crypto 158 if [ -L ${DESTDIR}${INCLUDEDIR}/$i ]; then \ 159 rm -f ${DESTDIR}${INCLUDEDIR}/$i; \ 160 fi 161.endfor 162 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \ 163 -f ${.CURDIR}/../etc/mtree/BSD.include.dist \ | 129installincludes: ${SHARED} 130${SHARED}: compat 131 132# Take care of stale directory-level symlinks. 133compat: 134.for i in ${LDIRS} ${LSUBDIRS} machine ${_MARCHS} crypto 135 if [ -L ${DESTDIR}${INCLUDEDIR}/$i ]; then \ 136 rm -f ${DESTDIR}${INCLUDEDIR}/$i; \ 137 fi 138.endfor 139 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \ 140 -f ${.CURDIR}/../etc/mtree/BSD.include.dist \ |
164 -p ${DESTDIR}${INCLUDEDIR} > /dev/null | 141 -p ${DESTDIR}${INCLUDEDIR} |
165.if ${MK_BIND_LIBS} != "no" 166 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \ 167 -f ${.CURDIR}/../etc/mtree/BIND.include.dist \ | 142.if ${MK_BIND_LIBS} != "no" 143 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \ 144 -f ${.CURDIR}/../etc/mtree/BIND.include.dist \ |
168 -p ${DESTDIR}${INCLUDEDIR} > /dev/null | 145 -p ${DESTDIR}${INCLUDEDIR} |
169.endif 170 171copies: 172.for i in ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS} altq crypto machine machine/pc \ 173 ${_MARCHS} 174.if exists(${DESTDIR}${INCLUDEDIR}/$i) 175 cd ${DESTDIR}${INCLUDEDIR}/$i; \ 176 for h in *.h; do \ --- 184 unchanged lines hidden --- | 146.endif 147 148copies: 149.for i in ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS} altq crypto machine machine/pc \ 150 ${_MARCHS} 151.if exists(${DESTDIR}${INCLUDEDIR}/$i) 152 cd ${DESTDIR}${INCLUDEDIR}/$i; \ 153 for h in *.h; do \ --- 184 unchanged lines hidden --- |