home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / BackspaceViews / Life / Makefile < prev    next >
Encoding:
Makefile  |  1992-02-18  |  667 b   |  34 lines

  1. INSTALLDIR=    $(HOME)/Apps/BackSpace.app
  2.  
  3. DYNAMODULES=    LifeView.BackO
  4.  
  5. THINGSTOREMOVE= LifeView.o
  6.  
  7. .SUFFIXES: .m .o .c .psw
  8. .c.o:
  9.     cc -O -g -Wall -c $*.c -o $*.o
  10. .m.o:
  11.     cc -O -g -Wall -c $*.m -o $*.o
  12. .psw.h:
  13.     pswrap -a -h $*.h -o $*.c $*.psw
  14. .psw.o:
  15.     pswrap -a -h $*.h -o $*.c $*.psw
  16.     cc -O -g -Wall -c $*.c -o $*.o
  17.  
  18. all::
  19.     $(MAKE) $(DYNAMODULES)
  20.     
  21. LifeView.BackO: LifeView.o LifeView.h
  22.     ld -x -r -o LifeView.BackO LifeView.o
  23.  
  24. clean::
  25.     rm -rf $(DYNAMODULES) $(THINGSTOREMOVE)
  26.     
  27.  
  28. install::    all install-views
  29.  
  30. install-views::
  31.     mkdirs $(INSTALLDIR)/LifeView.BackModule
  32.     cp LifeView.BackO $(INSTALLDIR)/LifeView.BackModule
  33.     cp -r Life.nib $(INSTALLDIR)/LifeView.BackModule
  34.