home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / Programming / Source / BattleView / Makefile < prev    next >
Encoding:
Makefile  |  1992-08-17  |  1.5 KB  |  51 lines

  1. #   Makefile -- makefile for BattleView
  2. #   Copyright (C) 1992, 1993 David A. Strout
  3. #
  4. #   This program is free software; you can redistribute it and/or modify
  5. #   it under the terms of the GNU General Public License as published by
  6. #   the Free Software Foundation; either version 2, or (at your option)
  7. #   any later version.
  8. #
  9. #   This program is distributed in the hope that it will be useful,
  10. #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. #   GNU General Public License for more details.
  13. #
  14. #   You should have received a copy of the GNU General Public License
  15. #   along with this program; if not, write to the Free Software
  16. #   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  
  17. #
  18. #   Written by David Strout <dstrout@isi.edu>. 
  19.  
  20.  
  21.  
  22.  
  23. INSTALLDIR=    $(HOME)/Apps/BackSpace.app
  24.  
  25. DYNAMODULES=    BattleView.BackO
  26.  
  27. THINGSTOREMOVE= BattleView.o SpaceThing.o Ship.o Weapon.o *~
  28.  
  29. .SUFFIXES: .m .o .c .psw
  30.  
  31. .m.o:
  32.     cc -O -g -Wall -c $*.m -o $*.o
  33.  
  34. all::
  35.     $(MAKE) $(DYNAMODULES)
  36.     
  37. BattleView.BackO: BattleView.o BattleView.h SpaceThing.o SpaceThing.h Ship.o Ship.h Weapon.o Weapon.h
  38.     ld -x -r -o BattleView.BackO BattleView.o SpaceThing.o Ship.o Weapon.o 
  39.  
  40. clean::
  41.     rm -rf $(THINGSTOREMOVE)
  42.     
  43.  
  44. install::    all install-views
  45.  
  46. install-views::
  47.     mkdirs $(INSTALLDIR)/BattleView.BackModule
  48.     cp BattleView.BackO $(INSTALLDIR)/BattleView.BackModule
  49.     cp -r Battle.nib $(INSTALLDIR)/BattleView.BackModule
  50.     cp -r *.tiff $(INSTALLDIR)/BattleView.BackModule
  51.