1*3367dcf5Sespie# $OpenBSD: Makefile.bsd-wrapper,v 1.10 2019/12/21 21:40:00 espie Exp $ 2fd3cc892Sbrad 3fd3cc892Sbrad.include "${.CURDIR}/shlib_version" 4fd3cc892SbradSHLIB_MAJOR=${major} 5fd3cc892SbradSHLIB_MINOR=${minor} 6b83bea64Sespie 7b83bea64SespieLIBIBERTY_INCLUDES=${.CURDIR}/../libiberty/include 8b83bea64SespieLIBIBERTY_SRCDIR=${.CURDIR}/../libiberty/src 9b83bea64SespieGCC_SRCDIR=${.CURDIR}/../../usr.bin/gcc/gcc 10b83bea64Sespie 11b83bea64SespieGXX_INCDIR= /usr/include/g++ 12b83bea64Sespie 13b83bea64SespieMAKE_FLAGS= GCC_SRCDIR="${GCC_SRCDIR}" \ 14b83bea64Sespie LIBIBERTY_INCLUDES="${LIBIBERTY_INCLUDES}" \ 15b83bea64Sespie LIBIBERTY_SRCDIR="${LIBIBERTY_SRCDIR}" \ 16fd3cc892Sbrad mkinstalldirs='mkdir -p' \ 17fd3cc892Sbrad libtool_VERSION=${SHLIB_MAJOR}:${SHLIB_MINOR}:0 18b83bea64Sespie 19b83bea64Sespie.MAIN: all 20b83bea64Sespie 21b83bea64Sespieall: config.status 22b83bea64Sespie ${MAKE} ${MAKE_FLAGS} all 23b83bea64Sespie 24b83bea64Sespieinstall: all 25b83bea64Sespie ${MAKE} ${MAKE_FLAGS} \ 2695b166f5Sespie install DESTDIR=${DESTDIR} INCLUDE_SUBDIR= 27b83bea64Sespie# XXX 28b83bea64Sespie rm -f ${DESTDIR}/usr/lib/libstdc++.la ${DESTDIR}/usr/lib/libsupc++.la 29681172aeSmiod chmod ${NONBINMODE} ${DESTDIR}/usr/lib/libstdc++.* \ 30681172aeSmiod ${DESTDIR}/usr/lib/libsupc++.* 31b83bea64Sespie 32b83bea64Sespie# cd ${.OBJDIR}/include && ${MAKE} ${MAKE_FLAGS} all 33b83bea64Sespie 34b83bea64Sespie.include <bsd.own.mk> 35b83bea64Sespie 36b83bea64Sespie.ifdef GLOBAL_AUTOCONF_CACHE 37b83bea64SespieCF= --cache-file=${GLOBAL_AUTOCONF_CACHE} 38b83bea64Sespie.else 39b83bea64SespieCF= 40b83bea64Sespie.endif 41de3aee7fSdrahn.ifdef NOPIC 42de3aee7fSdrahnCF_SHARED= --disable-shared 43de3aee7fSdrahn.else 44de3aee7fSdrahnCF_SHARED= --enable-shared 45de3aee7fSdrahn.endif 46b83bea64Sespie 47b83bea64Sespieconfig.status: 48b83bea64Sespie PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ 49b83bea64Sespie INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \ 50fd3cc892Sbrad CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS} ${COPTS}" \ 51fd3cc892Sbrad CXXFLAGS="${CXXFLAGS} ${COPTS}" \ 52ff2aec57Sespie MAKE="${MAKE}" \ 53b83bea64Sespie /bin/sh ${.CURDIR}/libstdc++/configure \ 54b83bea64Sespie --prefix=/usr \ 55b83bea64Sespie --disable-nls \ 56de3aee7fSdrahn ${CF_SHARED} \ 57b83bea64Sespie --disable-multilib \ 58b83bea64Sespie --with-gnu-ld \ 59b83bea64Sespie --with-gxx-include-dir=${GXX_INCDIR} \ 60b83bea64Sespie && touch config.status 61b83bea64Sespie 62b83bea64Sespie#CPPFLAGS+=-DHAVE_CONFIG_H -I${.CURDIR}/libstdc++/libmath 63b83bea64Sespie#SRCS=libmath/stubs.c libmath/nan.c libmath/signbit.c libmath/signbitf.c 64b83bea64Sespietags: 65b83bea64Sespie # Nothing here so far... 66b83bea64Sespie 67b83bea64Sespieprereq: config.status 68b83bea64Sespie cd ${.OBJDIR}/include && exec ${MAKE} ${MAKE_FLAGS} all 69b83bea64Sespie 70b83bea64Sespieincludes: 71d375c001Sespie cd ${.OBJDIR}/include && exec ${MAKE} ${MAKE_FLAGS} install DESTDIR=${DESTDIR} 72d375c001Sespie cd ${.OBJDIR}/libsupc++ && exec ${MAKE} ${MAKE_FLAGS} install-data DESTDIR=${DESTDIR} 73b83bea64Sespie 74b83bea64Sespieclean cleandir: 75b83bea64Sespie -@if [ -e Makefile ]; then ${MAKE} distclean; fi 76b83bea64Sespie -rm -f ${CLEANFILES} 77b83bea64Sespie 78b83bea64Sespie.include <bsd.obj.mk> 79b83bea64Sespie.include <bsd.subdir.mk> 80b83bea64Sespie.ifndef NOMAN 81b83bea64Sespie.include <bsd.man.mk> 82b83bea64Sespie.endif 83