Skip to content
This repository
Newer
Older
100644 387 lines (322 sloc) 13.843 kb
471d389c » steve
1999-04-25 autoconf the makefiles.
1 #
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)
f7d62b96 » steve
2000-11-21 whoops, wrong copyright notice.
6 # any later version.
471d389c » steve
1999-04-25 autoconf the makefiles.
7 #
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.
12 #
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
f5aafc32 » arunpersaud
2012-08-28 updated FSF-address
15 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 # Boston, MA 02110-1301, USA.
471d389c » steve
1999-04-25 autoconf the makefiles.
17 #
18 SHELL = /bin/sh
19
90a4ddeb »
2009-01-05 Keep source code version information in version files.
20 # The interesting make targets are:
527f5c48 »
2008-09-07 The -V flag gets version information from all parts.
21 #
90a4ddeb »
2009-01-05 Keep source code version information in version files.
22 # make version
23 # Force the version_tag.h file to be rebuilt. Otherwise, it will only
24 # be built if it is missing.
527f5c48 »
2008-09-07 The -V flag gets version information from all parts.
25 #
90a4ddeb »
2009-01-05 Keep source code version information in version files.
26 # make all
27 # make install
527f5c48 »
2008-09-07 The -V flag gets version information from all parts.
28 #
90a4ddeb »
2009-01-05 Keep source code version information in version files.
29 # The "suffix" is used as an installation suffix. It modifies certain
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
30 # key install paths/files such that a build and install of Icarus Verilog
31 # with the same $(prefix) but a different $(suffix) will not interfere.
ec49f10e »
2010-10-02 Revert bad merge from vhdl branch
32 # The normal configuration leaves suffix empty
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
33 suffix = @install_suffix@
34
471d389c » steve
1999-04-25 autoconf the makefiles.
35 prefix = @prefix@
36 exec_prefix = @exec_prefix@
37 srcdir = @srcdir@
5ec91ec9 »
2008-01-24 Add datarootdir to makefiles
38 datarootdir = @datarootdir@
471d389c » steve
1999-04-25 autoconf the makefiles.
39
8cf1fd18 »
2010-12-13 Introduce shell of vhdlpp program.
40 SUBDIRS = ivlpp vhdlpp vvp vpi libveriuser cadpli tgt-null tgt-stub tgt-vvp \
9075326b »
2011-12-20 Introduce PCB code generator.
41 tgt-vhdl tgt-vlog95 tgt-pcb driver
6909737b » caryr
2009-11-28 Some more generic fixes for building in a remote directory
42 # Only run distclean for these directories.
26ee14c7 » caryr
2008-12-16 Clean up Makefile.in files.
43 NOTUSED = tgt-fpga tgt-pal tgt-verilog
cb65ee5e » steve
2001-03-11 Add the vvp engine to cvs.
44
145133bd » caryr
2009-11-30 Minor rework of how driver-vpi is supported.
45 ifeq (@MINGW32@,yes)
46 SUBDIRS += driver-vpi
47 else
48 NOTUSED += driver-vpi
49 endif
50
6909737b » caryr
2009-11-28 Some more generic fixes for building in a remote directory
51 # To get the version headers to build correctly we only want to look
52 # for C++ files in the source directory. All other files will require
e67dcf52 » caryr
2011-01-14 Add a vpath for the local lexor_keyword.cc
53 # an explicit $(srcdir). The one exception to this is if we need to
54 # rebuild the lexor_keyword.cc file. If we do, then we want to use the
55 # local version instead of the one is $(srcdir).
56 vpath lexor_keyword.cc .
6bf7e886 » caryr
2011-01-24 Fix build of ivl with files in libmisc and vhdlpp check issues.
57 vpath %.cc $(srcdir)/libmisc
6909737b » caryr
2009-11-28 Some more generic fixes for building in a remote directory
58 vpath %.cc $(srcdir)
471d389c » steve
1999-04-25 autoconf the makefiles.
59
197ed46b » steve
2000-11-11 configure bindir and libdir
60 bindir = @bindir@
61 libdir = @libdir@
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
62 # This is actually the directory where we install our own header files.
63 # It is a little different from the generic includedir.
5660e0ed »
2008-11-25 Install header files in includedir/iverilog
64 includedir = @includedir@/iverilog$(suffix)
c594dcec » steve
2002-05-28 Add new iverilog-vpi man page.
65 mandir = @mandir@
471d389c » steve
1999-04-25 autoconf the makefiles.
66
566aad9e » steve
2000-08-12 Start stub for loadable targets.
67 dllib=@DLLIB@
68
5d150c31 » caryr
2011-12-16 Update and localize HOST compile information.
69 # For a cross compile these defines will need to be set accordingly.
966e29db »
2009-11-27 Unify the version stamp in the version_*.h header files.
70 HOSTCC = @CC@
5d150c31 » caryr
2011-12-16 Update and localize HOST compile information.
71 HOSTCFLAGS = @WARNING_FLAGS@ @CFLAGS@
72
73 CC = @CC@
471d389c » steve
1999-04-25 autoconf the makefiles.
74 CXX = @CXX@
76c835a0 » caryr
2011-12-15 Update configure and Makefiles for cross compiling.
75 DLLTOOL = @DLLTOOL@
471d389c » steve
1999-04-25 autoconf the makefiles.
76 INSTALL = @INSTALL@
e6bd0889 » steve
2000-01-23 Compile time problems with vpi_user.h
77 INSTALL_SCRIPT = @INSTALL_SCRIPT@
471d389c » steve
1999-04-25 autoconf the makefiles.
78 INSTALL_PROGRAM = @INSTALL_PROGRAM@
79 INSTALL_DATA = @INSTALL_DATA@
357a0ff2 » steve
2001-12-30 Detect bison and flex in configure.in
80 LEX = @LEX@
81 YACC = @YACC@
b26bdd3c » caryr
2008-05-22 MinGW fixes (development)
82 MAN = @MAN@
83 PS2PDF = @PS2PDF@
84 GIT = @GIT@
471d389c » steve
1999-04-25 autoconf the makefiles.
85
be442145 » caryr
2010-10-09 Add cppcheck target to the Makefile
86 ifeq (@srcdir@,.)
ab8f623c »
2011-01-06 Add file/line information to entities and ports
87 INCLUDE_PATH = -I. -Ilibmisc
be442145 » caryr
2010-10-09 Add cppcheck target to the Makefile
88 else
7ce8a9b0 » caryr
2012-08-08 Fix some cppcheck warnings in the main directory
89 INCLUDE_PATH = -I. -I$(srcdir) -I$(srcdir)/libmisc
be442145 » caryr
2010-10-09 Add cppcheck target to the Makefile
90 endif
91
92 CPPFLAGS = @DEFS@ $(INCLUDE_PATH) @CPPFLAGS@
bb5ca97f » caryr
2010-11-01 Fix some -Wextra warnings and some other bug fixes/enhancements.
93 CFLAGS = @WARNING_FLAGS@ @CFLAGS@
94 CXXFLAGS = @WARNING_FLAGS@ @WARNING_FLAGS_CXX@ @CXXFLAGS@
3154f078 » steve
2001-07-11 compile libvpi.a with PIC flags (Dan McMahill)
95 PICFLAGS = @PICFLAG@
8188c4c6 » steve
2004-02-10 Makefile cleanup.
96 LDFLAGS = @rdynamic@ @LDFLAGS@
9b3d2023 » wackston
2012-06-04 Extend VPI and build to for SIMetrix cosimulation
97 CTARGETFLAGS = @CTARGETFLAGS@
471d389c » steve
1999-04-25 autoconf the makefiles.
98
ab8f623c »
2011-01-06 Add file/line information to entities and ports
99 # Source files in the libmisc directory
100 M = LineInfo.o StringHeap.o
101
be442145 » caryr
2010-10-09 Add cppcheck target to the Makefile
102 TT = t-dll.o t-dll-api.o t-dll-expr.o t-dll-proc.o t-dll-analog.o
103 FF = cprop.o nodangle.o synth.o synth2.o syn-rules.o
104
105 O = main.o async.o design_dump.o discipline.o dup_expr.o elaborate.o \
b89ab1f2 » martinwhitaker
2010-12-05 Cleanup after parameter expression rework.
106 elab_expr.o elaborate_analog.o elab_lval.o elab_net.o \
be442145 » caryr
2010-10-09 Add cppcheck target to the Makefile
107 elab_scope.o elab_sig.o elab_sig_analog.o emit.o eval.o eval_attrib.o \
108 eval_tree.o expr_synth.o functor.o lexor.o lexor_keyword.o link_const.o \
78b0b49a »
2012-03-25 Support struct members that are packed arrays.
109 load_module.o netlist.o netmisc.o nettypes.o net_analog.o net_assign.o \
14f229de »
2012-07-13 Parse support for dynamic arrays.
110 net_design.o netdarray.o \
def9d0ea »
2012-05-29 Basic infrastructure for compile-time function evaluation.
111 netenum.o netstruct.o net_event.o net_expr.o net_func.o net_func_eval.o \
112 net_link.o net_modulo.o \
5b5a6b05 »
2010-11-02 Test type correctness during elaboration.
113 net_nex_input.o net_nex_output.o net_proc.o net_scope.o net_tran.o \
114 net_udp.o pad_to_width.o parse.o parse_misc.o pform.o pform_analog.o \
d48362b8 »
2012-06-17 First pass at getting strings to work.
115 pform_disciplines.o pform_dump.o pform_pclass.o pform_string_type.o \
116 pform_struct_type.o pform_types.o \
be442145 » caryr
2010-10-09 Add cppcheck target to the Makefile
117 symbol_search.o sync.o sys_funcs.o verinum.o verireal.o target.o \
b0d61813 »
2012-03-11 Get the scope of class methods right
118 Attrib.o HName.o Module.o PClass.o PDelays.o PEvent.o PExpr.o PGate.o \
be442145 » caryr
2010-10-09 Add cppcheck target to the Makefile
119 PGenerate.o PScope.o PSpec.o PTask.o PUdp.o PFunction.o PWire.o \
ab8f623c »
2011-01-06 Add file/line information to entities and ports
120 Statement.o AStatement.o $M $(FF) $(TT)
be442145 » caryr
2010-10-09 Add cppcheck target to the Makefile
121
2e60a181 »
2009-11-28 Make all should build the iverilog-vpi.man file.
122 all: dep config.h _pli_types.h version_tag.h ivl@EXEEXT@ version.exe iverilog-vpi.man
d098db0a » jaredcasper
2009-10-16 Base Makefile improvements.
123 $(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@ && ) true
471d389c » steve
1999-04-25 autoconf the makefiles.
124
176e6d09 » steve
2001-08-03 Add install of examples for Windows.
125 # In the windows world, the installer will need a dosify program to
126 # dosify text files.
b26bdd3c » caryr
2008-05-22 MinGW fixes (development)
127 ifeq (@MINGW32@,yes)
be442145 » caryr
2010-10-09 Add cppcheck target to the Makefile
128 all: dosify.exe
8abe0d7d » caryr
2009-11-28 Make MinGW compile using a remote build directory.
129 dosify.exe: $(srcdir)/dosify.c
5d150c31 » caryr
2011-12-16 Update and localize HOST compile information.
130 $(HOSTCC) $(HOSTCFLAGS) -o dosify.exe $(srcdir)/dosify.c
176e6d09 » steve
2001-08-03 Add install of examples for Windows.
131 endif
132
431228e8 » steve
2000-10-28 make check target (PR#3)
133 # This rule rules the compiler in the trivial hello.vl program to make
134 # sure the basics were compiled properly.
135 check: all
d098db0a » jaredcasper
2009-10-16 Base Makefile improvements.
136 $(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@ && ) true
0a630b60 » steve
2004-09-18 Fix make check for pristine sources.
137 test -r check.conf || cp $(srcdir)/check.conf .
19e8a927 » steve
2003-12-12 Fix make check to support -tconf configuration method.
138 driver/iverilog -B. -BPivlpp -tcheck -ocheck.vvp $(srcdir)/examples/hello.vl
0f0cadd0 » caryr
2009-12-22 Add suffix support for windows (both MinGW and Cygwin).
139 ifeq (@WIN32@,yes)
140 ifeq (@install_suffix@,)
54206ef9 » steve
2003-01-18 Make sure to use local system.vpi.
141 vvp/vvp -M- -M./vpi ./check.vvp | grep 'Hello, World'
0f0cadd0 » caryr
2009-12-22 Add suffix support for windows (both MinGW and Cygwin).
142 else
143 # On Windows if we have a suffix we must run the vvp part of
144 # the test with a suffix since it was built/linked that way.
145 ln vvp/vvp.exe vvp/vvp$(suffix).exe
146 vvp/vvp$(suffix) -M- -M./vpi ./check.vvp | grep 'Hello, World'
147 rm vvp/vvp$(suffix).exe
148 endif
149 else
150 vvp/vvp -M- -M./vpi ./check.vvp | grep 'Hello, World'
151 endif
431228e8 » steve
2000-10-28 make check target (PR#3)
152
471d389c » steve
1999-04-25 autoconf the makefiles.
153 clean:
d098db0a » jaredcasper
2009-10-16 Base Makefile improvements.
154 $(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@ && ) true
cf2f99ec » caryr
2009-10-28 Cleanup Makefile clean targets.
155 rm -f *.o parse.cc parse.h lexor.cc
9c99bce0 » caryr
2012-01-04 Update lex/yacc builds to be consistent and to support parallel builds
156 rm -f ivl.exp iverilog-vpi.man iverilog-vpi.pdf iverilog-vpi.ps
157 rm -f parse.output syn-rules.output dosify.exe ivl@EXEEXT@ check.vvp
cf2f99ec » caryr
2009-10-28 Cleanup Makefile clean targets.
158 rm -f lexor_keyword.cc libivl.a libvpi.a iverilog-vpi syn-rules.cc
3fd80b09 » steve
2007-02-06 Administrative/Makefile fixes, mostly for windows. (Cary R.)
159 rm -rf dep
05a3929b » caryr
2009-12-10 Remove version.exe with a -f to avoid a warning.
160 rm -f version.exe
471d389c » steve
1999-04-25 autoconf the makefiles.
161
8bad04a0 » steve
1999-10-23 cannonical make targets, and strip on install.
162 distclean: clean
d098db0a » jaredcasper
2009-10-16 Base Makefile improvements.
163 $(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@ && ) true
c167b3a0 » jaredcasper
2009-10-21 Still more build system cleanup.
164 $(foreach dir,$(NOTUSED),$(MAKE) -C $(dir) $@ && ) true
165 rm -f Makefile config.status config.log config.cache
166 rm -f stamp-config-h config.h
167 rm -f stamp-_pli_types-h _pli_types.h
6909737b » caryr
2009-11-28 Some more generic fixes for building in a remote directory
168 ifneq (@srcdir@,.)
cb3eb495 » caryr
2011-03-16 Remove the last version.h references
169 rm -f version_tag.h check.conf
6909737b » caryr
2009-11-28 Some more generic fixes for building in a remote directory
170 rmdir $(SUBDIRS) $(NOTUSED)
171 endif
cf2f99ec » caryr
2009-10-28 Cleanup Makefile clean targets.
172 rm -rf autom4te.cache
8bad04a0 » steve
1999-10-23 cannonical make targets, and strip on install.
173
be442145 » caryr
2010-10-09 Add cppcheck target to the Makefile
174 cppcheck: $(O:.o=.cc) $(srcdir)/dosify.c $(srcdir)/version.c
912f82b5 » caryr
2010-10-26 Add suppression for some cppheck problems.
175 cppcheck --enable=all -f --suppressions $(srcdir)/cppcheck.sup \
176 $(INCLUDE_PATH) $^
471d389c » steve
1999-04-25 autoconf the makefiles.
177
be442145 » caryr
2010-10-09 Add cppcheck target to the Makefile
178 cppcheck-all:
179 $(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) cppcheck && ) true
180 $(foreach dir,$(NOTUSED),$(MAKE) -C $(dir) cppcheck && ) true
225ca1e2 » caryr
2010-10-23 Change iterators to use prefix ++ since it is more efficient.
181 $(MAKE) cppcheck
471d389c » steve
1999-04-25 autoconf the makefiles.
182
f1e2f373 » caryr
2008-12-12 Fix MinGW make distclean and add <file>.in dependencies.
183 Makefile: $(srcdir)/Makefile.in config.status
184 ./config.status --file=$@
185
be442145 » caryr
2010-10-09 Add cppcheck target to the Makefile
186 dep:
187 mkdir dep
188
7ead2aa8 » jaredcasper
2009-10-19 More build system tweaks, fixing pr2881797.
189 stamp-config-h: $(srcdir)/config.h.in config.status
190 @rm -f $@
191 ./config.status config.h
192 config.h: stamp-config-h
f1e2f373 » caryr
2008-12-12 Fix MinGW make distclean and add <file>.in dependencies.
193
7ead2aa8 » jaredcasper
2009-10-19 More build system tweaks, fixing pr2881797.
194 stamp-_pli_types-h: $(srcdir)/_pli_types.h.in config.status
195 @rm -f $@
196 ./config.status _pli_types.h
197 _pli_types.h: stamp-_pli_types-h
471d389c » steve
1999-04-25 autoconf the makefiles.
198
c167b3a0 » jaredcasper
2009-10-21 Still more build system cleanup.
199 $(srcdir)/configure: $(srcdir)/configure.in $(srcdir)/aclocal.m4
d098db0a » jaredcasper
2009-10-16 Base Makefile improvements.
200 cd $(srcdir) && autoconf
201
202 config.status: $(srcdir)/configure
203 ./config.status --recheck
7ead2aa8 » jaredcasper
2009-10-19 More build system tweaks, fixing pr2881797.
204 ./config.status
b62f0948 » steve
1999-08-17 Add the verilog.sh script.
205
de8c7258 » steve
2001-05-20 Mingw32 support (Venkat Iyer)
206 ifeq (@WIN32@,yes)
3e4eb17b » steve
2001-10-19 Another go at getting link of ivl.exe right.
207 # Under Windows (mingw) I need to make the ivl.exe in two steps.
208 # The first step makes an ivl.exe that dlltool can use to make an
209 # export and import library, and the last link makes a, ivl.exe
210 # that really exports the things that the import library imports.
6bf7e886 » caryr
2011-01-24 Fix build of ivl with files in libmisc and vhdlpp check issues.
211 ivl@EXEEXT@: $O $(srcdir)/ivl.def
e4ae8321 » steve
2004-10-04 Clean up spurious trailing white space.
212 $(CXX) -o ivl@EXEEXT@ $O $(dllib) @EXTRALIBS@
76c835a0 » caryr
2011-12-15 Update configure and Makefiles for cross compiling.
213 $(DLLTOOL) --dllname ivl@EXEEXT@ --def $(srcdir)/ivl.def \
90ae4647 » steve
2000-10-15 Makefile patches to support target loading under cygwin.
214 --output-lib libivl.a --output-exp ivl.exp
3fd80b09 » steve
2007-02-06 Administrative/Makefile fixes, mostly for windows. (Cary R.)
215 $(CXX) $(LDFLAGS) -o ivl@EXEEXT@ ivl.exp $O $(dllib) @EXTRALIBS@
90ae4647 » steve
2000-10-15 Makefile patches to support target loading under cygwin.
216 else
b34a451c » steve
2000-09-30 Cygwin port changes from Venkat
217 ivl@EXEEXT@: $O
8188c4c6 » steve
2004-02-10 Makefile cleanup.
218 $(CXX) $(LDFLAGS) -o ivl@EXEEXT@ $O $(dllib)
a0ed5e9e » steve
2004-03-09 Separate out the lookup_sys_func table, for eventual
219 endif
c0d51dd2 » steve
2000-04-21 Add the iverilog driver program.
220
145133bd » caryr
2009-11-30 Minor rework of how driver-vpi is supported.
221 ifeq (@MINGW32@,no)
be442145 » caryr
2010-10-09 Add cppcheck target to the Makefile
222 all: iverilog-vpi
9e223b96 » steve
2004-03-11 Clean up rules for iverilog-vpi vs driver-vpi.
223
6909737b » caryr
2009-11-28 Some more generic fixes for building in a remote directory
224 iverilog-vpi: $(srcdir)/iverilog-vpi.sh Makefile
dddaa0eb » steve
2002-07-03 More configure information in iverilog-vpi.
225 sed -e 's;@SHARED@;@shared@;' -e 's;@PIC@;@PICFLAG@;' \
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
226 -e 's;@SUFFIX@;$(suffix);' \
3fd80b09 » steve
2007-02-06 Administrative/Makefile fixes, mostly for windows. (Cary R.)
227 -e 's;@IVCC@;$(CC);' \
228 -e 's;@IVCXX@;$(CXX);' \
bb5ca97f » caryr
2010-11-01 Fix some -Wextra warnings and some other bug fixes/enhancements.
229 -e 's;@IVCFLAGS@;$(CFLAGS);' \
230 -e 's;@IVCXXFLAGS@;$(CXXFLAGS);' \
9b3d2023 » wackston
2012-06-04 Extend VPI and build to for SIMetrix cosimulation
231 -e 's;@IVCTARGETFLAGS@;$(CTARGETFLAGS);' \
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
232 -e 's;@INCLUDEDIR@;$(includedir);' \
bb878596 » steve
2003-10-13 Support 32bit compile on AMD64 systems.
233 -e 's;@LIBDIR@;@libdir@;' $< > $@
1893e7c8 » steve
2002-04-07 Add the iverilog-vpi command.
234 chmod +x $@
235 endif
236
966e29db »
2009-11-27 Unify the version stamp in the version_*.h header files.
237 version.exe: $(srcdir)/version.c $(srcdir)/version_base.h version_tag.h
5d150c31 » caryr
2011-12-16 Update and localize HOST compile information.
238 $(HOSTCC) $(HOSTCFLAGS) -o version.exe -I. -I$(srcdir) $(srcdir)/version.c
966e29db »
2009-11-27 Unify the version stamp in the version_*.h header files.
239
26ab32ac »
2009-12-04 Add explicit dependencies on generated header files.
240 %.o: %.cc config.h
2aa627d8 » caryr
2010-05-12 Update all Makefile.in files to support OpenSolaris
241 $(CXX) $(CPPFLAGS) $(CXXFLAGS) @DEPENDENCY_FLAG@ -c $< -o $*.o
471d389c » steve
1999-04-25 autoconf the makefiles.
242 mv $*.d dep/$*.d
4313fbbf » caryr
2012-08-16 Fix space errors in various files
243
26ab32ac »
2009-12-04 Add explicit dependencies on generated header files.
244 # Here are some explicit dependencies needed to get things going.
245 main.o: main.cc version_tag.h
471d389c » steve
1999-04-25 autoconf the makefiles.
246
ff53b60c » steve
2000-12-02 Remove excess *.d dependencies for parse.d
247 lexor.o: lexor.cc parse.h
471d389c » steve
1999-04-25 autoconf the makefiles.
248
ff53b60c » steve
2000-12-02 Remove excess *.d dependencies for parse.d
249 parse.o: parse.cc
430d7b22 » steve
1999-06-15 Add lexical support for real numbers.
250
9c99bce0 » caryr
2012-01-04 Update lex/yacc builds to be consistent and to support parallel builds
251 # Build this in two steps to avoid parallel build issues (see pr3462585)
252 parse.cc: $(srcdir)/parse.y
253 $(YACC) --verbose -t -p VL -d -o $@ $<
254 parse.h: parse.cc
255 mv parse.cc.h $@ 2>/dev/null || mv parse.hh $@
471d389c » steve
1999-04-25 autoconf the makefiles.
256
3c9902d9 » steve
2000-05-13 Use yacc based synthesizer.
257 syn-rules.cc: $(srcdir)/syn-rules.y
9c99bce0 » caryr
2012-01-04 Update lex/yacc builds to be consistent and to support parallel builds
258 $(YACC) --verbose -t -p syn_ -o $@ $<
3c9902d9 » steve
2000-05-13 Use yacc based synthesizer.
259
59e85dcf » steve
1999-10-22 Support build in different directory.
260 lexor.cc: $(srcdir)/lexor.lex
9c99bce0 » caryr
2012-01-04 Update lex/yacc builds to be consistent and to support parallel builds
261 $(LEX) -s -t $< > $@
471d389c » steve
1999-04-25 autoconf the makefiles.
262
fd95cffa » steve
2003-03-13 remember to uninstall _pli_types.h
263 lexor_keyword.o: lexor_keyword.cc parse.h
6eef5459 » steve
2000-03-12 Support localparam.
264
6909737b » caryr
2009-11-28 Some more generic fixes for building in a remote directory
265 lexor_keyword.cc: $(srcdir)/lexor_keyword.gperf
fad5e362 »
2010-02-05 Add yet more key characters to the gperf command.
266 gperf -o -i 7 -C -k 1-4,6,9,$$ -L ANSI-C -H keyword_hash -N check_identifier -t $(srcdir)/lexor_keyword.gperf > lexor_keyword.cc || (rm -f lexor_keyword.cc ; false)
6eef5459 » steve
2000-03-12 Support localparam.
267
966e29db »
2009-11-27 Unify the version stamp in the version_*.h header files.
268 iverilog-vpi.man: $(srcdir)/iverilog-vpi.man.in version.exe
269 ./version.exe `head -1 $(srcdir)/iverilog-vpi.man.in`'\n' > $@
a720b230 »
2009-12-04 More portable use of tail.
270 tail -n +2 $(srcdir)/iverilog-vpi.man.in >> $@
966e29db »
2009-11-27 Unify the version stamp in the version_*.h header files.
271
272 iverilog-vpi.ps: iverilog-vpi.man
ec49f10e »
2010-10-02 Revert bad merge from vhdl branch
273 $(MAN) -t ./iverilog-vpi.man > iverilog-vpi.ps
c594dcec » steve
2002-05-28 Add new iverilog-vpi man page.
274
275 iverilog-vpi.pdf: iverilog-vpi.ps
b26bdd3c » caryr
2008-05-22 MinGW fixes (development)
276 $(PS2PDF) iverilog-vpi.ps iverilog-vpi.pdf
c594dcec » steve
2002-05-28 Add new iverilog-vpi man page.
277
bfb33230 » J Varshney
2008-04-10 Revise handling of version.h to avoid build problems.
278 # For VERSION_TAG in driver/main.c, first try git-describe, then look for a
cb3eb495 » caryr
2011-03-16 Remove the last version.h references
279 # version_tag.h file in the source tree (included in snapshots and releases),
280 # and finally use nothing.
90a4ddeb »
2009-01-05 Keep source code version information in version files.
281
d74f2fe3 » ldoolitt
2008-05-29 Don't duplicate Makefile shell code
282 # "true" and "false" in the next few lines are Unix shell command names
b26bdd3c » caryr
2008-05-22 MinGW fixes (development)
283 ifeq ($(GIT),none)
d74f2fe3 » ldoolitt
2008-05-29 Don't duplicate Makefile shell code
284 GIT_PRESENT = false
b26bdd3c » caryr
2008-05-22 MinGW fixes (development)
285 else
d74f2fe3 » ldoolitt
2008-05-29 Don't duplicate Makefile shell code
286 GIT_PRESENT = true
287 endif
90a4ddeb »
2009-01-05 Keep source code version information in version files.
288 version_tag.h version:
d74f2fe3 » ldoolitt
2008-05-29 Don't duplicate Makefile shell code
289 @if $(GIT_PRESENT) && test -d $(srcdir)/.git; then \
bfb33230 » J Varshney
2008-04-10 Revise handling of version.h to avoid build problems.
290 echo "Using git-describe for VERSION_TAG"; \
57587989 »
2011-11-19 Improve version tag from git.
291 tmp=`$(GIT) --git-dir $(srcdir)/.git describe --always --dirty \
844447b9 »
2008-04-17 More reliably handle make install from read-only directory
292 | sed -e 's;\(.*\);#define VERSION_TAG "\1";'`; \
90a4ddeb »
2009-01-05 Keep source code version information in version files.
293 echo "$$tmp" | diff - version_tag.h > /dev/null 2>&1 || echo "$$tmp" > version_tag.h || exit 1; \
294 elif test -r $(srcdir)/version_tag.h; then \
295 echo "Using $(srcdir)/version_tag.h for VERSION_TAG"; \
296 diff $(srcdir)/version_tag.h version_tag.h > /dev/null 2>&1 || cp $(srcdir)/version_tag.h version_tag.h; \
bfb33230 » J Varshney
2008-04-10 Revise handling of version.h to avoid build problems.
297 else \
298 echo "Using empty VERSION_TAG"; \
90a4ddeb »
2009-01-05 Keep source code version information in version files.
299 echo '#define VERSION_TAG ""' > version_tag.h; \
bfb33230 » J Varshney
2008-04-10 Revise handling of version.h to avoid build problems.
300 fi
ad3a73f7 » J Varshney
2008-04-05 Append last git tag and abbreviated commit-id to version string.
301
b26bdd3c » caryr
2008-05-22 MinGW fixes (development)
302 ifeq (@MINGW32@,yes)
303 ifeq ($(MAN),none)
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
304 INSTALL_DOC = $(mandir)/man1/iverilog-vpi$(suffix).1
b26bdd3c » caryr
2008-05-22 MinGW fixes (development)
305 else
306 ifeq ($(PS2PDF),none)
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
307 INSTALL_DOC = $(mandir)/man1/iverilog-vpi$(suffix).1
b26bdd3c » caryr
2008-05-22 MinGW fixes (development)
308 else
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
309 INSTALL_DOC = $(prefix)/iverilog-vpi$(suffix).pdf $(mandir)/man1/iverilog-vpi$(suffix).1
feee4060 » steve
2003-02-27 Makefile cleanups to better support concurrent make.
310 all: dep iverilog-vpi.pdf
b26bdd3c » caryr
2008-05-22 MinGW fixes (development)
311 endif
312 endif
313 INSTALL_DOCDIR = $(mandir)/man1
c594dcec » steve
2002-05-28 Add new iverilog-vpi man page.
314 else
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
315 INSTALL_DOC = $(mandir)/man1/iverilog-vpi$(suffix).1
c594dcec » steve
2002-05-28 Add new iverilog-vpi man page.
316 INSTALL_DOCDIR = $(mandir)/man1
317 endif
318
ec0e35b9 » steve
2004-03-17 Treat cygwin like Unix for build purposes.
319 ifeq (@MINGW32@,yes)
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
320 WIN32_INSTALL =
1893e7c8 » steve
2002-04-07 Add the iverilog-vpi command.
321 else
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
322 WIN32_INSTALL = $(bindir)/iverilog-vpi$(suffix)
176e6d09 » steve
2001-08-03 Add install of examples for Windows.
323 endif
6eef5459 » steve
2000-03-12 Support localparam.
324
6a0cbc5f »
2010-10-07 VPI access to atom2 types.
325 install: all installdirs $(libdir)/ivl$(suffix)/ivl@EXEEXT@ $(libdir)/ivl$(suffix)/include/constants.vams $(libdir)/ivl$(suffix)/include/disciplines.vams $(includedir)/ivl_target.h $(includedir)/_pli_types.h $(includedir)/sv_vpi_user.h $(includedir)/vpi_user.h $(includedir)/acc_user.h $(includedir)/veriuser.h $(WIN32_INSTALL) $(INSTALL_DOC)
d098db0a » jaredcasper
2009-10-16 Base Makefile improvements.
326 $(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@ && ) true
c0d51dd2 » steve
2000-04-21 Add the iverilog driver program.
327
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
328 $(bindir)/iverilog-vpi$(suffix): ./iverilog-vpi
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
329 $(INSTALL_SCRIPT) ./iverilog-vpi "$(DESTDIR)$(bindir)/iverilog-vpi$(suffix)"
1893e7c8 » steve
2002-04-07 Add the iverilog-vpi command.
330
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
331 $(libdir)/ivl$(suffix)/ivl@EXEEXT@: ./ivl@EXEEXT@
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
332 $(INSTALL_PROGRAM) ./ivl@EXEEXT@ "$(DESTDIR)$(libdir)/ivl$(suffix)/ivl@EXEEXT@"
471d389c » steve
1999-04-25 autoconf the makefiles.
333
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
334 $(libdir)/ivl$(suffix)/include/constants.vams: $(srcdir)/constants.vams
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
335 $(INSTALL_DATA) $(srcdir)/constants.vams "$(DESTDIR)$(libdir)/ivl$(suffix)/include/constants.vams"
f5263c94 »
2008-04-29 Add the va_math module and constants.vams include file.
336
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
337 $(libdir)/ivl$(suffix)/include/disciplines.vams: $(srcdir)/disciplines.vams
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
338 $(INSTALL_DATA) $(srcdir)/disciplines.vams "$(DESTDIR)$(libdir)/ivl$(suffix)/include/disciplines.vams"
cde87ed4 »
2008-05-10 Add disciplines.vams and enough syntax to parse it.
339
d0fc6d51 » steve
2000-08-20 Add ivl_target support for logic gates, and
340 $(includedir)/ivl_target.h: $(srcdir)/ivl_target.h
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
341 $(INSTALL_DATA) $(srcdir)/ivl_target.h "$(DESTDIR)$(includedir)/ivl_target.h"
d0fc6d51 » steve
2000-08-20 Add ivl_target support for logic gates, and
342
0b538cee » steve
2003-11-26 The _pli_types.h header file is generated, not copied from srcdir.
343 $(includedir)/_pli_types.h: _pli_types.h
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
344 $(INSTALL_DATA) $< "$(DESTDIR)$(includedir)/_pli_types.h"
d3de1d9c » steve
2003-02-17 Add at least minimal implementations for several
345
6a0cbc5f »
2010-10-07 VPI access to atom2 types.
346 $(includedir)/sv_vpi_user.h: $(srcdir)/sv_vpi_user.h
347 $(INSTALL_DATA) $(srcdir)/sv_vpi_user.h "$(DESTDIR)$(includedir)/sv_vpi_user.h"
348
32f38813 » steve
2001-03-14 Rearrange VPI support libraries.
349 $(includedir)/vpi_user.h: $(srcdir)/vpi_user.h
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
350 $(INSTALL_DATA) $(srcdir)/vpi_user.h "$(DESTDIR)$(includedir)/vpi_user.h"
32f38813 » steve
2001-03-14 Rearrange VPI support libraries.
351
6511fc61 » steve
2002-05-23 Add the acc_user.h header file.
352 $(includedir)/acc_user.h: $(srcdir)/acc_user.h
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
353 $(INSTALL_DATA) $(srcdir)/acc_user.h "$(DESTDIR)$(includedir)/acc_user.h"
6511fc61 » steve
2002-05-23 Add the acc_user.h header file.
354
ca9abaf0 » steve
2002-05-19 Start the libveriuser library.
355 $(includedir)/veriuser.h: $(srcdir)/veriuser.h
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
356 $(INSTALL_DATA) $(srcdir)/veriuser.h "$(DESTDIR)$(includedir)/veriuser.h"
ca9abaf0 » steve
2002-05-19 Start the libveriuser library.
357
966e29db »
2009-11-27 Unify the version stamp in the version_*.h header files.
358 $(mandir)/man1/iverilog-vpi$(suffix).1: iverilog-vpi.man
359 $(INSTALL_DATA) iverilog-vpi.man "$(DESTDIR)$(mandir)/man1/iverilog-vpi$(suffix).1"
176e6d09 » steve
2001-08-03 Add install of examples for Windows.
360
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
361 $(prefix)/iverilog-vpi$(suffix).pdf: iverilog-vpi.pdf
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
362 $(INSTALL_DATA) iverilog-vpi.pdf "$(DESTDIR)$(prefix)/iverilog-vpi$(suffix).pdf"
5c07a29e » steve
2002-11-11 Install sqrt-virtex.v under Windows.
363
176e6d09 » steve
2001-08-03 Add install of examples for Windows.
364
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
365 installdirs: $(srcdir)/mkinstalldirs
366 $(srcdir)/mkinstalldirs "$(DESTDIR)$(bindir)" \
367 "$(DESTDIR)$(includedir)" \
368 "$(DESTDIR)$(libdir)/ivl$(suffix)" \
369 "$(DESTDIR)$(libdir)/ivl$(suffix)/include" \
370 "$(DESTDIR)$(mandir)" \
371 "$(DESTDIR)$(mandir)/man1"
176e6d09 » steve
2001-08-03 Add install of examples for Windows.
372
471d389c » steve
1999-04-25 autoconf the makefiles.
373 uninstall:
d098db0a » jaredcasper
2009-10-16 Base Makefile improvements.
374 $(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@ && ) true
456fffa7 »
2008-09-02 Remove last vestiges of XNF.
375 for f in ivl@EXEEXT@ include/constants.vams include/disciplines.vams; \
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
376 do rm -f "$(DESTDIR)$(libdir)/ivl$(suffix)/$$f"; done
377 -rmdir "$(DESTDIR)$(libdir)/ivl$(suffix)/include"
378 -rmdir "$(DESTDIR)$(libdir)/ivl$(suffix)"
4bc90f7c »
2008-11-17 Create support for the --enable-suffix configuration option.
379 for f in verilog$(suffix) iverilog-vpi$(suffix) gverilog$(suffix)@EXEEXT@; \
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
380 do rm -f "$(DESTDIR)$(bindir)/$$f"; done
8df745a2 » caryr
2011-12-14 Remove SV include file and vhdlpp with make uninstall
381 for f in ivl_target.h vpi_user.h _pli_types.h sv_vpi_user.h acc_user.h veriuser.h; \
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
382 do rm -f "$(DESTDIR)$(includedir)/$$f"; done
69c5d6f5 » caryr
2012-08-13 Update uninstall include directory rule
383 -test X$(suffix) = X || rmdir "$(DESTDIR)$(includedir)"
99a5d4ca »
2009-02-04 Update mkinstalldirs to handle paths with spaces.
384 rm -f "$(DESTDIR)$(mandir)/man1/iverilog-vpi$(suffix).1" "$(DESTDIR)$(prefix)/iverilog-vpi$(suffix).pdf"
471d389c » steve
1999-04-25 autoconf the makefiles.
385
386
387 -include $(patsubst %.o, dep/%.d, $O)
Something went wrong with that request. Please try again.