1999-08-15 03:23:56 +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)
|
2003-10-09 01:17:39 +02:00
|
|
|
# any later version.
|
1999-08-15 03:23:56 +02:00
|
|
|
#
|
|
|
|
|
# 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
|
|
|
|
|
#
|
2007-02-06 06:07:31 +01:00
|
|
|
#ident "$Id: Makefile.in,v 1.61 2007/02/06 05:07:32 steve Exp $"
|
1999-08-15 03:23:56 +02:00
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
|
|
VERSION = 0.0
|
|
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
|
|
|
|
|
|
VPATH = $(srcdir)
|
|
|
|
|
|
2000-11-11 01:48:35 +01:00
|
|
|
bindir = @bindir@
|
|
|
|
|
libdir = @libdir@
|
1999-08-15 03:23:56 +02:00
|
|
|
includedir = $(prefix)/include
|
|
|
|
|
|
2008-01-26 02:33:32 +01:00
|
|
|
vpidir = $(libdir)/ivl
|
2003-10-02 23:30:40 +02:00
|
|
|
|
1999-08-15 03:23:56 +02:00
|
|
|
CC = @CC@
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
2007-11-19 02:36:03 +01:00
|
|
|
LEX = @LEX@
|
|
|
|
|
YACC = @YACC@
|
1999-08-15 03:23:56 +02:00
|
|
|
|
2004-02-10 20:25:00 +01:00
|
|
|
CPPFLAGS = @ident_support@ -I. -I$(srcdir)/.. -I$(srcdir) -I.. @file64_support@ @CPPFLAGS@ @DEFS@ @PICFLAG@
|
|
|
|
|
CFLAGS = -Wall @CFLAGS@
|
1999-08-15 03:23:56 +02:00
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
|
|
2008-04-30 06:20:39 +02:00
|
|
|
all: dep system.vpi va_math.vpi $(ALL32)
|
2003-02-27 23:13:22 +01:00
|
|
|
|
|
|
|
|
dep:
|
|
|
|
|
mkdir dep
|
1999-08-15 03:23:56 +02:00
|
|
|
|
2000-10-04 19:08:31 +02:00
|
|
|
%.o: %.c
|
2004-02-10 20:25:00 +01:00
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $*.o
|
1999-08-15 03:23:56 +02:00
|
|
|
mv $*.d dep
|
|
|
|
|
|
2008-04-30 06:20:39 +02:00
|
|
|
# Object files for system.vpi
|
2003-10-30 04:43:19 +01:00
|
|
|
O = sys_table.o sys_convert.o sys_deposit.o sys_display.o sys_fileio.o \
|
2008-05-07 04:00:32 +02:00
|
|
|
sys_finish.o sys_icarus.o sys_plusargs.o sys_random.o sys_random_mti.o \
|
2007-11-19 02:36:03 +01:00
|
|
|
sys_readmem.o sys_readmem_lex.o sys_scanf.o sys_sdf.o \
|
|
|
|
|
sys_time.o sys_vcd.o sys_vcdoff.o vcd_priv.o \
|
|
|
|
|
mt19937int.o priv.o sdf_lexor.o sdf_parse.o stringheap.o
|
2003-09-13 03:28:47 +02:00
|
|
|
|
|
|
|
|
ifeq (@HAVE_LIBZ@,yes)
|
2007-09-16 20:23:19 +02:00
|
|
|
ifeq (@HAVE_LIBBZ2@,yes)
|
|
|
|
|
O += sys_lxt.o lxt_write.o
|
|
|
|
|
endif
|
|
|
|
|
O += sys_lxt2.o lxt2_write.o
|
2003-09-13 03:28:47 +02:00
|
|
|
endif
|
1999-08-15 03:23:56 +02:00
|
|
|
|
2008-04-30 06:20:39 +02:00
|
|
|
# Object files for va_math.vpi
|
|
|
|
|
V = va_math.o
|
|
|
|
|
|
2003-02-20 01:50:06 +01:00
|
|
|
LIBS = @LIBS@
|
2003-04-20 00:37:10 +02:00
|
|
|
SYSTEM_VPI_LDFLAGS = $(LIBS)
|
2008-04-30 06:20:39 +02:00
|
|
|
VA_MATH_LDFLAGS =
|
2007-02-06 06:07:31 +01:00
|
|
|
ifeq (@MING32@,yes)
|
2004-03-11 07:06:59 +01:00
|
|
|
SYSTEM_VPI_LDFLAGS += @EXTRALIBS@
|
2008-04-30 06:20:39 +02:00
|
|
|
VA_MATH_LDFLAGS += @EXTRALIBS@
|
2001-06-15 07:05:04 +02:00
|
|
|
endif
|
|
|
|
|
|
2003-01-10 04:06:32 +01:00
|
|
|
system.vpi: $O ../vvp/libvpi.a
|
2003-04-20 00:37:10 +02:00
|
|
|
$(CC) @shared@ -o $@ $O -L../vvp $(LDFLAGS) -lvpi $(SYSTEM_VPI_LDFLAGS)
|
1999-08-15 03:23:56 +02:00
|
|
|
|
1999-12-15 05:01:14 +01:00
|
|
|
sys_readmem_lex.c: sys_readmem_lex.lex
|
2001-01-09 04:11:27 +01:00
|
|
|
flex -t -Preadmem $(srcdir)/sys_readmem_lex.lex > sys_readmem_lex.c
|
1999-12-15 05:01:14 +01:00
|
|
|
|
2007-11-26 18:31:27 +01:00
|
|
|
sdf_lexor.o: sdf_lexor.c sdf_parse.h
|
|
|
|
|
|
2007-11-19 02:36:03 +01:00
|
|
|
sdf_lexor.c: sdf_lexor.lex
|
|
|
|
|
flex -t -Psdf $(srcdir)/sdf_lexor.lex > sdf_lexor.c
|
|
|
|
|
|
|
|
|
|
sdf_parse.c sdf_parse.h: $(srcdir)/sdf_parse.y
|
|
|
|
|
$(YACC) --verbose -d -p sdf -o sdf_parse.c $(srcdir)/sdf_parse.y
|
|
|
|
|
|
2008-04-30 06:20:39 +02:00
|
|
|
va_math.vpi: $V ../vvp/libvpi.a
|
|
|
|
|
$(CC) @shared@ -o $@ $V -L../vvp $(LDFLAGS) -lvpi $(VA_MATH_VPI_LDFLAGS)
|
|
|
|
|
|
1999-08-15 03:23:56 +02:00
|
|
|
clean:
|
2008-04-30 06:20:39 +02:00
|
|
|
rm -rf *.o sys_readmem_lex.c dep system.vpi va_math.vpi bin32
|
2007-11-26 18:31:27 +01:00
|
|
|
rm -f sdf_lexor.c sdf_parse.c sdf_parse.output sdf_parse.h
|
2003-02-27 23:13:22 +01:00
|
|
|
|
|
|
|
|
distclean: clean
|
2006-10-30 23:45:36 +01:00
|
|
|
rm -f Makefile config.status config.log vpi_config.h
|
1999-08-15 03:23:56 +02:00
|
|
|
|
2008-01-12 00:58:41 +01:00
|
|
|
check: all
|
|
|
|
|
|
2008-04-30 06:20:39 +02:00
|
|
|
install: all installdirs \
|
|
|
|
|
$(vpidir)/system.vpi $(libdir)/ivl/system.sft \
|
|
|
|
|
$(vpidir)/va_math.vpi $(libdir)/ivl/va_math.sft \
|
|
|
|
|
$(vpidir)/include/
|
1999-08-15 03:23:56 +02:00
|
|
|
|
2003-10-02 23:30:40 +02:00
|
|
|
$(vpidir)/system.vpi: ./system.vpi
|
|
|
|
|
$(INSTALL_PROGRAM) ./system.vpi $(vpidir)/system.vpi
|
1999-08-15 03:23:56 +02:00
|
|
|
|
2004-06-17 16:47:22 +02:00
|
|
|
$(libdir)/ivl/system.sft: system.sft
|
2004-08-30 19:42:53 +02:00
|
|
|
$(INSTALL_DATA) $< $@
|
2004-06-17 16:47:22 +02:00
|
|
|
|
2008-04-30 06:20:39 +02:00
|
|
|
$(vpidir)/va_math.vpi: ./va_math.vpi
|
|
|
|
|
$(INSTALL_PROGRAM) ./va_math.vpi $(vpidir)/va_math.vpi
|
|
|
|
|
|
|
|
|
|
$(libdir)/ivl/va_math.sft: va_math.sft
|
|
|
|
|
$(INSTALL_DATA) $< $@
|
|
|
|
|
|
1999-08-15 04:20:06 +02:00
|
|
|
installdirs: ../mkinstalldirs
|
2003-10-02 23:30:40 +02:00
|
|
|
$(srcdir)/../mkinstalldirs $(vpidir)
|
1999-08-15 03:23:56 +02:00
|
|
|
|
2008-01-26 02:33:32 +01:00
|
|
|
uninstall:
|
2003-10-02 23:30:40 +02:00
|
|
|
rm -f $(vpidir)/system.vpi
|
2004-06-17 16:47:22 +02:00
|
|
|
rm -f $(libdir)/ivl/system.sft
|
2008-04-30 06:20:39 +02:00
|
|
|
rm -f $(vpidir)/va_math.vpi
|
|
|
|
|
rm -f $(libdir)/ivl/va_math.sft
|
1999-08-15 03:23:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
-include $(patsubst %.o, dep/%.d, $O)
|