home *** CD-ROM | disk | FTP | other *** search
/ Da Capo / da_capo_vol1.bin / programs / amiga / midi / midi_playground / sourcecode / makefile < prev    next >
Makefile  |  1993-01-23  |  3KB  |  90 lines

  1. ###########################################################################
  2. # Makefile:    Makefile for Manx Aztec C, version 5.0.
  3. #        Part of MP, the MIDI Playground.
  4. #
  5. # Author:    Daniel Barrett
  6. # Version:    See the file "version.h".
  7. # Copyright:    None!  This program is in the Public Domain.
  8. #        Please share it with others.
  9. ###########################################################################
  10.  
  11.     
  12. OPTIMIZE    = -so
  13. DEBUGGING    = #-bs
  14. LDEBUGGING    = #-g
  15.     
  16. LFLAGS        = $(LDEBUGGING) +Q
  17. CFLAGS          = $(OPTIMIZE) -hi $(COMP_INC) $(DEBUGGING)
  18. COMP_INC    = headers.comp
  19. LIBS        = -lc
  20.  
  21. BACKUPDIR    = df1:sysex
  22.     
  23. ##############################################################################
  24. # Files used for all programs.
  25. ##############################################################################
  26.  
  27. PROG        = mp
  28. MAINHEADER    = mp.h
  29. HEADERS        = $(MAINHEADER) version.h midi.h
  30. SRC        = text.c main.c serial.c getopt.c iofunctions.c help.c \
  31.           files.c wb.c cli.c amigados.c
  32. OBJ        = text.o main.o serial.o getopt.o iofunctions.o help.o \
  33.           files.o wb.o cli.o amigados.o
  34.  
  35. ##############################################################################
  36. # The program.
  37. ##############################################################################
  38.  
  39. $(PROG):    $(COMP_INC) $(OBJ)
  40. #        @echo ""
  41. #        @echo "Ignore messages about _abort overriding library."
  42. #        @echo ""
  43.         ln $(LFLAGS) $(OBJ) -o $(PROG) $(LIBS)
  44.  
  45. $(OBJ):        $(MAINHEADER)
  46.  
  47. ##############################################################################
  48. # Individual dependencies.
  49. ##############################################################################
  50.  
  51. help.o:        help.c        $(MAINHEADER) version.h
  52. iofunctions.o:    iofunctions.c $(MAINHEADER) midi.h
  53. serial.o:    serial.c      $(MAINHEADER) midi.h
  54.     
  55. ##############################################################################
  56. # Compiled headers.
  57. ##############################################################################
  58.  
  59. $(COMP_INC):    $(MAINHEADER)
  60. #        @echo "Compiling headers because of $?"
  61.         cc $(OPTIMIZE) $(DEBUGGING) -ho $(COMP_INC) $(MAINHEADER)
  62.  
  63. #$(MAINHEADER):    $(HEADERS)
  64.  
  65. ##############################################################################
  66. # Clean up
  67. ##############################################################################
  68.  
  69. clean:
  70.         delete \#?.o \#?.pro
  71.  
  72. veryclean:    clean
  73.         delete $(COMP_INC) $(PROG) \#?.dbg
  74.  
  75. cbackup:
  76.         copy \#?.c $(BACKUPDIR)
  77.         copy \#?.h $(BACKUPDIR)
  78.         copy Makefile $(BACKUPDIR)
  79.  
  80. backup:        cbackup
  81.         copy README $(BACKUPDIR)
  82.         copy \#?.DOC $(BACKUPDIR)
  83.         copy Scripts $(BACKUPDIR)/Scripts   all
  84.         copy Examples $(BACKUPDIR)/Examples all
  85.  
  86. zoo:        $(PROG)
  87.         delete ram:mp.zoo quiet
  88.         zoo a ram:mp.zoo Source/* Scripts/* Examples/* \
  89.                  $(PROG) *.DOC README Makefile
  90.