1999-04-25 23:54:33 +02: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. In order to redistribute the software in
|
|
|
|
|
# binary form, you will need a Picture Elements Binary Software
|
|
|
|
|
# License.
|
|
|
|
|
#
|
|
|
|
|
# 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
|
|
|
|
|
#
|
1999-10-16 19:03:49 +02:00
|
|
|
#ident "$Id: Makefile.in,v 1.21 1999/10/16 17:03:49 steve Exp $"
|
1999-04-25 23:54:33 +02:00
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
|
|
VERSION = 0.0
|
|
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
|
|
|
|
|
|
VPATH = $(srcdir)
|
|
|
|
|
|
|
|
|
|
bindir = $(exec_prefix)/bin
|
|
|
|
|
libdir = $(exec_prefix)/lib
|
1999-09-01 00:34:25 +02:00
|
|
|
mandir = @mandir@
|
1999-04-25 23:54:33 +02:00
|
|
|
includedir = $(prefix)/include
|
|
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
|
CXX = @CXX@
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
|
|
CPPFLAGS = @CPPFLAGS@ @DEFS@
|
|
|
|
|
CXXFLAGS = @CXXFLAGS@
|
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
|
|
1999-08-17 17:57:43 +02:00
|
|
|
all: ivl verilog
|
1999-08-15 03:23:56 +02:00
|
|
|
cd vpi ; make all
|
1999-08-07 22:05:51 +02:00
|
|
|
cd vvm ; make all
|
1999-07-03 22:50:28 +02:00
|
|
|
cd ivlpp ; make all
|
1999-04-25 23:54:33 +02:00
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
rm *.o parse.cc parse.cc.output parse.h dep/*.d lexor.cc
|
1999-08-15 03:23:56 +02:00
|
|
|
cd vpi ; make clean
|
1999-08-07 22:05:51 +02:00
|
|
|
cd vvm ; make clean
|
1999-07-03 22:50:28 +02:00
|
|
|
cd ivlpp ; make clean
|
1999-04-25 23:54:33 +02:00
|
|
|
|
|
|
|
|
TT = t-null.o t-verilog.o t-vvm.o t-xnf.o
|
1999-07-18 07:52:46 +02:00
|
|
|
FF = nobufz.o propinit.o sigfold.o xnfio.o xnfsyn.o
|
1999-04-25 23:54:33 +02:00
|
|
|
|
1999-09-20 04:21:10 +02:00
|
|
|
O = main.o cprop.o design_dump.o elaborate.o elab_expr.o emit.o eval.o \
|
|
|
|
|
eval_tree.o functor.o \
|
1999-09-29 03:50:35 +02:00
|
|
|
lexor.o lexor_keyword.o mangle.o netlist.o pad_to_width.o \
|
1999-09-29 02:42:50 +02:00
|
|
|
parse.o parse_misc.o pform.o pform_dump.o \
|
1999-09-23 02:21:54 +02:00
|
|
|
set_width.o \
|
1999-09-04 21:11:45 +02:00
|
|
|
verinum.o verireal.o target.o targets.o Module.o PDelays.o PExpr.o PGate.o \
|
1999-07-31 21:14:47 +02:00
|
|
|
PTask.o PFunction.o PWire.o Statement.o \
|
1999-07-03 04:12:51 +02:00
|
|
|
$(FF) $(TT)
|
1999-04-25 23:54:33 +02:00
|
|
|
|
|
|
|
|
Makefile: Makefile.in config.status
|
|
|
|
|
./config.status
|
|
|
|
|
|
1999-08-17 17:57:43 +02:00
|
|
|
# Make the actual verilog program from the script template. This
|
|
|
|
|
# simply invloves editing the substitution strings in the script into
|
|
|
|
|
# the configured copy.
|
|
|
|
|
tmp1 = bindir
|
|
|
|
|
tmp2 = libdir
|
1999-10-16 19:03:49 +02:00
|
|
|
tmp3 = includedir
|
|
|
|
|
tmp4 = CXX
|
1999-08-17 17:57:43 +02:00
|
|
|
verilog: $(srcdir)/verilog.sh
|
1999-10-16 19:03:49 +02:00
|
|
|
sed -e 's;@$(tmp1)@;@bindir@;' \
|
|
|
|
|
-e 's;@$(tmp2)@;@libdir@;' \
|
|
|
|
|
-e 's;@$(tmp3)@;@includedir@;' \
|
|
|
|
|
-e 's;@$(tmp4)@;@CXX@;' < $< > $@
|
1999-08-17 17:57:43 +02:00
|
|
|
|
1999-04-25 23:54:33 +02:00
|
|
|
ivl: $O
|
|
|
|
|
$(CXX) $(CXXFLAGS) -o ivl $O
|
|
|
|
|
|
|
|
|
|
%.o dep/%.d: %.cc
|
1999-04-26 04:45:08 +02:00
|
|
|
@[ -d dep ] || mkdir dep
|
1999-04-25 23:54:33 +02:00
|
|
|
$(CXX) $(CXXFLAGS) -MD -c $< -o $*.o
|
|
|
|
|
mv $*.d dep/$*.d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lexor.o dep/lexor.d: lexor.cc parse.h
|
|
|
|
|
|
1999-06-15 04:50:02 +02:00
|
|
|
parse.o dep/parse.d: parse.cc
|
|
|
|
|
|
1999-04-25 23:54:33 +02:00
|
|
|
parse.h parse.cc: parse.y
|
|
|
|
|
bison --verbose -t -p VL -d parse.y -o parse.cc
|
|
|
|
|
mv parse.cc.h parse.h
|
|
|
|
|
|
|
|
|
|
lexor.cc: lexor.lex
|
|
|
|
|
flex -PVL -s -olexor.cc lexor.lex
|
|
|
|
|
|
1999-09-01 00:34:25 +02:00
|
|
|
install: all installdirs $(bindir)/verilog $(bindir)/ivl $(mandir)/man1/verilog.1
|
1999-08-15 03:23:56 +02:00
|
|
|
cd vpi ; make install
|
1999-08-07 22:05:51 +02:00
|
|
|
cd vvm ; make install
|
1999-07-03 22:50:28 +02:00
|
|
|
cd ivlpp ; make install
|
1999-04-25 23:54:33 +02:00
|
|
|
|
1999-08-17 17:57:43 +02:00
|
|
|
$(bindir)/verilog: ./verilog
|
|
|
|
|
$(INSTALL_PROGRAM) ./verilog $(bindir)/verilog
|
|
|
|
|
|
1999-05-08 22:37:59 +02:00
|
|
|
$(bindir)/ivl: ivl
|
|
|
|
|
$(INSTALL_PROGRAM) ./ivl $(bindir)/ivl
|
1999-04-25 23:54:33 +02:00
|
|
|
|
1999-09-01 00:34:25 +02:00
|
|
|
$(mandir)/man1/verilog.1: $(srcdir)/verilog.1
|
|
|
|
|
$(INSTALL_DATA) $(srcdir)/verilog.1 $(mandir)/man1/verilog.1
|
|
|
|
|
|
1999-04-25 23:54:33 +02:00
|
|
|
installdirs: mkinstalldirs
|
|
|
|
|
$(srcdir)/mkinstalldirs $(includedir) $(bindir)
|
|
|
|
|
|
|
|
|
|
uninstall:
|
1999-05-08 22:37:59 +02:00
|
|
|
rm -f $(bindir)/ivl
|
1999-08-17 17:57:43 +02:00
|
|
|
rm -f $(bindir)/verilog
|
1999-09-01 00:34:25 +02:00
|
|
|
rm -f $(mandir)/man1/verilog.1
|
1999-08-15 04:20:06 +02:00
|
|
|
cd vpi ; make uninstall
|
|
|
|
|
cd vvm ; make uninstall
|
|
|
|
|
cd ivlpp ; make uninstall
|
1999-04-25 23:54:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
-include $(patsubst %.o, dep/%.d, $O)
|