1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1996-09-19 16:19:49 +00:00
|
|
|
|
2000-03-30 02:40:49 +00:00
|
|
|
OBJCDIR=${.CURDIR}/../../../contrib/libobjc
|
1999-11-15 04:16:19 +00:00
|
|
|
GCCDIR= ${.CURDIR}/../../../contrib/gcc
|
1996-09-19 16:19:49 +00:00
|
|
|
|
2000-03-30 02:40:49 +00:00
|
|
|
.PATH: ${OBJCDIR}/objc ${OBJCDIR}
|
1996-09-19 16:19:49 +00:00
|
|
|
|
|
|
|
LIB= objc
|
|
|
|
NOMAN= sorry
|
1998-09-09 10:21:12 +00:00
|
|
|
NOPIC= works but method lookup slowdown is significant
|
1996-09-19 16:19:49 +00:00
|
|
|
|
2000-03-30 02:40:49 +00:00
|
|
|
SRCS= archive.c class.c encoding.c gc.c hash.c init.c misc.c \
|
|
|
|
nil_method.c objects.c sarray.c selector.c sendmsg.c \
|
1999-04-04 16:36:35 +00:00
|
|
|
thr.c thr-single.c \
|
|
|
|
NXConstStr.m Object.m Protocol.m linking.m
|
1996-09-19 16:19:49 +00:00
|
|
|
|
2000-03-30 08:09:42 +00:00
|
|
|
HDRS= encoding.h hash.h objc-api.h objc-list.h objc.h runtime.h \
|
1999-04-04 16:36:35 +00:00
|
|
|
sarray.h thr.h typedstream.h NXConstStr.h Object.h Protocol.h
|
1996-09-19 16:19:49 +00:00
|
|
|
|
2000-03-30 02:40:49 +00:00
|
|
|
CFLAGS+= -I${OBJCDIR}/objc -I${OBJCDIR} -I.
|
|
|
|
CFLAGS+= -I${GCCDIR}/config -I${GCCDIR}
|
1996-09-19 16:19:49 +00:00
|
|
|
|
|
|
|
beforeinstall:
|
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
|
2000-03-30 02:40:49 +00:00
|
|
|
${HDRS:S;^;${OBJCDIR}/objc/;} ${DESTDIR}/usr/include/objc
|
1996-09-19 16:19:49 +00:00
|
|
|
|
2000-03-30 02:40:49 +00:00
|
|
|
GENHDRS= runtime-info.h tconfig.h tm.h
|
|
|
|
CLEANFILES+= ${GENHDRS}
|
|
|
|
SRCS+= ${GENHDRS}
|
1996-09-19 16:19:49 +00:00
|
|
|
|
2000-03-30 02:40:49 +00:00
|
|
|
${OBJS}: ${GENHDRS}
|
1999-04-04 16:36:35 +00:00
|
|
|
|
|
|
|
runtime-info.h:
|
1999-04-06 13:26:48 +00:00
|
|
|
`${CC} --print-prog-name=cc1obj` -print-objc-runtime-info \
|
|
|
|
< /dev/null > ${.TARGET}
|
1999-04-04 16:36:35 +00:00
|
|
|
|
2000-03-30 02:40:49 +00:00
|
|
|
tconfig.h:
|
|
|
|
echo '#include "gansidecl.h"' > ${.TARGET}
|
|
|
|
echo '#include "${MACHINE_ARCH}/xm-${MACHINE_ARCH}.h"' >> ${.TARGET}
|
|
|
|
|
|
|
|
# KEEP THIS IN SYNC with src/gcc/usr.bin/cc/cc_tools/Makefile !!
|
|
|
|
tm.h:
|
|
|
|
echo '#include "${MACHINE_ARCH}/${MACHINE_ARCH}.h"' > ${.TARGET}
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
echo '#include "${MACHINE_ARCH}/att.h"' >> ${.TARGET}
|
|
|
|
.endif
|
|
|
|
echo '#include <freebsd.h>' >> ${.TARGET}
|
|
|
|
echo '#include "${MACHINE_ARCH}/freebsd.h"' >> ${.TARGET}
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
echo '#include "${MACHINE_ARCH}/perform.h"' >> ${.TARGET}
|
|
|
|
.endif
|
1996-09-19 16:19:49 +00:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|