iverilog/vvp/Makefile.in

84 lines
2.0 KiB
Makefile
Raw Normal View History

2001-03-11 01:29:38 +01:00
#
# This source code is free software; you can redistribute it
# and/or modify it in source code form under the terms of the GNU
# Library General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this program; if not, write to the Free
# Software Foundation, Inc.,
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
2001-03-11 23:42:11 +01:00
#ident "$Id: Makefile.in,v 1.2 2001/03/11 22:42:11 steve Exp $"
2001-03-11 01:29:38 +01:00
#
#
SHELL = /bin/sh
prefix = @prefix@
exec_prefix = @exec_prefix@
srcdir = @srcdir@
VPATH = $(srcdir)
bindir = @bindir@
libdir = @libdir@
includedir = @includedir@
CC = @CC@
CXX = @CXX@ -Wall
INSTALL = @INSTALL@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
STRIP = @STRIP@
CPPFLAGS = @CPPFLAGS@ @DEFS@
CXXFLAGS = @CXXFLAGS@ -I. -I$(srcdir)
LDFLAGS = @LDFLAGS@
all: vvp
clean:
rm -rf vvp *.o *~ parse.cc parse.cc.output parse.h lexor.cc dep
distclean: clean
rm -f config.h Makefile config.cache config.log config.status
O = main.o parse.o parse_misc.o lexor.o compile.o functor.o symbols.o \
2001-03-11 23:42:11 +01:00
codes.o vthread.o schedule.o tables.o
2001-03-11 01:29:38 +01:00
vvp: $O
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o vvp $O
%.o: %.cc
@[ -d dep ] || mkdir dep
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -c $< -o $*.o
mv $*.d dep/$*.d
2001-03-11 23:42:11 +01:00
tables.cc: draw_tt.c
$(CC) -o draw_tt draw_tt.c
./draw_tt > tables.cc
rm draw_tt
2001-03-11 01:29:38 +01:00
lexor.o: lexor.cc parse.h
parse.o: parse.cc
parse.h parse.cc: $(srcdir)/parse.y
bison --verbose -t -d $(srcdir)/parse.y -o parse.cc
mv parse.cc.h parse.h
lexor.cc: $(srcdir)/lexor.lex
flex -s -olexor.cc $(srcdir)/lexor.lex
-include $(patsubst %.o, dep/%.d, $O)