Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # File: Makefile
  2. # Makefile for Praat.
  3. # Paul Boersma, 12 August 2018
  4. # System-dependent definitions of CC, LIBS, ICON and MAIN_ICON should be in
  5. # makefile.defs, which has to be copied and renamed
  6. # from a suitable makefile.defs.XXX file in the makefiles directory,
  7. # Perhaps that file requires some editing.
  8. include makefile.defs
  9. .PHONY: all clean install
  10. # Makes the Praat executable in the source directory.
  11. all:
  12. $(MAKE) -C external/gsl
  13. $(MAKE) -C external/glpk
  14. $(MAKE) -C external/mp3
  15. $(MAKE) -C external/flac
  16. $(MAKE) -C external/portaudio
  17. $(MAKE) -C external/espeak
  18. $(MAKE) -C kar
  19. $(MAKE) -C melder
  20. $(MAKE) -C sys
  21. $(MAKE) -C dwsys
  22. $(MAKE) -C stat
  23. $(MAKE) -C fon
  24. $(MAKE) -C dwtools
  25. $(MAKE) -C LPC
  26. $(MAKE) -C EEG
  27. $(MAKE) -C gram
  28. $(MAKE) -C FFNet
  29. $(MAKE) -C artsynth
  30. $(MAKE) -C contrib/ola
  31. $(MAKE) -C main main_Praat.o $(ICON)
  32. $(LINK) -o $(EXECUTABLE) main/main_Praat.o $(MAIN_ICON) fon/libfon.a \
  33. contrib/ola/libOla.a artsynth/libartsynth.a \
  34. FFNet/libFFNet.a gram/libgram.a EEG/libEEG.a \
  35. LPC/libLPC.a dwtools/libdwtools.a \
  36. fon/libfon.a stat/libstat.a dwsys/libdwsys.a \
  37. sys/libsys.a melder/libmelder.a kar/libkar.a \
  38. external/espeak/libespeak.a \
  39. external/portaudio/libportaudio.a \
  40. external/flac/libflac.a external/mp3/libmp3.a \
  41. external/glpk/libglpk.a external/gsl/libgsl.a \
  42. $(LIBS)
  43. clean:
  44. $(MAKE) -C external/gsl clean
  45. $(MAKE) -C external/glpk clean
  46. $(MAKE) -C external/mp3 clean
  47. $(MAKE) -C external/flac clean
  48. $(MAKE) -C external/portaudio clean
  49. $(MAKE) -C external/espeak clean
  50. $(MAKE) -C kar clean
  51. $(MAKE) -C melder clean
  52. $(MAKE) -C sys clean
  53. $(MAKE) -C dwsys clean
  54. $(MAKE) -C stat clean
  55. $(MAKE) -C fon clean
  56. $(MAKE) -C dwtools clean
  57. $(MAKE) -C LPC clean
  58. $(MAKE) -C EEG clean
  59. $(MAKE) -C gram clean
  60. $(MAKE) -C FFNet clean
  61. $(MAKE) -C artsynth clean
  62. $(MAKE) -C contrib/ola clean
  63. $(MAKE) -C main clean
  64. $(RM) praat
  65. install:
  66. $(INSTALL)