Compile time warnings
[iverilog.git] / tgt-vvp / Makefile.in
blob399e033a237829cfe68a2d1dfb4e672abddfced6
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.26 2007/02/06 05:07:32 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 vvp.tgt vvp.conf vvp-s.conf
47 dep:
48 mkdir dep
50 %.o: %.c
51 $(CC) $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $*.o
52 mv $*.d dep
54 O = vvp.o draw_mux.o draw_ufunc.o draw_vpi.o eval_bool.o eval_expr.o \
55 eval_real.o vector.o \
56 vvp_process.o vvp_scope.o
58 ifeq (@WIN32@,yes)
59 TGTLDFLAGS=-L.. -livl
60 TGTDEPLIBS=../libivl.a
61 else
62 TGTLDFLAGS=
63 TGTDEPLIBS=
64 endif
67 vvp.tgt: $O $(TGTDEPLIBS)
68 $(CC) @shared@ -o $@ $O $(TGTLDFLAGS)
70 vvp.conf: $(srcdir)/vvp.conf.in
71 echo 'flag:VVP_EXECUTABLE=$(bindir)/vvp' | cat $(srcdir)/vvp.conf.in - > vvp.conf
73 vvp-s.conf: $(srcdir)/vvp-s.conf.in
74 echo 'flag:VVP_EXECUTABLE=$(bindir)/vvp' | cat $(srcdir)/vvp-s.conf.in - > vvp-s.conf
76 Makefile: Makefile.in config.status
77 ./config.status
79 clean:
80 rm -rf *.o dep vvp.tgt vvp.conf vvp-s.conf
82 distclean: clean
83 rm -f Makefile config.status config.log config.cache vvp_config.h
85 check: all
87 install: all installdirs $(libdir)/ivl/vvp.tgt $(libdir)/ivl/vvp.conf $(libdir)/ivl/vvp-s.conf
89 $(libdir)/ivl/vvp.tgt: ./vvp.tgt
90 $(INSTALL_PROGRAM) ./vvp.tgt $(libdir)/ivl/vvp.tgt
92 $(libdir)/ivl/vvp.conf: vvp.conf
93 $(INSTALL_DATA) $< $(libdir)/ivl/vvp.conf
95 $(libdir)/ivl/vvp-s.conf: vvp-s.conf
96 $(INSTALL_DATA) $< $(libdir)/ivl/vvp-s.conf
99 installdirs: ../mkinstalldirs
100 $(srcdir)/../mkinstalldirs $(libdir)/ivl
102 uninstall:
103 rm -f $(libdir)/ivl/vvp.tgt $(libdir)/ivl/vvp.conf $(libdir)/ivl/vvp-s.conf
106 -include $(patsubst %.o, dep/%.d, $O)