Merge branch 'master' into verilog-ams
[sverilog.git] / driver-vpi / Makefile.in
bloba33053ae1b8b584aad28295b1278efc11374a674
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 SHELL = /bin/sh
21 VERSION = 0.9.devel
23 prefix = @prefix@
24 exec_prefix = @exec_prefix@
25 srcdir = @srcdir@
26 datarootdir = @datarootdir@
28 VPATH = $(srcdir)
30 bindir = $(exec_prefix)/bin
31 libdir = $(exec_prefix)/lib
32 includedir = $(prefix)/include
33 mandir = @mandir@
35 dllib=@DLLIB@
37 CC = @CC@
38 INSTALL = @INSTALL@
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@
44 LDFLAGS = @LDFLAGS@
46 all: iverilog-vpi@EXEEXT@
48 check: all
50 clean:
51 rm -f *.o config.h
52 rm -f iverilog-vpi@EXEEXT@
54 distclean: clean
55 rm -f Makefile
57 O = main.o res.o
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
66 config.h: config.h.in
67 sed -e 's;@IVLCC@;@CC@;' -e 's;@IVLCXX@;@CXX@;' \
68 -e 's;@IVLCFLAGS@;@CXXFLAGS@;' \
69 -e 's;@SHARED@;@shared@;' $< > $@
71 # Windows specific...
72 res.o: res.rc
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)
84 uninstall:
85 rm -f $(bindir)/iverilog-vpi@EXEEXT@