2002-04-07 09:30:05 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
OBJCDIR=${.CURDIR}/../../../contrib/libobjc
|
|
|
|
GCCDIR= ${.CURDIR}/../../../contrib/gcc
|
|
|
|
|
|
|
|
.PATH: ${OBJCDIR}/objc ${OBJCDIR}
|
|
|
|
|
|
|
|
LIB= objc
|
|
|
|
NOMAN= sorry
|
|
|
|
NOPIC= works but method lookup slowdown is significant
|
|
|
|
|
|
|
|
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 \
|
2002-10-30 18:01:06 +00:00
|
|
|
thr.c thr-posix.c \
|
2002-04-07 09:30:05 +00:00
|
|
|
NXConstStr.m Object.m Protocol.m linking.m
|
|
|
|
|
2002-05-12 16:01:00 +00:00
|
|
|
INCS= encoding.h hash.h objc-api.h objc-list.h objc.h runtime.h \
|
2002-04-07 09:30:05 +00:00
|
|
|
sarray.h thr.h typedstream.h NXConstStr.h Object.h Protocol.h
|
2002-05-12 16:01:00 +00:00
|
|
|
INCSDIR=${INCLUDEDIR}/objc
|
2002-04-07 09:30:05 +00:00
|
|
|
|
2003-03-17 00:08:47 +00:00
|
|
|
# PR ia64/49081
|
2003-03-16 22:44:01 +00:00
|
|
|
.if ${MACHINE_ARCH} == "ia64"
|
|
|
|
CFLAGS+= -fpic
|
|
|
|
.endif
|
|
|
|
|
2002-04-07 09:30:05 +00:00
|
|
|
CFLAGS+= -fgnu-runtime -DHAVE_GTHR_DEFAULT -DIN_TARGET_LIBS
|
|
|
|
CFLAGS+= -I. -I${.CURDIR}/../../usr.bin/cc/cc_tools
|
|
|
|
CFLAGS+= -I${OBJCDIR}/objc -I${OBJCDIR}
|
|
|
|
CFLAGS+= -I${GCCDIR}/config -I${GCCDIR}
|
|
|
|
|
|
|
|
GENHDRS= runtime-info.h tconfig.h
|
|
|
|
CLEANFILES+= ${GENHDRS}
|
|
|
|
SRCS+= ${GENHDRS}
|
|
|
|
|
|
|
|
${OBJS}: ${GENHDRS}
|
|
|
|
|
|
|
|
runtime-info.h:
|
|
|
|
`${CC} --print-prog-name=cc1obj` -print-objc-runtime-info \
|
|
|
|
< /dev/null > ${.TARGET}
|
|
|
|
|
|
|
|
tconfig.h: ${.CURDIR}/../../usr.bin/cc/cc_tools/Makefile
|
2002-05-07 00:58:49 +00:00
|
|
|
${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} GCCDIR=${GCCDIR} ${.TARGET}
|
2002-04-07 09:30:05 +00:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|