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)
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
24 exec_prefix = @
exec_prefix@
26 datarootdir
= @datarootdir@
30 bindir = $(exec_prefix)/bin
31 libdir = $(exec_prefix)/lib
32 includedir = $(prefix)/include
39 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
40 INSTALL_DATA
= @INSTALL_DATA@
42 CPPFLAGS
= @ident_support@
-I.
-I
$(srcdir)/..
-DVERSION
='"$(VERSION)"' @CPPFLAGS@ @DEFS@
43 CFLAGS
= -Wall @CFLAGS@
46 all: iverilog-vpi@EXEEXT@
52 rm -f iverilog-vpi@EXEEXT@
59 iverilog-vpi@EXEEXT@
: $O
60 $(CC
) $(LDFLAGS
) $O -o iverilog-vpi@EXEEXT@ @EXTRALIBS@
63 main.o
: main.c config.h
64 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
$(srcdir)/main.c
67 sed
-e
's;@IVLCC@;@CC@;' -e
's;@IVLCXX@;@CXX@;' \
68 -e
's;@IVLCFLAGS@;@CXXFLAGS@;' \
69 -e
's;@SHARED@;@shared@;' $< > $@
73 windres
-i res.rc
-o res.o
76 install: all installdirs $(bindir)/iverilog-vpi@EXEEXT@
78 $(bindir)/iverilog-vpi@EXEEXT@
: .
/iverilog-vpi@EXEEXT@
79 $(INSTALL_PROGRAM
) .
/iverilog-vpi@EXEEXT@
$(bindir)/iverilog-vpi@EXEEXT@
81 installdirs: ..
/mkinstalldirs
82 $(srcdir)/..
/mkinstalldirs
$(bindir)
85 rm -f
$(bindir)/iverilog-vpi@EXEEXT@