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