mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Bmake bits for GCC 3.1.
Sponsored by: bribe from peter
This commit is contained in:
parent
bf4990bb76
commit
af968949b1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/cvs2svn/branches/WIP_GCC31/; revision=94043
42
gnu/lib/libobjc/Makefile
Normal file
42
gnu/lib/libobjc/Makefile
Normal file
@ -0,0 +1,42 @@
|
||||
# $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 \
|
||||
thr.c thr-single.c \
|
||||
NXConstStr.m Object.m Protocol.m linking.m
|
||||
|
||||
HDRS= encoding.h hash.h objc-api.h objc-list.h objc.h runtime.h \
|
||||
sarray.h thr.h typedstream.h NXConstStr.h Object.h Protocol.h
|
||||
|
||||
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}
|
||||
|
||||
beforeinstall:
|
||||
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||
${HDRS:S;^;${OBJCDIR}/objc/;} ${DESTDIR}/usr/include/objc
|
||||
|
||||
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
|
||||
${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} ${.TARGET}
|
||||
|
||||
.include <bsd.lib.mk>
|
Loading…
Reference in New Issue
Block a user