1*a1780bd8SJohn MarinoCFLAGS+= -I${.CURDIR} 2*a1780bd8SJohn MarinoCFLAGS+= -I${.OBJDIR} 3b450dd39SJohn Marino.include "../Makefile.inc" 4b450dd39SJohn Marino 5b450dd39SJohn Marino.PATH: ${GCCDIR}/libobjc 6b450dd39SJohn Marino.PATH: ${GCCDIR}/libobjc/objc 7b450dd39SJohn Marino.PATH: ${GCCDIR}/gcc 8b450dd39SJohn Marino.PATH: ${GCCDIR}/gcc/cp 9b450dd39SJohn Marino.PATH: ${GCCDIR}/gcc/objc 10b450dd39SJohn Marino.PATH: ${GCCDIR}/libgcc 11b450dd39SJohn Marino 12b450dd39SJohn MarinoCFLAGS+= -I${GCCDIR}/libcpp/include 13b450dd39SJohn MarinoCFLAGS+= -I${GCCDIR}/libgcc 14b450dd39SJohn MarinoCFLAGS+= -DIN_GCC 15b450dd39SJohn MarinoCFLAGS+= -DIN_TARGET_LIBS 16b450dd39SJohn MarinoCFLAGS+= -DHAVE_CONFIG_H 17b450dd39SJohn MarinoCFLAGS+= -fexceptions 18b450dd39SJohn MarinoCFLAGS+= -fno-strict-aliasing 19b450dd39SJohn Marino 20b450dd39SJohn MarinoLIB= objc 21b450dd39SJohn MarinoSHLIB_MAJOR= 4 22b450dd39SJohn Marino 23b450dd39SJohn MarinoTHRLIB= ${.OBJDIR}/../../../../lib/libpthread/libpthread.so 24b450dd39SJohn MarinoLDADD+= ${THRLIB} 25b450dd39SJohn MarinoDPADD+= ${THRLIB} 26b450dd39SJohn Marino 27b450dd39SJohn Marino# Objective-C source files to compile 28b450dd39SJohn MarinoOBJC_SOURCE_FILES = \ 29b450dd39SJohn Marino NXConstStr.m \ 30b450dd39SJohn Marino Object.m \ 31b450dd39SJohn Marino Protocol.m \ 32b450dd39SJohn Marino accessors.m \ 33b450dd39SJohn Marino linking.m 34b450dd39SJohn Marino 35b450dd39SJohn Marino# C source files to compile 36b450dd39SJohn MarinoC_SOURCE_FILES = \ 37b450dd39SJohn Marino class.c \ 38b450dd39SJohn Marino encoding.c \ 39b450dd39SJohn Marino error.c \ 40b450dd39SJohn Marino gc.c \ 41b450dd39SJohn Marino hash.c \ 42b450dd39SJohn Marino init.c \ 43b450dd39SJohn Marino ivars.c \ 44b450dd39SJohn Marino memory.c \ 45b450dd39SJohn Marino methods.c \ 46b450dd39SJohn Marino nil_method.c \ 47b450dd39SJohn Marino objc-foreach.c \ 48b450dd39SJohn Marino objc-sync.c \ 49b450dd39SJohn Marino objects.c \ 50b450dd39SJohn Marino protocols.c \ 51b450dd39SJohn Marino sarray.c \ 52b450dd39SJohn Marino selector.c \ 53b450dd39SJohn Marino sendmsg.c \ 54b450dd39SJohn Marino thr.c \ 55b450dd39SJohn Marino exception.c 56b450dd39SJohn Marino 57b450dd39SJohn MarinoSRCS= ${C_SOURCE_FILES} 58b450dd39SJohn MarinoSRCS+= ${OBJC_SOURCE_FILES} 59b450dd39SJohn MarinoSRCS+= unwind.h runtime-info.h gthr-default.h 60b450dd39SJohn Marino 61b450dd39SJohn Marinounwind.h: unwind-generic.h 62b450dd39SJohn Marino cp ${.ALLSRC} ${.TARGET} 63b450dd39SJohn Marino 64b450dd39SJohn Marinogthr-default.h: gthr-posix.h 65b450dd39SJohn Marino cp ${.ALLSRC} ${.TARGET} 66b450dd39SJohn Marino 67b450dd39SJohn Marinoruntime-info.h: 68b450dd39SJohn Marino echo "" > tmp-runtime.m 69b450dd39SJohn Marino echo "/* This file is automatically generated */" > ${.TARGET} 70b450dd39SJohn Marino ${CC} -print-objc-runtime-info -S tmp-runtime.m >> ${.TARGET} 71b450dd39SJohn Marino rm -f tmp-runtime.m tmp-runtime.s 72b450dd39SJohn Marino 73*a1780bd8SJohn MarinoINCS= NXConstStr.h \ 74*a1780bd8SJohn Marino Object.h \ 75*a1780bd8SJohn Marino Protocol.h \ 76*a1780bd8SJohn Marino message.h \ 77*a1780bd8SJohn Marino objc-decls.h \ 78*a1780bd8SJohn Marino objc-exception.h \ 79*a1780bd8SJohn Marino objc-sync.h \ 80*a1780bd8SJohn Marino objc.h \ 81*a1780bd8SJohn Marino runtime.h \ 82*a1780bd8SJohn Marino thr.h 83*a1780bd8SJohn MarinoINCSDIR= /usr/libdata/gcc${GCCSHORTVER}/objc 84b450dd39SJohn Marino 85*a1780bd8SJohn MarinoCLEANFILES+= unwind.h runtime-info.h gthr-default.h 86b450dd39SJohn Marino 87b450dd39SJohn Marino.include <bsd.lib.mk> 88