Reformulate number-to-real on vvp code generator
[iverilog.git] / tgt-verilog / Makefile.in
blobaee5829481257f8b8996e1e0b3cd9171c95f7282
2 # This source code is free software; you can redistribute it
3 # and/or modify it in source code form under the terms of the GNU
4 # Library General Public License as published by the Free Software
5 # Foundation; either version 2 of the License, or (at your option)
6 # any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU Library General Public License for more details.
13 # You should have received a copy of the GNU Library General Public
14 # License along with this program; if not, write to the Free
15 # Software Foundation, Inc.,
16 # 59 Temple Place - Suite 330
17 # Boston, MA 02111-1307, USA
19 #ident "$Id: Makefile.in,v 1.12 2004/02/10 19:25:01 steve Exp $"
22 SHELL = /bin/sh
24 VERSION = 0.0
26 prefix = @prefix@
27 exec_prefix = @exec_prefix@
28 srcdir = @srcdir@
30 VPATH = $(srcdir)
32 bindir = @bindir@
33 libdir = @libdir@
34 includedir = $(prefix)/include
36 CC = @CC@
37 INSTALL = @INSTALL@
38 INSTALL_PROGRAM = @INSTALL_PROGRAM@
39 INSTALL_DATA = @INSTALL_DATA@
41 CPPFLAGS = @ident_support@ -I.. -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ @PICFLAG@
42 CFLAGS = -Wall @CFLAGS@
43 LDFLAGS = @LDFLAGS@
45 all: dep verilog.tgt
47 dep:
48 mkdir dep
50 %.o: %.c
51 $(CC) $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $*.o
52 mv $*.d dep
54 O = verilog.o
56 ifeq (@WIN32@,yes)
57 TGTLDFLAGS= -L.. -livl
58 TGTDEPLIBS=../libivl.a
59 else
60 TGTLDFLAGS=
61 TGTDEPLIBS=
62 endif
64 verilog.tgt: $O $(TGTDEPLIBS)
65 $(CC) @shared@ -o $@ $O $(TGTLDFLAGS)
67 clean:
68 rm -rf *.o dep verilog.tgt
70 distclean: clean
71 rm -f Makefile
73 install: all installdirs $(libdir)/ivl/verilog.tgt \
74 $(includedir)/vpi_user.h
76 $(libdir)/ivl/verilog.tgt: ./verilog.tgt
77 $(INSTALL_PROGRAM) ./verilog.tgt $(libdir)/ivl/verilog.tgt
80 installdirs: ../mkinstalldirs
81 $(srcdir)/../mkinstalldirs $(libdir)/ivl
83 uninstall:
84 rm -f $(libdir)/ivl/verilog.tgt
87 -include $(patsubst %.o, dep/%.d, $O)