Reformulate number-to-real on vvp code generator
[iverilog.git] / tgt-fpga / Makefile.in
bloba540f346cc4129644011c578dd66f66458c5a31d
2 # Copyright 2003 Stephen Williams (steve at icarus.com)
3 # This source code is free software; you can redistribute it
4 # and/or modify it in source code form under the terms of the GNU
5 # Library General Public License as published by the Free Software
6 # Foundation; either version 2 of the License, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU Library General Public License for more details.
14 # You should have received a copy of the GNU Library General Public
15 # License along with this program; if not, write to the Free
16 # Software Foundation, Inc.,
17 # 59 Temple Place - Suite 330
18 # Boston, MA 02111-1307, USA
20 #ident "$Id: Makefile.in,v 1.16 2004/02/10 19:25:01 steve Exp $"
23 SHELL = /bin/sh
25 VERSION = 0.0
27 prefix = @prefix@
28 exec_prefix = @exec_prefix@
29 srcdir = @srcdir@
30 mandir = @mandir@
32 VPATH = $(srcdir)
34 bindir = @bindir@
35 libdir = @libdir@
36 includedir = $(prefix)/include
38 CC = @CC@
39 INSTALL = @INSTALL@
40 INSTALL_PROGRAM = @INSTALL_PROGRAM@
41 INSTALL_DATA = @INSTALL_DATA@
43 CPPFLAGS = @ident_support@ -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ @PICFLAG@
44 CFLAGS = -Wall @CFLAGS@
45 LDFLAGS = @LDFLAGS@
47 all: dep fpga.tgt
49 dep:
50 mkdir dep
52 %.o: %.c
53 $(CC) $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $*.o
54 mv $*.d dep
56 D = d-generic.o d-generic-edif.o d-lpm.o d-virtex.o d-virtex2.o
57 O = edif.o fpga.o gates.o mangle.o tables.o generic.o xilinx.o $D
59 ifeq (@WIN32@,yes)
60 TGTLDFLAGS=-L.. -livl
61 TGTDEPLIBS=../libivl.a
62 else
63 TGTLDFLAGS=
64 TGTDEPLIBS=
65 endif
68 fpga.tgt: $O $(TGTDEPLIBS)
69 $(CC) @shared@ -o $@ $O $(TGTLDFLAGS)
71 iverilog-fpga.ps: $(srcdir)/iverilog-fpga.man
72 man -t $(srcdir)/iverilog-fpga.man > iverilog-fpga.ps
74 iverilog-fpga.pdf: iverilog-fpga.ps
75 ps2pdf iverilog-fpga.ps iverilog-fpga.pdf
78 Makefile: Makefile.in config.status
79 ./config.status
81 clean:
82 rm -rf *.o dep fpga.tgt
84 distclean: clean
85 rm -f Makefile config.status config.log config.cache
87 check: all
89 ifeq (@WIN32@,yes)
90 INSTALL_DOC = $(prefix)/iverilog-fpga.pdf $(mandir)/man1/iverilog-fpga.1
91 INSTALL_DOCDIR = $(mandir)/man1
92 all: iverilog-fpga.pdf
93 else
94 INSTALL_DOC = $(mandir)/man1/iverilog-fpga.1
95 INSTALL_DOCDIR = $(mandir)/man1
96 endif
98 install: all installdirs $(libdir)/ivl/fpga.tgt $(INSTALL_DOC) $(libdir)/ivl/fpga.conf $(libdir)/ivl/fpga-s.conf
100 $(libdir)/ivl/fpga.tgt: ./fpga.tgt
101 $(INSTALL_PROGRAM) ./fpga.tgt $(libdir)/ivl/fpga.tgt
103 $(libdir)/ivl/fpga.conf: $(srcdir)/fpga.conf
104 $(INSTALL_DATA) $(srcdir)/fpga.conf $(libdir)/ivl/fpga.conf
106 $(libdir)/ivl/fpga-s.conf: $(srcdir)/fpga-s.conf
107 $(INSTALL_DATA) $(srcdir)/fpga-s.conf $(libdir)/ivl/fpga-s.conf
110 $(mandir)/man1/iverilog-fpga.1: $(srcdir)/iverilog-fpga.man
111 $(INSTALL_DATA) $(srcdir)/iverilog-fpga.man $(mandir)/man1/iverilog-fpga.1
113 $(prefix)/iverilog-fpga.pdf: iverilog-fpga.pdf
114 $(INSTALL_DATA) iverilog-fpga.pdf $(prefix)/iverilog-fpga.pdf
116 installdirs: ../mkinstalldirs
117 $(srcdir)/../mkinstalldirs $(libdir)/ivl
119 uninstall:
120 rm -f $(libdir)/ivl/fpga.tgt
121 rm -f $(INSTALL_DOC)
122 rm -f $(libdir)/ivl/fpga-s.conf
123 rm -f $(libdir)/ivl/fpga.conf
125 -include $(patsubst %.o, dep/%.d, $O)