gcc47: Add DragonFly READMEs and world makefiles
[dragonfly.git] / gnu / lib / gcc47 / libobjc / Makefile
1 .include "../Makefile.inc"
2
3 .PATH: ${GCCDIR}/libobjc
4 .PATH: ${GCCDIR}/libobjc/objc
5 .PATH: ${GCCDIR}/gcc
6 .PATH: ${GCCDIR}/gcc/cp
7 .PATH: ${GCCDIR}/gcc/objc
8 .PATH: ${GCCDIR}/libgcc
9
10 CFLAGS+=        -I.
11 CFLAGS+=        -I${GCCDIR}/libobjc/objc
12 CFLAGS+=        -I${GCCDIR}/libcpp/include
13 CFLAGS+=        -I${GCCDIR}/libgcc
14 CFLAGS+=        -DIN_GCC
15 CFLAGS+=        -DIN_TARGET_LIBS
16 CFLAGS+=        -DHAVE_CONFIG_H
17 CFLAGS+=        -fexceptions
18 CFLAGS+=        -fno-strict-aliasing
19
20 LIB=            objc
21 SHLIB_MAJOR=    4
22
23 THRLIB=         ${.OBJDIR}/../../../../lib/libpthread/libpthread.so
24 LDADD+=         ${THRLIB}
25 DPADD+=         ${THRLIB}
26
27 # Objective-C source files to compile
28 OBJC_SOURCE_FILES = \
29    NXConstStr.m \
30    Object.m \
31    Protocol.m \
32    accessors.m \
33    linking.m
34
35 # C source files to compile
36 C_SOURCE_FILES = \
37    class.c \
38    encoding.c \
39    error.c \
40    gc.c \
41    hash.c \
42    init.c \
43    ivars.c \
44    memory.c \
45    methods.c \
46    nil_method.c \
47    objc-foreach.c \
48    objc-sync.c \
49    objects.c \
50    protocols.c \
51    sarray.c \
52    selector.c \
53    sendmsg.c \
54    thr.c \
55    exception.c
56
57 SRCS=   ${C_SOURCE_FILES}
58 SRCS+=  ${OBJC_SOURCE_FILES}
59 SRCS+=  unwind.h runtime-info.h gthr-default.h
60
61 unwind.h: unwind-generic.h
62         cp ${.ALLSRC} ${.TARGET}
63         
64 gthr-default.h: gthr-posix.h
65         cp ${.ALLSRC} ${.TARGET}
66
67 runtime-info.h: 
68         echo "" > tmp-runtime.m
69         echo "/* This file is automatically generated */" > ${.TARGET}
70         ${CC} -print-objc-runtime-info -S tmp-runtime.m >> ${.TARGET}
71         rm -f tmp-runtime.m tmp-runtime.s
72
73 CLEANFILES+=    unwind.h runtime-info.h gthr-default.h
74
75
76 .include <bsd.lib.mk>