Makefile.libcompat (dbbb03c244c981d86163d47a771dc5b1374e1a43) Makefile.libcompat (6d75a7a852fe046e3866858ff995447498904e95)
1# $FreeBSD$
2
3.if !targets(__<${_this:T}>__)
4__<${_this:T}>__:
5
6# Makefile for the compatibility libraries.
7# - 32-bit compat libraries on MIPS, PowerPC, and AMD64.
8

--- 149 unchanged lines hidden (view full) ---

158.if ${MK_DEBUG_FILES} != "no"
159 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.debug.dist \
160 -p ${LIBCOMPATTMP}/usr/lib >/dev/null
161 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.lib${libcompat}.dist \
162 -p ${LIBCOMPATTMP}/usr/lib/debug/usr >/dev/null
163.endif
164 mkdir -p ${WORLDTMP}
165 ln -sf ${.CURDIR}/sys ${WORLDTMP}
1# $FreeBSD$
2
3.if !targets(__<${_this:T}>__)
4__<${_this:T}>__:
5
6# Makefile for the compatibility libraries.
7# - 32-bit compat libraries on MIPS, PowerPC, and AMD64.
8

--- 149 unchanged lines hidden (view full) ---

158.if ${MK_DEBUG_FILES} != "no"
159 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.debug.dist \
160 -p ${LIBCOMPATTMP}/usr/lib >/dev/null
161 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.lib${libcompat}.dist \
162 -p ${LIBCOMPATTMP}/usr/lib/debug/usr >/dev/null
163.endif
164 mkdir -p ${WORLDTMP}
165 ln -sf ${.CURDIR}/sys ${WORLDTMP}
166.for _t in obj includes
166.for _t in ${_obj} includes
167.for _dir in ${_LC_INCDIRS}
168 ${_+_}cd ${.CURDIR}/${_dir}; ${LIBCOMPATWMAKE} MK_INCLUDES=yes \
169 DIRPRFX=${_dir}/ ${_t}
170.endfor
171.endfor
172.for _dir in lib/ncurses/ncurses lib/ncurses/ncursesw lib/libmagic
173 ${_+_}cd ${.CURDIR}/${_dir}; \
174 WORLDTMP=${WORLDTMP} \
175 MAKEFLAGS="-m ${.CURDIR}/tools/build/mk ${.MAKEFLAGS}" \
176 MAKEOBJDIRPREFIX=${LIBCOMPAT_OBJTREE} ${MAKE} SSP_CFLAGS= DESTDIR= \
177 DIRPRFX=${_dir}/ -DNO_LINT -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no \
178 build-tools
179.endfor
180 ${_+_}cd ${.CURDIR}; \
181 ${LIBCOMPATWMAKE} -f Makefile.inc1 -DNO_FSCHG libraries
182.if ${libcompat} == "32"
167.for _dir in ${_LC_INCDIRS}
168 ${_+_}cd ${.CURDIR}/${_dir}; ${LIBCOMPATWMAKE} MK_INCLUDES=yes \
169 DIRPRFX=${_dir}/ ${_t}
170.endfor
171.endfor
172.for _dir in lib/ncurses/ncurses lib/ncurses/ncursesw lib/libmagic
173 ${_+_}cd ${.CURDIR}/${_dir}; \
174 WORLDTMP=${WORLDTMP} \
175 MAKEFLAGS="-m ${.CURDIR}/tools/build/mk ${.MAKEFLAGS}" \
176 MAKEOBJDIRPREFIX=${LIBCOMPAT_OBJTREE} ${MAKE} SSP_CFLAGS= DESTDIR= \
177 DIRPRFX=${_dir}/ -DNO_LINT -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no \
178 build-tools
179.endfor
180 ${_+_}cd ${.CURDIR}; \
181 ${LIBCOMPATWMAKE} -f Makefile.inc1 -DNO_FSCHG libraries
182.if ${libcompat} == "32"
183.for _t in obj all
183.for _t in ${_obj} all
184 ${_+_}cd ${.CURDIR}/libexec/rtld-elf; PROG=ld-elf32.so.1 ${LIBCOMPATWMAKE} \
185 -DNO_FSCHG DIRPRFX=libexec/rtld-elf/ ${_t}
186 ${_+_}cd ${.CURDIR}/usr.bin/ldd; PROG=ldd32 ${LIBCOMPATWMAKE} \
187 DIRPRFX=usr.bin/ldd ${_t}
188.endfor
189.endif
190
191distribute${libcompat} install${libcompat}: .PHONY
192.for _dir in ${_LC_LIBDIRS.yes}
193 ${_+_}cd ${.CURDIR}/${_dir}; ${LIBCOMPATIMAKE} ${.TARGET:S/${libcompat}$//}
194.endfor
195.if ${libcompat} == "32"
196 ${_+_}cd ${.CURDIR}/libexec/rtld-elf; \
197 PROG=ld-elf32.so.1 ${LIBCOMPATIMAKE} ${.TARGET:S/32$//}
198 ${_+_}cd ${.CURDIR}/usr.bin/ldd; PROG=ldd32 ${LIBCOMPATIMAKE} \
199 ${.TARGET:S/32$//}
200.endif
201
202.endif
184 ${_+_}cd ${.CURDIR}/libexec/rtld-elf; PROG=ld-elf32.so.1 ${LIBCOMPATWMAKE} \
185 -DNO_FSCHG DIRPRFX=libexec/rtld-elf/ ${_t}
186 ${_+_}cd ${.CURDIR}/usr.bin/ldd; PROG=ldd32 ${LIBCOMPATWMAKE} \
187 DIRPRFX=usr.bin/ldd ${_t}
188.endfor
189.endif
190
191distribute${libcompat} install${libcompat}: .PHONY
192.for _dir in ${_LC_LIBDIRS.yes}
193 ${_+_}cd ${.CURDIR}/${_dir}; ${LIBCOMPATIMAKE} ${.TARGET:S/${libcompat}$//}
194.endfor
195.if ${libcompat} == "32"
196 ${_+_}cd ${.CURDIR}/libexec/rtld-elf; \
197 PROG=ld-elf32.so.1 ${LIBCOMPATIMAKE} ${.TARGET:S/32$//}
198 ${_+_}cd ${.CURDIR}/usr.bin/ldd; PROG=ldd32 ${LIBCOMPATIMAKE} \
199 ${.TARGET:S/32$//}
200.endif
201
202.endif