home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / gcc-2.3.3-src.lha / src / amiga / gcc-2.3.3 / objc / Makefile < prev    next >
Encoding:
Makefile  |  1994-02-07  |  1.5 KB  |  51 lines

  1. # This makefile is run by the parent dir's makefile.
  2. # thisdir1=`pwd`; \
  3. # srcdir1=`cd $(srcdir); pwd`; \
  4. # cd objc; \
  5. # $(MAKE) $(MAKEFLAGS) -f $$srcdir1/objc/Makefile libobjc.a \
  6. #   srcdir=$$srcdir1 tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
  7. #   GCC_FOR_TARGET="$$thisdir1/xgcc -B$$thisdir1/" \
  8. #   GCC_CFLAGS="$(GCC_CFLAGS)"
  9. # Two targets are used by ../Makefile: `all' and `mostlyclean'.
  10.  
  11. .SUFFIXES: .m
  12.  
  13. VPATH = $(srcdir)/objc
  14.  
  15. AR = ar
  16. AR_FLAGS = rc
  17.  
  18. # Always search these dirs when compiling.
  19. SUBDIR_INCLUDES = -I. -I.. -I$(srcdir) -I$(srcdir)/config
  20.  
  21. .c.o:
  22.     $(GCC_FOR_TARGET) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
  23.  
  24. .m.o:
  25.     $(GCC_FOR_TARGET) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
  26.  
  27. # If we were not invoked from the parent dir,
  28. # invoke make in the parent dir and have reinvoke this makefile.
  29. # That's necessary to get the right values for srcdir, etc.
  30. all:
  31.     cd ..; $(MAKE) sublibobjc.a
  32.  
  33. libobjc.a: core.o hash.o object.o
  34.     -rm -f libobjc.a
  35.     $(AR) rc libobjc.a object.o core.o hash.o
  36. # ranlib is run in the parent directory's makefile.
  37.  
  38. OBJC_H = objc.h objc-proto.h record.h $(srcdir)/assert.h $(srcdir)/gstdarg.h
  39. HASH_H = hash.h mutex.h
  40.  
  41. core.o: core.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h
  42. hash.o: hash.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h
  43. object.o: $(srcdir)/objc/object.m $(srcdir)/objc/object.h $(OBJC_H)
  44.     $(GCC_FOR_TARGET) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
  45.  
  46. mostlyclean:
  47.     -rm -f core.o hash.o object.o libobjc.a
  48. clean: mostlyclean
  49. distclean: mostlyclean
  50. extraclean: mostlyclean
  51.