Merge branch 'vendor/BINUTILS_ALL'
[dragonfly.git] / gnu / lib / gcc41 / libobjc / Makefile
1 GCC_NO_PATH=    1
2 .include "../Makefile.inc"
3 .include "${STOPDIR}/cc_tools/Makefile.tools"
4
5 .PATH:          ${GCCDIR}/libobjc ${GCCDIR}/libobjc/objc ${GCCDIR}/gcc
6
7 CFLAGS+=        -I${GCCDIR}/libobjc/objc -I. -DIN_TARGET_LIBS
8
9 LIB=            objc
10 SHLIB_MAJOR=    2
11
12 SRCS=           NXConstStr.m Object.m Protocol.m archive.c class.c encoding.c
13 SRCS+=          exception.c gc.c hash.c hash_compat.c init.c linking.m misc.c
14 SRCS+=          nil_method.c objects.c sarray.c selector.c sendmsg.c thr-objc.c
15 SRCS+=          thr.c
16 SRCS+=          insn-flags.h insn-constants.h runtime-info.h unwind.h
17
18 INCS=           NXConstStr.h Object.h Protocol.h encoding.h hash.h objc-api.h
19 INCS+=          objc-list.h objc.h runtime.h sarray.h thr.h typedstream.h
20 INCSDIR=        ${INCLUDEDIR}/objc
21
22 unwind.h: unwind-generic.h
23         cp ${.ALLSRC} ${.TARGET}
24
25 CLEANFILES+=    unwind.h runtime-info.h
26
27 runtime-info.h: 
28         echo "" > tmp-runtime.m
29         echo "/* This file is automatically generated */" > ${.TARGET}
30         ${CC} -print-objc-runtime-info -S tmp-runtime.m >> ${.TARGET}
31         rm -f tmp-runtime.m tmp-runtime.s
32
33 .include <bsd.lib.mk>