home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / d / dir_nm20.zip / Dir_NM_2.0 / Dir_TTS / Makefile < prev    next >
Makefile  |  1992-07-16  |  2KB  |  71 lines

  1. #
  2. # Application makefile. 
  3. #
  4. #
  5.  
  6. #
  7. # Name of the application. 
  8. #
  9. NAME = tts
  10.  
  11. #
  12. # IM's *.text files for this application. 
  13. #
  14. # If you add your own SynthPatch, add it in 2 places:
  15. #    in the MFILES list and the LDFLAGS list.
  16. MFILES = tts.m 
  17. HFILES =
  18. CFILES = 
  19. NIBFILES =
  20. TIFFFILES = 
  21. PSWFILES = 
  22. SNDFILES = 
  23.  
  24. #
  25. # Libraries used by this application.
  26. #
  27. LIBS =  -lmusic_s -ldsp_s -lNeXT_s -lsys_s
  28.  
  29. #
  30. # Flags to pass on to the compiler and linker.
  31. #
  32. CFLAGS=    -g
  33.  
  34. # Here's where you put the list of non-Music Kit SynthPatches to be loaded
  35. # LDFLAGS = -u .objc_class_name_MySynthPatch -u .objc_class_name_AnotherOne
  36.  
  37. #
  38. # Rules.
  39. #
  40. SRCFILES = $(MFILES) $(HFILES) $(CFILES) $(NIBFILES) $(TIFFFILES) $(PSWFILES) 
  41. OBJFILES = $(MFILES:.m=.o) $(CFILES:.c=.o) $(PSWFILES:.psw=.o) 
  42. DERIVED = $(PSWFILES:.psw=.c) 
  43. GARBAGE = $(DERIVED) core errs 
  44. INSTALLDIR = $(HOME)/Apps
  45. INSTALLFLAGS = -c -s -m 755
  46.  
  47. $(NAME): $(OBJFILES) 
  48.     $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJFILES) $(LIBS) 
  49.  
  50. all: $(NAME)
  51.  
  52. clean: 
  53.     -rm -f *.o $(NAME) $(DERIVED) $(GARBAGE) 
  54.  
  55. help: 
  56.     @echo '  make $(NAME) - to make the application'
  57.     @echo '  make clean -    to remove all files but the source'
  58.     @echo '  make install [DSTROOT=somepath] - to make and install the application'
  59.  
  60. installsrc:
  61.     -rm -rf $(SRCROOT)
  62.     mkdirs -m 755 $(SRCROOT)
  63.     cp $(SRCFILES) Makefile README $(SRCROOT)
  64.     chmod 444 $(SRCROOT)/*
  65.  
  66. install: $(DSTROOT)$(INSTALLDIR) all
  67.     install $(INSTALLFLAGS) $(NAME) $(DSTROOT)$(INSTALLDIR)
  68.  
  69. $(DSTROOT)$(INSTALLDIR):
  70.     mkdirs $(DSTROOT)$(INSTALLDIR)
  71.