diff options
author | obrien <obrien@FreeBSD.org> | 1999-10-16 06:09:09 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-10-16 06:09:09 +0000 |
commit | cae8fa8120c70195f34a2456f18c4c848a2d3e0c (patch) | |
tree | f7d3a3ab9c32694206552e767626366f016f2062 /contrib/gcc/objc/Make-lang.in | |
parent | 84656b55b6e25e30322dc903a05de53706361d3d (diff) | |
download | FreeBSD-src-cae8fa8120c70195f34a2456f18c4c848a2d3e0c.zip FreeBSD-src-cae8fa8120c70195f34a2456f18c4c848a2d3e0c.tar.gz |
Virgin import of the GCC 2.95.1 compilers
Diffstat (limited to 'contrib/gcc/objc/Make-lang.in')
-rw-r--r-- | contrib/gcc/objc/Make-lang.in | 161 |
1 files changed, 7 insertions, 154 deletions
diff --git a/contrib/gcc/objc/Make-lang.in b/contrib/gcc/objc/Make-lang.in index 3774e22..9a84f0f 100644 --- a/contrib/gcc/objc/Make-lang.in +++ b/contrib/gcc/objc/Make-lang.in @@ -50,21 +50,17 @@ OBJC_FLAGS_TO_PASS = \ # # Define the names for selecting Objective-C in LANGUAGES. -OBJC objc: cc1obj$(exeext) objc-runtime -OBJECTIVE-C objective-c: cc1obj$(exeext) objc-runtime +OBJC objc: cc1obj$(exeext) +OBJECTIVE-C objective-c: cc1obj$(exeext) # Tell GNU make to ignore these if they exist. .PHONY: objective-c objc ObjC -# The Objective C thread file -OBJC_THREAD_FILE=thr-$(GCC_THREAD_FILE) - # Language-specific object files for Objective C. OBJC_OBJS = objc-parse.o objc-act.o $(C_AND_OBJC_OBJS) -cc1obj$(exeext): $(P) $(OBJC_OBJS) $(OBJS) $(LIBDEPS) - $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(OBJC_OBJS) $(OBJS) \ - $(LIBS) +cc1obj$(exeext): $(P) $(OBJS) $(OBJC_OBJS) $(LIBDEPS) + $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(OBJC_OBJS) $(LIBS) # Objective C language specific files. @@ -75,9 +71,10 @@ objc-parse.o : $(srcdir)/objc/objc-parse.c \ $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -I$(srcdir)/objc \ -c $(srcdir)/objc/objc-parse.c +$(INTL_TARGETS): $(srcdir)/objc/objc-parse.c $(srcdir)/objc/objc-parse.c : $(srcdir)/objc/objc-parse.y cd $(srcdir)/objc; \ - $(BISON) $(BISONFLAGS) objc-parse.y -o objc-parse.c + $(BISON) $(BISONFLAGS) -o objc-parse.c objc-parse.y $(srcdir)/objc/objc-parse.y: $(srcdir)/c-parse.in echo '/*WARNING: This file is automatically generated!*/' >tmp-objc-prs.y @@ -94,125 +91,6 @@ objc-act.o : $(srcdir)/objc/objc-act.c \ $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -I$(srcdir)/objc \ -c $(srcdir)/objc/objc-act.c -objc-runtime: objc-headers libobjc.a - -# copy objc header files into build directory -objc-headers: stmp-fixinc - if [ -d include ]; then true; else mkdir include; fi - cd objc; \ - if [ -f Makefile ]; then \ - $(MAKE) copy-headers \ - tooldir=$(tooldir) \ - AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \ - GCC_FOR_TARGET="../xgcc -B../" \ - GCC_CFLAGS="$(GCC_CFLAGS)" incinstalldir=../include; \ - fi - touch objc-headers - -# Objective C runtime library specific files. - -OBJC_O = objc/hash.o objc/sarray.o \ - objc/class.o objc/sendmsg.o \ - objc/init.o objc/archive.o \ - objc/encoding.o objc/selector.o \ - objc/objects.o objc/misc.o \ - objc/NXConstStr.o objc/Object.o \ - objc/Protocol.o objc/nil_method.o \ - objc/thr.o objc/linking.o \ - objc/$(OBJC_THREAD_FILE).o - -objc/hash.o: $(srcdir)/objc/hash.c $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -c $(srcdir)/objc/hash.c -o $@ -objc/sarray.o: $(srcdir)/objc/sarray.c $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -c $(srcdir)/objc/sarray.c -o $@ -objc/class.o: $(srcdir)/objc/class.c $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -c $(srcdir)/objc/class.c -o $@ -objc/sendmsg.o: $(srcdir)/objc/sendmsg.c $(GCC_PASSES) objc/runtime-info.h - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) -Iobjc \ - -c $(srcdir)/objc/sendmsg.c -o $@ -objc/init.o: $(srcdir)/objc/init.c $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -c $(srcdir)/objc/init.c -o $@ -objc/archive.o: $(srcdir)/objc/archive.c $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -c $(srcdir)/objc/archive.c -o $@ -objc/encoding.o: $(srcdir)/objc/encoding.c $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -c $(srcdir)/objc/encoding.c -o $@ -objc/selector.o: $(srcdir)/objc/selector.c $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -c $(srcdir)/objc/selector.c -o $@ -objc/objects.o: $(srcdir)/objc/objects.c $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -c $(srcdir)/objc/objects.c -o $@ -objc/misc.o: $(srcdir)/objc/misc.c $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -c $(srcdir)/objc/misc.c -o $@ -objc/NXConstStr.o: $(srcdir)/objc/NXConstStr.m $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -fgnu-runtime -c $(srcdir)/objc/NXConstStr.m -o $@ -objc/Object.o: $(srcdir)/objc/Object.m $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -fgnu-runtime -c $(srcdir)/objc/Object.m -o $@ -objc/Protocol.o: $(srcdir)/objc/Protocol.m $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -fgnu-runtime -c $(srcdir)/objc/Protocol.m -o $@ -objc/thr.o: $(srcdir)/objc/thr.h $(srcdir)/objc/thr.c $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -c $(srcdir)/objc/thr.c -o $@ -objc/$(OBJC_THREAD_FILE).o: $(srcdir)/objc/$(OBJC_THREAD_FILE).c $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -c $(srcdir)/objc/$(OBJC_THREAD_FILE).c -o $@ -objc/nil_method.o: $(srcdir)/objc/nil_method.c $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -c $(srcdir)/objc/nil_method.c -o $@ -objc/linking.o: $(srcdir)/objc/linking.m $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -fgnu-runtime -c $(srcdir)/objc/linking.m -o $@ - -objc/libobjc_entry.o: $(srcdir)/objc/libobjc_entry.c $(GCC_PASSES) - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \ - -c $(srcdir)/objc/libobjc_entry.c -o $@ - -$(OBJC_O): $(GCC_PASSES) cc1obj$(exeext) - -# Build the Objective C runtime library. -libobjc.a: cc1obj$(exeext) specs stmp-int-hdrs libgcc2.ready \ - $(USE_COLLECT2) $(EXTRA_PARTS) objc/runtime-info.h $(OBJC_O) - -rm -f libobjc.a - $(AR) $(AR_FLAGS) libobjc.a $(OBJC_O) - -if $(RANLIB_TEST) ; then $(RANLIB) libobjc.a; else true; fi - -libobjc_s.a: libobjc.a - mv libobjc.a libobjc_s.a - -# Create a relocatable DLL -libobjc.dll: libobjc_s.a objc/libobjc_entry.o - $(GCC_FOR_TARGET) -mdll -Wl,--base-file -Wl,libobjc.base \ - -o libobjc.dll libobjc_s.a \ - objc/libobjc_entry.o -lkernel32 - $(DLLTOOL) --dllname libobjc.dll --def $(srcdir)/objc/libobjc.def \ - --base-file libobjc.base --output-exp libobjc.exp - $(GCC_FOR_TARGET) -mdll -Wl,--base-file libobjc.base libobjc.exp \ - -o libobjc.dll libobjc_s.a \ - objc/libobjc_entry.o -lkernel32 - $(DLLTOOL) --dllname libobjc.dll --def $(srcdir)/objc/libobjc.def \ - --base-file libobjc.base --output-exp libobjc.exp - $(GCC_FOR_TARGET) libobjc.exp -mdll \ - -o libobjc.dll libobjc_s.a \ - objc/libobjc_entry.o -lkernel32 - $(DLLTOOL) --dllname libobjc.dll --def $(srcdir)/objc/libobjc.def \ - --output-lib libobjc.a - -# Platform generated information needed by ObjC runtime -objc/runtime-info.h: cc1obj$(exeext) - echo "" > tmp-runtime - echo "/* This file is automatically generated */" >$@ - ./cc1obj -print-objc-runtime-info tmp-runtime >>$@ - rm -f tmp-runtime # # Build hooks: @@ -228,25 +106,7 @@ objc.dvi: # Install hooks: # cc1obj is installed elsewhere as part of $(COMPILERS). -objc.install-normal: installdirs - -if [ -f libobjc.a ] ; then \ - rm -f $(libsubdir)/libobjc.a; \ - $(INSTALL_DATA) libobjc.a $(libsubdir)/libobjc.a; \ - if $(RANLIB_TEST) ; then \ - (cd $(libsubdir); $(RANLIB) libobjc.a); else true; fi; \ - chmod a-x $(libsubdir)/libobjc.a; \ - else true; fi - -if [ -f libobjc_s.a ] ; then \ - rm -f $(libsubdir)/libobjc_s.a; \ - $(INSTALL_DATA) libobjc_s.a $(libsubdir)/libobjc_s.a; \ - if $(RANLIB_TEST) ; then \ - (cd $(libsubdir); $(RANLIB) libobjc_s.a); else true; fi; \ - chmod a-x $(libsubdir)/libobjc_s.a; \ - else true; fi - -if [ -f libobjc.dll ] ; then \ - rm -f $(bindir)/libobjc.dll; \ - $(INSTALL_DATA) libobjc.dll $(bindir)/libobjc.dll; \ - else true; fi +objc.install-normal: objc.install-common: @@ -262,9 +122,6 @@ objc.uninstall: objc.mostlyclean: -rm -f tmp-objc-prs.y -rm -f objc/*$(objext) objc/xforward objc/fflags - -rm -f objc/runtime-info.h - -rm -f libobjc.a libobjc_s.a libobjc.dll - -rm -f libobjc.base libobjc.exp objc.clean: objc.mostlyclean -rm -rf objc-headers objc.distclean: @@ -282,19 +139,15 @@ objc.maintainer-clean: objc.stage1: stage1-start -mv objc/*$(objext) stage1/objc -mv cc1obj$(exeext) stage1 - -mv libobjc.a stage1 objc.stage2: stage2-start -mv objc/*$(objext) stage2/objc -mv cc1obj$(exeext) stage2 - -mv libobjc.a stage2 objc.stage3: stage3-start -mv objc/*$(objext) stage3/objc -mv cc1obj$(exeext) stage3 - -mv libobjc.a stage3 objc.stage4: stage4-start -mv objc/*$(objext) stage4/objc -mv cc1obj$(exeext) stage4 - -mv libobjc.a stage4 # # Maintenance hooks: |