1984263bcSMatthew Dillon# $FreeBSD: src/usr.bin/objformat/Makefile,v 1.15 1999/12/24 15:18:19 green Exp $ 2984263bcSMatthew Dillon 3984263bcSMatthew DillonPROG= objformat 4984263bcSMatthew DillonNOSHARED?= YES 5ee3181aeSSascha Wildner 617030342SMatthew Dillon.if defined(TARGET_ARCH) 717030342SMatthew DillonCFLAGS+= -DTARGET_ARCH="${TARGET_ARCH}" 817030342SMatthew Dillon.endif 9984263bcSMatthew Dillon 1065b1133aSJoerg Sonnenberger.if defined(OBJFORMAT_BUILTIN_CCVER_DEFAULT) 1165b1133aSJoerg SonnenbergerCFLAGS+= -DCCVER_DEFAULT="\"${OBJFORMAT_BUILTIN_CCVER_DEFAULT}\"" 12f29fb17dSJoerg Sonnenberger.endif 1365b1133aSJoerg Sonnenberger.if defined(OBJFORMAT_BUILTIN_BINUTILSVER_DEFAULT) 1465b1133aSJoerg SonnenbergerCFLAGS+= -DBINUTILSVER_DEFAULT="\"${OBJFORMAT_BUILTIN_BINUTILSVER_DEFAULT}\"" 15f29fb17dSJoerg Sonnenberger.endif 163c0aa72eSSimon Schubert.if defined(TOOLS_PREFIX) 173c0aa72eSSimon SchubertCFLAGS+= -DOBJFORMAT_PATH_DEFAULT="\"${TOOLS_PREFIX}\"" 183c0aa72eSSimon Schubert.elif defined(OBJFORMAT_BUILTIN_PATH_DEFAULT) 193c0aa72eSSimon SchubertCFLAGS+= -DOBJFORMAT_PATH_DEFAULT="\"${OBJFORMAT_BUILTIN_PATH_DEFAULT}\"" 203c0aa72eSSimon Schubert.endif 2191b13002SJoerg Sonnenberger# These will exec /usr/libexec/${BINUTILSVER}/<objformat>/<name> 224806ab2eSMatthew Dillon# 23984263bcSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/addr2line 24984263bcSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/ar 25984263bcSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/as 2682100819SJohn MarinoLINKS+= ${BINDIR}/objformat ${BINDIR}/c++filt 27053919c0SSascha WildnerLINKS+= ${BINDIR}/objformat ${BINDIR}/elfedit 289e66a35cSJohn MarinoLINKS+= ${BINDIR}/objformat ${BINDIR}/gprof 29984263bcSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/ld 30875016c4SJohn MarinoLINKS+= ${BINDIR}/objformat ${BINDIR}/ld.bfd 31875016c4SJohn MarinoLINKS+= ${BINDIR}/objformat ${BINDIR}/ld.gold 32984263bcSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/nm 33984263bcSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/objcopy 34984263bcSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/objdump 35984263bcSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/ranlib 36cf93bb17SSascha WildnerLINKS+= ${BINDIR}/objformat ${BINDIR}/readelf 37984263bcSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/size 38984263bcSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/strings 39984263bcSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/strip 40984263bcSMatthew Dillon 41*c753a10aSSascha Wildner# These will exec /usr/libexec/${CCVER}/<name> 424806ab2eSMatthew Dillon# 4391b13002SJoerg SonnenbergerLINKS+= ${BINDIR}/objformat ${BINDIR}/CC 444806ab2eSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/cpp 454806ab2eSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/c++ 464806ab2eSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/cc 474806ab2eSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/g++ 484806ab2eSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/gcc 494806ab2eSMatthew DillonLINKS+= ${BINDIR}/objformat ${BINDIR}/gcov 504806ab2eSMatthew Dillon 51984263bcSMatthew Dillon.include <bsd.prog.mk> 52