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 >
Wrap
Makefile
|
1991-03-14
|
2KB
|
66 lines
#
# Copyright (c) 1990 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the University of California, Lawrence Berkeley Laboratory,
# Berkeley, CA. The name of the University may not be used to
# endorse or promote products derived from this software without
# specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
# @(#) $Header: Makefile,v 1.2 91/01/21 21:24:21 mccanne Locked $ (LBL)
#
# Makefile for mtd.
#
CC = gcc
#CFLAGS = -O
CFLAGS = -g
OBJ = main.o util.o play.o sig.o \
setting.o midi.o pt.o merge.o event.o etime.o click.o misc.o \
track.o file.o parse.o scan.o st.o
TOBJ = pt.o pt-test.o
LIB = -lm
LEX = flex -I
#LEX = lex
YACC = bison -y
mtd: $(OBJ)
$(CC) $(CFLAGS) -o $@ $(OBJ) $(LIB)
scan.o: token.h
scan.c: scan.l
rm -f $@
$(LEX) $<
mv -f lex.yy.c scan.c
token.h: parse.c
parse.c: parse.y
rm -f parse.c token.h
$(YACC) -d $<
mv y.tab.c parse.c
mv y.tab.h token.h
tags: force
ctags -wt *.c *.h
clean:
rm -f *.o mtd core
install:
install mtd /usr/local/omtd
force:
command.o: command.h
setting.o: setting.h