home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Source / GNU / gcc / objc / makefile.dos < prev    next >
Makefile  |  1995-06-15  |  2KB  |  57 lines

  1. #  GNU Objective C Runtime Makefile for compiling with djgpp
  2. #  Copyright (C) 1993, 1994 Free Software Foundation, Inc.
  3. #
  4. #  This file is part of GNU CC.
  5. #
  6. #  GNU CC is free software; you can redistribute it and/or modify it under the
  7. #  terms of the GNU General Public License as published by the Free Software
  8. #  Foundation; either version 2, or (at your option) any later version.
  9. #
  10. #  GNU CC is distributed in the hope that it will be useful, but WITHOUT ANY
  11. #  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  12. #  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  13. #  details.
  14. #
  15. #  You should have received a copy of the GNU General Public License along with
  16. #  GNU CC; see the file COPYING.  If not, write to the Free Software
  17. #  Foundation, 59 Temple Place - Suite 330,
  18. #  Boston, MA 02111-1307, USA. 
  19.  
  20. # This Makefile is configured for GnuMAKE
  21.  
  22. GCC_FOR_TARGET=gcc
  23.  
  24. .SUFFIXES: .o .m
  25.  
  26. OPTIMIZE = -O2
  27.  
  28. # Always search these dirs when compiling.
  29. SUBDIR_INCLUDES = -I. -I.. -I../config
  30.  
  31. .c.o:
  32.     $(GCC_FOR_TARGET) $(OPTIMIZE) \
  33.         -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
  34.  
  35. .m.o:
  36.     $(GCC_FOR_TARGET) $(OPTIMIZE) -fgnu-runtime \
  37.         -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
  38.  
  39. OBJC_O = hash.o sarray.o class.o sendmsg.o init.o archive.o \
  40.          selector.o objects.o misc.o object.o protocol.o encoding.o
  41.  
  42. libobjc.a: $(OBJC_O)
  43.     -rm -f libobjc.a
  44.     ar rc libobjc.a $(OBJC_O)
  45.     ranlib libobjc.a
  46.  
  47. OBJC_H = hash.h list.h sarray.h objc.h \
  48.          objc-api.h \
  49.      object.h protocol.h mutex.h \
  50.      typedstream.h
  51.  
  52. mostlyclean:
  53.     -rm -f *.o libobjc.a xforward fflags
  54. clean: mostlyclean
  55. distclean: mostlyclean
  56. extraclean: mostlyclean
  57.