Makefile.inc revision 18390
1# 2# $Id$ 3# 4 5# Sometimes this is .include'd several times... 6.if !defined(GCCDIR) 7GCCDIR= ${.CURDIR}/../../../../contrib/gcc 8.PATH: ../cc_tools ${GCCDIR} ${GCCDIR}/cp ${GCCDIR}/objc 9 10BISON?= bison 11 12# Machine description. 13MD_FILE= ${GCCDIR}/config/i386/i386.md 14OUT_FILE= ${GCCDIR}/config/i386/i386.c 15OUT_OBJ= i386 16 17# Pick aout for now. the elf config is not binary compatable. 18BINFORMAT= aout 19#BINFORMAT= elf 20 21.if ${BINFORMAT} == aout 22CFLAGS+= -DFREEBSD_AOUT 23target= i386-unknown-freebsd 24.endif 25.if ${BINFORMAT} == elf 26CFLAGS+= -DFREEBSD_ELF 27target= i386-unknown-freebsdelf 28.endif 29 30version!= sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${GCCDIR}/version.c 31 32CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config 33CFLAGS+= -DFREEBSD_NATIVE 34CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\" 35CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"$(target)\" 36 37.if exists(${.OBJDIR}/../cc_tools) 38CFLAGS+= -I${.OBJDIR}/../cc_tools 39.else 40CFLAGS+= -I${.CURDIR}/../cc_tools 41.endif 42 43.if exists(${.OBJDIR}/../cc_int) 44LIBDESTDIR= ${.OBJDIR}/../cc_int 45.else 46LIBDESTDIR= ${.CURDIR}/../cc_int 47.endif 48 49# XXX LDDESTDIR isn't a directory and there is no standard name for the dir 50LDDESTDIR= -L${LIBDESTDIR} 51.if defined(SHARED_LIBCC_INT) 52LIBCC_INT= ${LIBDESTDIR}/libcc_int.so.272.0 53.else 54LIBCC_INT= ${LIBDESTDIR}/libcc_int.a 55.endif 56 57.endif 58