diff options
| author | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
|---|---|---|
| committer | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
| commit | a16f65c7d117419bd266c28a1901ef129a337569 (patch) | |
| tree | 2626602f66dc3551e7a7c7bc9ad763c3bc7ab40a /gnu/usr.bin/cc/libobjc/Makefile | |
| parent | 8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (diff) | |
Diffstat (limited to 'gnu/usr.bin/cc/libobjc/Makefile')
| -rw-r--r-- | gnu/usr.bin/cc/libobjc/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/libobjc/Makefile b/gnu/usr.bin/cc/libobjc/Makefile new file mode 100644 index 000000000000..a5903126bdca --- /dev/null +++ b/gnu/usr.bin/cc/libobjc/Makefile @@ -0,0 +1,31 @@ +LIB= objc +CC= gcc + +NOPROFILE=no + +CFLAGS+= -I${.CURDIR} -I${.CURDIR}/.. -I${.CURDIR}/../lib + +SRCS = hash.c sarray.c class.c sendmsg.c init.c archive.c \ + selector.c objects.c misc.c Object.m Protocol.m + +OBJC_HDRS = hash.h list.h sarray.h objc.h \ + objc-api.h \ + Object.h Protocol.h \ + typedstream.h + +OBJC_HDR_DESTDIR = ${DESTDIR}/usr/include/objc + +beforeinstall: + @-if [ ! -d ${OBJC_HDR_DESTDIR} ]; then \ + mkdir ${OBJC_HDR_DESTDIR}; \ + chown ${BINOWN}.${BINGRP} ${OBJC_HDR_DESTDIR}; \ + chmod 755 ${OBJC_HDR_DESTDIR}; \ + fi + @echo installing includes into objc + @-for file in ${OBJC_HDRS}; do \ + cmp -s ${.CURDIR}/$$file ${OBJC_HDR_DESTDIR}/$$file || \ + install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/$$file \ + ${OBJC_HDR_DESTDIR}/$$file; \ + done + +.include <bsd.lib.mk> |
