Build objc support.
[dragonfly/netmp.git] / gnu / lib / gcc41 / libobjc / Makefile
blob4aa8e7fd6a329f0e74b2f4094e63e4f3f7bd0d37
1 # $DragonFly: src/gnu/lib/gcc41/libobjc/Makefile,v 1.1 2008/06/30 12:16:03 hasso Exp $
3 GCC_NO_PATH= 1
4 .include "../Makefile.inc"
5 .include "${STOPDIR}/cc_tools/Makefile.tools"
7 .PATH: ${GCCDIR}/libobjc ${GCCDIR}/libobjc/objc ${GCCDIR}/gcc
9 CFLAGS+= -I${GCCDIR}/libobjc/objc -I. -DIN_TARGET_LIBS
11 LIB= objc
12 SHLIB_MAJOR= 2
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
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
24 unwind.h: unwind-generic.h
25 cp ${.ALLSRC} ${.TARGET}
27 CLEANFILES+= unwind.h
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
35 .include <bsd.lib.mk>