Switch back to using CSTD=gnu89 for a number of things again.
[dragonfly.git] / gnu / lib / gcc44 / libobjc / Makefile
1 .include "../Makefile.inc"
2
3 .PATH:  ${GCCDIR}/libobjc ${GCCDIR}/libobjc/objc ${GCCDIR}/gcc
4
5 CFLAGS+=        -I${GCCDIR}/libobjc/objc -I. -DIN_TARGET_LIBS
6
7 LIB=            objc
8 SHLIB_MAJOR=    2
9
10 CSTD?=  gnu89
11
12 OBJC_THREAD_FILE=thr-objc
13 SRCS= \
14           archive.c class.c encoding.c gc.c hash.c init.c linking.m \
15           misc.c nil_method.c NXConstStr.m Object.m objects.c \
16           Protocol.m sarray.c selector.c sendmsg.c thr.c \
17           $(OBJC_THREAD_FILE).c exception.c
18
19 INCS= \
20          hash.h objc-list.h sarray.h objc.h objc-api.h \
21          NXConstStr.h Object.h Protocol.h encoding.h typedstream.h \
22          thr.h objc-decls.h
23 INCSDIR=        ${INCLUDEDIR}/objc
24
25
26 SRCS+=  unwind.h runtime-info.h
27
28 unwind.h: unwind-generic.h
29         cp ${.ALLSRC} ${.TARGET}
30
31 runtime-info.h: 
32         echo "" > tmp-runtime.m
33         echo "/* This file is automatically generated */" > ${.TARGET}
34         ${CC} -print-objc-runtime-info -S tmp-runtime.m >> ${.TARGET}
35         rm -f tmp-runtime.m tmp-runtime.s
36
37 CLEANFILES+=    unwind.h runtime-info.h
38
39 .include <bsd.lib.mk>