blob: 385602da9e937fdc209360d8605f4d52419debb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Makefile for libobjc
# $Id: Makefile,v 1.6 1999/03/17 00:10:22 obrien Exp $
GCCDIR= ${.CURDIR}/../../../contrib/egcs/gcc
.PATH: ${GCCDIR}/objc
LIB= objc
NOMAN= sorry
NOPIC= works but method lookup slowdown is significant
SRCS= my_archive.c class.c encoding.c hash.c init.c misc.c nil_method.c \
my_objects.c sarray.c selector.c my_sendmsg.c \
thr.c thr-single.c \
NXConstStr.m Object.m Protocol.m linking.m
HDRS= encoding.h hash.h objc-act.h objc-api.h objc-list.h objc.h runtime.h \
sarray.h thr.h typedstream.h NXConstStr.h Object.h Protocol.h
CFLAGS+= -I${GCCDIR}/objc -I${GCCDIR}
beforeinstall:
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${HDRS:S;^;${GCCDIR}/objc/;} ${DESTDIR}/usr/include/objc
my_objects.c: objects.c
sed -e '/\.\.\/tconfig.h/d' < ${GCCDIR}/objc/objects.c > my_objects.c
my_sendmsg.c: sendmsg.c runtime-info.h
sed -e '/\.\.\/tconfig.h/d' < ${GCCDIR}/objc/sendmsg.c > my_sendmsg.c
my_archive.c: archive.c
sed -e '/config.h/d' < ${GCCDIR}/objc/archive.c > my_archive.c
runtime-info.h:
`${CC} --print-prog-name=cc1obj` -print-objc-runtime-info /dev/null \
>${.TARGET}
CLEANFILES+= my_objects.c my_sendmsg.c my_archive.c runtime-info.h
.include <bsd.lib.mk>
|