2003-08-01 21:03:41 +04:00
|
|
|
# $NetBSD: Makefile,v 1.23 2003/08/01 17:03:43 lukem Exp $
|
2001-10-31 19:27:31 +03:00
|
|
|
|
|
|
|
REQUIRETOOLS= yes
|
2001-12-13 02:00:50 +03:00
|
|
|
NOLINT= # defined
|
2001-01-09 11:33:46 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1998-08-29 02:36:56 +04:00
|
|
|
|
2001-07-24 23:44:47 +04:00
|
|
|
LIB= objc
|
|
|
|
|
2003-06-01 06:08:07 +04:00
|
|
|
.if ${MKGCC} != "no"
|
|
|
|
|
2001-09-21 19:38:15 +04:00
|
|
|
SHLIB_MAJOR= 1
|
|
|
|
SHLIB_MINOR= 0
|
|
|
|
|
2001-07-24 23:44:47 +04:00
|
|
|
# Machine-independent definitions (include file names).
|
|
|
|
.include "${.CURDIR}/defs.mk"
|
|
|
|
|
2002-08-19 13:46:39 +04:00
|
|
|
DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain
|
|
|
|
GCCARCH= ${NETBSDSRCDIR}/gnu/usr.bin/gcc/arch/${MACHINE_ARCH}
|
2001-07-24 23:44:47 +04:00
|
|
|
|
|
|
|
SRCS= ${G_OBJS:N[A-Z]*:Nlinking.o:.o=.c} ${G_OBJS:M[A-Z]*:.o=.m} linking.m
|
|
|
|
|
|
|
|
GCPPFLAGS= ${G_ALL_CFLAGS} ${G_INCLUDES}
|
|
|
|
CPPFLAGS+= -I. -I${GCCARCH} ${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*}
|
|
|
|
|
|
|
|
INCS= ${G_OBJC_H}
|
|
|
|
INCSDIR= /usr/include/objc
|
|
|
|
|
|
|
|
DPSRCS+= runtime-info.h
|
2003-08-01 21:03:41 +04:00
|
|
|
CLEANFILES+= rtscratch rtscratch.s runtime-info.h
|
2001-07-24 23:44:47 +04:00
|
|
|
runtime-info.h:
|
|
|
|
@touch rtscratch
|
|
|
|
`${OBJC} --print-prog-name=cc1obj` -print-objc-runtime-info rtscratch >$@
|
|
|
|
|
|
|
|
.PATH: ${DIST}/libobjc ${DIST}/libobjc/objc
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
2002-02-27 20:58:52 +03:00
|
|
|
${OBJS} ${POBJS} ${SOBJS}: runtime-info.h
|
2003-06-01 06:08:07 +04:00
|
|
|
.else
|
|
|
|
.include <bsd.prog.mk> # do nothing
|
|
|
|
.endif
|