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)
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 $"
28 exec_prefix = @
exec_prefix@
36 includedir = $(prefix)/include
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@
53 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -MD
-c
$< -o
$*.o
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
61 TGTDEPLIBS
=..
/libivl.a
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
82 rm -rf
*.o dep fpga.tgt
85 rm -f Makefile config.status config.log config.cache
90 INSTALL_DOC
= $(prefix)/iverilog-fpga.pdf
$(mandir)/man1
/iverilog-fpga
.1
91 INSTALL_DOCDIR
= $(mandir)/man1
92 all: iverilog-fpga.pdf
94 INSTALL_DOC
= $(mandir)/man1
/iverilog-fpga
.1
95 INSTALL_DOCDIR
= $(mandir)/man1
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
120 rm -f
$(libdir)/ivl
/fpga.tgt
122 rm -f
$(libdir)/ivl
/fpga-s.conf
123 rm -f
$(libdir)/ivl
/fpga.conf
125 -include $(patsubst %.o
, dep
/%.d
, $O)