home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.lbl.gov / 2014.05.ftp.ee.lbl.gov.tar / ftp.ee.lbl.gov / bmd-1.0beta.tar.Z / bmd-1.0beta.tar / bmd-1.0beta / app / omtd / Makefile < prev    next >
Makefile  |  1991-03-14  |  2KB  |  66 lines

  1. #
  2. # Copyright (c) 1990 Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that the above copyright notice and this paragraph are
  7. # duplicated in all such forms and that any documentation,
  8. # advertising materials, and other materials related to such
  9. # distribution and use acknowledge that the software was developed
  10. # by the University of California, Lawrence Berkeley Laboratory,
  11. # Berkeley, CA.  The name of the University may not be used to
  12. # endorse or promote products derived from this software without
  13. # specific prior written permission.
  14. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  15. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  16. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  17. #
  18. # @(#) $Header: Makefile,v 1.2 91/01/21 21:24:21 mccanne Locked $ (LBL)
  19. # Makefile for mtd.
  20. #
  21.  
  22. CC = gcc
  23. #CFLAGS = -O
  24. CFLAGS = -g
  25.  
  26. OBJ =    main.o util.o play.o sig.o \
  27.     setting.o midi.o pt.o merge.o event.o etime.o click.o misc.o \
  28.     track.o file.o parse.o scan.o st.o
  29.  
  30. TOBJ = pt.o pt-test.o 
  31. LIB = -lm
  32. LEX = flex -I
  33. #LEX = lex
  34. YACC = bison -y
  35.  
  36. mtd:    $(OBJ)
  37.     $(CC) $(CFLAGS) -o $@ $(OBJ) $(LIB)
  38.  
  39. scan.o: token.h
  40. scan.c: scan.l
  41.     rm -f $@
  42.     $(LEX) $<
  43.     mv -f lex.yy.c scan.c
  44.  
  45. token.h: parse.c
  46. parse.c: parse.y
  47.     rm -f parse.c token.h
  48.     $(YACC) -d $<
  49.     mv y.tab.c parse.c
  50.     mv y.tab.h token.h
  51.  
  52. tags:    force
  53.     ctags -wt *.c *.h
  54.  
  55. clean:
  56.     rm -f *.o mtd core
  57.  
  58. install:
  59.     install mtd /usr/local/omtd
  60.  
  61. force:
  62.  
  63. command.o: command.h
  64. setting.o: setting.h
  65.