2 .include "../Makefile.inc"
3 .include "${STOPDIR}/cc_tools/Makefile.tools"
5 .PATH: ${GCCDIR}/libobjc ${GCCDIR}/libobjc/objc ${GCCDIR}/gcc
7 CFLAGS+= -I${GCCDIR}/libobjc/objc -I. -DIN_TARGET_LIBS
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
16 SRCS+= insn-flags.h insn-constants.h runtime-info.h unwind.h
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
22 unwind.h: unwind-generic.h
23 cp ${.ALLSRC} ${.TARGET}
25 CLEANFILES+= unwind.h 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