11 # features (the more the better)
25 ifeq ($(ENABLE_PYOSYS
),1)
26 PYTHON_VERSION_TESTCODE
:= "import sys;t='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));print(t)"
27 PYTHON_EXECUTABLE
:= $(shell if python3
-c
""; then echo
"python3"; else echo
"python"; fi
)
28 PYTHON_VERSION
:= $(shell $(PYTHON_EXECUTABLE
) -c
""$(PYTHON_VERSION_TESTCODE
)"")
29 PYTHON_MAJOR_VERSION
:= $(shell echo
$(PYTHON_VERSION
) | cut
-f1
-d.
)
30 PYTHON_PREFIX
:= $(shell $(PYTHON_EXECUTABLE
)-config
--prefix)
31 PYTHON_DESTDIR
:= $(PYTHON_PREFIX
)/lib
/python
$(PYTHON_VERSION
)/site-packages
34 # other configuration flags
42 # Needed for environments that don't have proper thread support (i.e. emscripten)
43 DISABLE_ABC_THREADS
:= 0
49 # SANITIZER = undefined
53 OS
:= $(shell uname
-s
)
57 BINDIR
:= $(PREFIX
)/bin
58 LIBDIR
:= $(PREFIX
)/lib
59 DATDIR
:= $(PREFIX
)/share
/yosys
66 TARGETS
= yosys
$(EXE
) yosys-config
72 UNITESTPATH
:= tests
/unit
76 YOSYS_SRC
:= $(dir $(firstword $(MAKEFILE_LIST
)))
79 CXXFLAGS
:= $(CXXFLAGS
) -Wall
-Wextra
-ggdb
-I.
-I
"$(YOSYS_SRC)" -MD
-D_YOSYS_
-fPIC
-I
$(PREFIX
)/include
80 LDFLAGS
:= $(LDFLAGS
) -L
$(LIBDIR
)
81 LDLIBS
:= $(LDLIBS
) -lstdc
++ -lm
84 PKG_CONFIG ?
= pkg-config
91 PLUGIN_LDFLAGS
+= -undefined dynamic_lookup
93 # homebrew search paths
94 ifneq ($(shell which brew
),)
95 BREW_PREFIX
:= $(shell brew
--prefix)/opt
96 $(info $$BREW_PREFIX is
[${BREW_PREFIX}])
97 CXXFLAGS
+= -I
$(BREW_PREFIX
)/boost
/include/boost
98 LDFLAGS
+= -L
$(BREW_PREFIX
)/boost
/lib
99 CXXFLAGS
+= -I
$(BREW_PREFIX
)/readline
/include
100 LDFLAGS
+= -L
$(BREW_PREFIX
)/readline
/lib
101 PKG_CONFIG_PATH
:= $(BREW_PREFIX
)/libffi
/lib
/pkgconfig
:$(PKG_CONFIG_PATH
)
102 PKG_CONFIG_PATH
:= $(BREW_PREFIX
)/tcl-tk
/lib
/pkgconfig
:$(PKG_CONFIG_PATH
)
103 export PATH
:= $(BREW_PREFIX
)/bison
/bin
:$(BREW_PREFIX
)/gettext
/bin
:$(BREW_PREFIX
)/flex
/bin
:$(PATH
)
105 # macports search paths
106 else ifneq ($(shell which port
),)
107 PORT_PREFIX
:= $(patsubst %/bin
/port
,%,$(shell which port
))
108 CXXFLAGS
+= -I
$(PORT_PREFIX
)/include
109 LDFLAGS
+= -L
$(PORT_PREFIX
)/lib
110 PKG_CONFIG_PATH
:= $(PORT_PREFIX
)/lib
/pkgconfig
:$(PKG_CONFIG_PATH
)
111 export PATH
:= $(PORT_PREFIX
)/bin
:$(PATH
)
119 YOSYS_VER
:= 0.8+$(shell cd
$(YOSYS_SRC
) && test -e .git
&& { git log
--author
=clifford@clifford.at
--oneline
4d4665b..
2> /dev
/null | wc
-l
; })
120 GIT_REV
:= $(shell cd
$(YOSYS_SRC
) && git rev-parse
--short HEAD
2> /dev
/null || echo UNKNOWN
)
121 OBJS
= kernel
/version_
$(GIT_REV
).o
123 # set 'ABCREV = default' to use abc/ as it is
125 # Note: If you do ABC development, make sure that 'abc' in this directory
126 # is just a symlink to your actual ABC working directory, as 'make mrproper'
127 # will remove the 'abc' directory and you do not want to accidentally
128 # delete your work on ABC..
131 ABCURL ?
= https
://github.com
/berkeley-abc
/abc
132 ABCMKARGS
= CC
="$(CXX)" CXX
="$(CXX)" ABC_USE_LIBSTDCXX
=1
134 # set ABCEXTERNAL = <abc-command> to use an external ABC instance
135 # Note: The in-tree ABC (yosys-abc) will not be installed when ABCEXTERNAL is set.
143 ifneq ($(wildcard Makefile.conf
),)
144 $(info $(subst $$--$$,$(newline
),$(shell sed
's,^,[Makefile.conf] ,; s,$$,$$--$$,;' < Makefile.conf | tr
-d
'\n' | sed
's,\$$--\$$$$,,')))
145 include Makefile.conf
148 ifeq ($(CONFIG
),clang
)
151 CXXFLAGS
+= -std
=c
++11 -Os
152 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H"
154 ifneq ($(SANITIZER
),)
155 $(info [Clang Sanitizer
] $(SANITIZER
))
156 CXXFLAGS
+= -g
-O1
-fno-omit-frame-pointer
-fno-optimize-sibling-calls
-fsanitize
=$(SANITIZER
)
157 LDFLAGS
+= -g
-fsanitize
=$(SANITIZER
)
158 ifeq ($(SANITIZER
),address
)
161 ifeq ($(SANITIZER
),memory
)
162 CXXFLAGS
+= -fPIE
-fsanitize-memory-track-origins
163 LDFLAGS
+= -fPIE
-fsanitize-memory-track-origins
165 ifeq ($(SANITIZER
),cfi
)
171 else ifeq ($(CONFIG
),gcc
)
174 CXXFLAGS
+= -std
=c
++11 -Os
175 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H"
177 else ifeq ($(CONFIG
),gcc-static
)
179 LDFLAGS
:= $(filter-out -rdynamic
,$(LDFLAGS
)) -static
180 LDLIBS
:= $(filter-out -lrt
,$(LDLIBS
))
181 CXXFLAGS
:= $(filter-out -fPIC
,$(CXXFLAGS
))
182 CXXFLAGS
+= -std
=c
++11 -Os
183 ABCMKARGS
= CC
="$(CC)" CXX
="$(CXX)" LD
="$(LD)" ABC_USE_LIBSTDCXX
=1 LIBS
="-lm -lpthread -static" OPTFLAGS
="-O" \
184 ARCHFLAGS
="-DABC_USE_STDINT_H -DABC_NO_DYNAMIC_LINKING=1 -Wno-unused-but-set-variable $(ARCHFLAGS)" ABC_USE_NO_READLINE
=1
185 ifeq ($(DISABLE_ABC_THREADS
),1)
186 ABCMKARGS
+= "ABC_USE_NO_PTHREADS=1"
189 else ifeq ($(CONFIG
),gcc-4.8
)
192 CXXFLAGS
+= -std
=c
++11 -Os
193 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H"
195 else ifeq ($(CONFIG
),afl-gcc
)
196 CXX
= AFL_QUIET
=1 AFL_HARDEN
=1 afl-gcc
197 LD
= AFL_QUIET
=1 AFL_HARDEN
=1 afl-gcc
198 CXXFLAGS
+= -std
=c
++11 -Os
199 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H"
201 else ifeq ($(CONFIG
),cygwin
)
204 CXXFLAGS
+= -std
=gnu
++11 -Os
205 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H"
207 else ifeq ($(CONFIG
),emcc
)
210 CXXFLAGS
:= -std
=c
++11 $(filter-out -fPIC
-ggdb
,$(CXXFLAGS
))
211 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H -DABC_MEMALIGN=8"
212 EMCCFLAGS
:= -Os
-Wno-warn-absolute-paths
213 EMCCFLAGS
+= --memory-init-file
0 --embed-file share
-s NO_EXIT_RUNTIME
=1
214 EMCCFLAGS
+= -s EXPORTED_FUNCTIONS
="['_main','_run','_prompt','_errmsg']"
215 EMCCFLAGS
+= -s TOTAL_MEMORY
=128*1024*1024
216 # https://github.com/kripken/emscripten/blob/master/src/settings.js
217 CXXFLAGS
+= $(EMCCFLAGS
)
218 LDFLAGS
+= $(EMCCFLAGS
)
222 TARGETS
:= $(filter-out yosys-config
,$(TARGETS
))
223 EXTRA_TARGETS
+= yosysjs-
$(YOSYS_VER
).zip
225 ifeq ($(ENABLE_ABC
),1)
227 DISABLE_ABC_THREADS
:= 1
231 wget
-O viz.js.part https
://github.com
/mdaines
/viz.js
/releases
/download
/0.0.3/viz.js
232 mv viz.js.part viz.js
234 yosysjs-
$(YOSYS_VER
).zip
: yosys.js viz.js misc
/yosysjs
/*
235 rm -rf yosysjs-
$(YOSYS_VER
) yosysjs-
$(YOSYS_VER
).zip
236 mkdir
-p yosysjs-
$(YOSYS_VER
)
237 cp viz.js misc
/yosysjs
/* yosys.js yosysjs-
$(YOSYS_VER
)/
238 zip
-r yosysjs-
$(YOSYS_VER
).zip yosysjs-
$(YOSYS_VER
)
240 yosys.html
: misc
/yosys.html
241 $(P
) cp misc
/yosys.html yosys.html
243 else ifeq ($(CONFIG
),mxe
)
244 PKG_CONFIG
= /usr
/local
/src
/mxe
/usr
/bin
/i686-w64-mingw32.static-pkg-config
245 CXX
= /usr
/local
/src
/mxe
/usr
/bin
/i686-w64-mingw32.static-g
++
246 LD
= /usr
/local
/src
/mxe
/usr
/bin
/i686-w64-mingw32.static-g
++
247 CXXFLAGS
+= -std
=c
++11 -Os
-D_POSIX_SOURCE
-DYOSYS_MXE_HACKS
-Wno-attributes
248 CXXFLAGS
:= $(filter-out -fPIC
,$(CXXFLAGS
))
249 LDFLAGS
:= $(filter-out -rdynamic
,$(LDFLAGS
)) -s
250 LDLIBS
:= $(filter-out -lrt
,$(LDLIBS
))
251 ABCMKARGS
+= ARCHFLAGS
="-DWIN32_NO_DLL -DHAVE_STRUCT_TIMESPEC -fpermissive -w"
252 ABCMKARGS
+= LIBS
="lib/x86/pthreadVC2.lib -s" ABC_USE_NO_READLINE
=1 CC
="/usr/local/src/mxe/usr/bin/i686-w64-mingw32.static-gcc"
255 else ifeq ($(CONFIG
),msys2
)
256 CXX
= i686-w64-mingw32-g
++
257 LD
= i686-w64-mingw32-g
++
258 CXXFLAGS
+= -std
=c
++11 -Os
-D_POSIX_SOURCE
-DYOSYS_WIN32_UNIX_DIR
259 CXXFLAGS
:= $(filter-out -fPIC
,$(CXXFLAGS
))
260 LDFLAGS
:= $(filter-out -rdynamic
,$(LDFLAGS
)) -s
261 LDLIBS
:= $(filter-out -lrt
,$(LDLIBS
))
262 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H -DWIN32_NO_DLL -DHAVE_STRUCT_TIMESPEC -fpermissive -w"
263 ABCMKARGS
+= LIBS
="-lpthread -s" ABC_USE_NO_READLINE
=0 CC
="i686-w64-mingw32-gcc" CXX
="$(CXX)"
266 else ifeq ($(CONFIG
),msys2-64
)
267 CXX
= x86_64-w64-mingw32-g
++
268 LD
= x86_64-w64-mingw32-g
++
269 CXXFLAGS
+= -std
=c
++11 -Os
-D_POSIX_SOURCE
-DYOSYS_WIN32_UNIX_DIR
270 CXXFLAGS
:= $(filter-out -fPIC
,$(CXXFLAGS
))
271 LDFLAGS
:= $(filter-out -rdynamic
,$(LDFLAGS
)) -s
272 LDLIBS
:= $(filter-out -lrt
,$(LDLIBS
))
273 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H -DWIN32_NO_DLL -DHAVE_STRUCT_TIMESPEC -fpermissive -w"
274 ABCMKARGS
+= LIBS
="-lpthread -s" ABC_USE_NO_READLINE
=0 CC
="x86_64-w64-mingw32-gcc" CXX
="$(CXX)"
277 else ifneq ($(CONFIG
),none
)
278 $(error Invalid CONFIG setting
'$(CONFIG)'. Valid values
: clang
, gcc
, gcc-4.8
, emcc
, mxe
, msys2
, msys2-64
)
281 ifeq ($(ENABLE_LIBYOSYS
),1)
282 TARGETS
+= libyosys.so
285 ifeq ($(ENABLE_PYOSYS
),1)
287 #Detect name of boost_python library. Some distros usbe boost_python-py<version>, other boost_python<version>, some only use the major version number, some a concatenation of major and minor version numbers
289 BOOST_PYTHON_LIB ?
= $(shell \
290 if echo
"int main(int argc, char ** argv) {return 0;}" |
$(CXX
) -xc
-o
/dev
/null
$(shell $(PYTHON_EXECUTABLE
)-config
--ldflags) -lboost_python-py
$(subst .
,,$(PYTHON_VERSION
)) - > /dev
/null
2>&1; then echo
"-lboost_python-py$(subst .,,$(PYTHON_VERSION))"; else \
291 if echo
"int main(int argc, char ** argv) {return 0;}" |
$(CXX
) -xc
-o
/dev
/null
$(shell $(PYTHON_EXECUTABLE
)-config
--ldflags) -lboost_python-py
$(subst .
,,$(PYTHON_MAJOR_VERSION
)) - > /dev
/null
2>&1; then echo
"-lboost_python-py$(subst .,,$(PYTHON_MAJOR_VERSION))"; else \
292 if echo
"int main(int argc, char ** argv) {return 0;}" |
$(CXX
) -xc
-o
/dev
/null
$(shell $(PYTHON_EXECUTABLE
)-config
--ldflags) -lboost_python
$(subst .
,,$(PYTHON_VERSION
)) - > /dev
/null
2>&1; then echo
"-lboost_python$(subst .,,$(PYTHON_VERSION))"; else \
293 if echo
"int main(int argc, char ** argv) {return 0;}" |
$(CXX
) -xc
-o
/dev
/null
$(shell $(PYTHON_EXECUTABLE
)-config
--ldflags) -lboost_python
$(subst .
,,$(PYTHON_MAJOR_VERSION
)) - > /dev
/null
2>&1; then echo
"-lboost_python$(subst .,,$(PYTHON_MAJOR_VERSION))"; else \
294 echo
""; fi
; fi
; fi
; fi
;)
296 BOOST_PYTHON_LIB ?
= $(shell \
297 if echo
"int main(int argc, char ** argv) {return 0;}" |
$(CXX
) -xc
-o
/dev
/null
`$(PYTHON_EXECUTABLE)-config --libs` -lboost_python-py
$(subst .
,,$(PYTHON_VERSION
)) - > /dev
/null
2>&1; then echo
"-lboost_python-py$(subst .,,$(PYTHON_VERSION))"; else \
298 if echo
"int main(int argc, char ** argv) {return 0;}" |
$(CXX
) -xc
-o
/dev
/null
`$(PYTHON_EXECUTABLE)-config --libs` -lboost_python-py
$(subst .
,,$(PYTHON_MAJOR_VERSION
)) - > /dev
/null
2>&1; then echo
"-lboost_python-py$(subst .,,$(PYTHON_MAJOR_VERSION))"; else \
299 if echo
"int main(int argc, char ** argv) {return 0;}" |
$(CXX
) -xc
-o
/dev
/null
`$(PYTHON_EXECUTABLE)-config --libs` -lboost_python
$(subst .
,,$(PYTHON_VERSION
)) - > /dev
/null
2>&1; then echo
"-lboost_python$(subst .,,$(PYTHON_VERSION))"; else \
300 if echo
"int main(int argc, char ** argv) {return 0;}" |
$(CXX
) -xc
-o
/dev
/null
`$(PYTHON_EXECUTABLE)-config --libs` -lboost_python
$(subst .
,,$(PYTHON_MAJOR_VERSION
)) - > /dev
/null
2>&1; then echo
"-lboost_python$(subst .,,$(PYTHON_MAJOR_VERSION))"; else \
301 echo
""; fi
; fi
; fi
; fi
;)
304 ifeq ($(BOOST_PYTHON_LIB
),)
305 $(error BOOST_PYTHON_LIB could not be detected. Please
define manualy
)
309 ifeq ($(PYTHON_MAJOR_VERSION
),3)
310 LDLIBS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--ldflags) $(BOOST_PYTHON_LIB
) -lboost_system
-lboost_filesystem
311 CXXFLAGS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--includes
) -DWITH_PYTHON
313 LDLIBS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--ldflags) $(BOOST_PYTHON_LIB
) -lboost_system
-lboost_filesystem
314 CXXFLAGS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--includes
) -DWITH_PYTHON
317 ifeq ($(PYTHON_MAJOR_VERSION
),3)
318 LDLIBS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--libs
) $(BOOST_PYTHON_LIB
) -lboost_system
-lboost_filesystem
319 CXXFLAGS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--includes
) -DWITH_PYTHON
321 LDLIBS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--libs
) $(BOOST_PYTHON_LIB
) -lboost_system
-lboost_filesystem
322 CXXFLAGS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--includes
) -DWITH_PYTHON
326 ifeq ($(ENABLE_PYOSYS
),1)
327 PY_WRAPPER_FILE
= kernel
/python_wrappers
328 OBJS
+= $(PY_WRAPPER_FILE
).o
329 PY_GEN_SCRIPT
= py_wrap_generator
330 PY_WRAP_INCLUDES
:= $(shell python
$(PYTHON_VERSION
) -c
"from misc import $(PY_GEN_SCRIPT); $(PY_GEN_SCRIPT).print_includes()")
334 ifeq ($(ENABLE_READLINE
),1)
335 CXXFLAGS
+= -DYOSYS_ENABLE_READLINE
336 ifeq ($(OS
), FreeBSD
)
337 CXXFLAGS
+= -I
/usr
/local
/include
340 ifeq ($(LINK_CURSES
),1)
342 ABCMKARGS
+= "ABC_READLINE_LIBRARIES=-lcurses -lreadline"
344 ifeq ($(LINK_TERMCAP
),1)
346 ABCMKARGS
+= "ABC_READLINE_LIBRARIES=-lreadline -ltermcap"
352 ifeq ($(ENABLE_EDITLINE
),1)
353 CXXFLAGS
+= -DYOSYS_ENABLE_EDITLINE
354 LDLIBS
+= -ledit
-ltinfo
-lbsd
356 ABCMKARGS
+= "ABC_USE_NO_READLINE=1"
360 ifeq ($(DISABLE_ABC_THREADS
),1)
361 ABCMKARGS
+= "ABC_USE_NO_PTHREADS=1"
364 ifeq ($(ENABLE_PLUGINS
),1)
365 CXXFLAGS
+= $(shell PKG_CONFIG_PATH
=$(PKG_CONFIG_PATH
) $(PKG_CONFIG
) --silence-errors
--cflags libffi
) -DYOSYS_ENABLE_PLUGINS
366 LDLIBS
+= $(shell PKG_CONFIG_PATH
=$(PKG_CONFIG_PATH
) $(PKG_CONFIG
) --silence-errors
--libs libffi || echo
-lffi
)
367 ifneq ($(OS
), FreeBSD
)
372 ifeq ($(ENABLE_GLOB
),1)
373 CXXFLAGS
+= -DYOSYS_ENABLE_GLOB
376 ifeq ($(ENABLE_TCL
),1)
377 TCL_VERSION ?
= tcl
$(shell bash
-c
"tclsh <(echo 'puts [info tclversion]')")
378 ifeq ($(OS
), FreeBSD
)
379 TCL_INCLUDE ?
= /usr
/local
/include/$(TCL_VERSION
)
381 TCL_INCLUDE ?
= /usr
/include/$(TCL_VERSION
)
385 CXXFLAGS
+= -DYOSYS_ENABLE_TCL
386 LDLIBS
+= -ltcl86
-lwsock32
-lws2_32
-lnetapi32
-lz
388 CXXFLAGS
+= $(shell PKG_CONFIG_PATH
=$(PKG_CONFIG_PATH
) $(PKG_CONFIG
) --silence-errors
--cflags tcl || echo
-I
$(TCL_INCLUDE
)) -DYOSYS_ENABLE_TCL
389 ifeq ($(OS
), FreeBSD
)
390 # FreeBSD uses tcl8.6, but lib is named "libtcl86"
391 LDLIBS
+= $(shell PKG_CONFIG_PATH
=$(PKG_CONFIG_PATH
) $(PKG_CONFIG
) --silence-errors
--libs tcl || echo
-l
$(TCL_VERSION
) | tr
-d
'.')
393 LDLIBS
+= $(shell PKG_CONFIG_PATH
=$(PKG_CONFIG_PATH
) $(PKG_CONFIG
) --silence-errors
--libs tcl || echo
-l
$(TCL_VERSION
))
398 ifeq ($(ENABLE_GCOV
),1)
399 CXXFLAGS
+= --coverage
400 LDFLAGS
+= --coverage
403 ifeq ($(ENABLE_GPROF
),1)
408 ifeq ($(ENABLE_NDEBUG
),1)
409 CXXFLAGS
:= -O3
-DNDEBUG
$(filter-out -Os
-ggdb
,$(CXXFLAGS
))
412 ifeq ($(ENABLE_DEBUG
),1)
413 ifeq ($(CONFIG
),clang
)
414 CXXFLAGS
:= -O0
-DDEBUG
$(filter-out -Os
,$(CXXFLAGS
))
416 CXXFLAGS
:= -Og
-DDEBUG
$(filter-out -Os
,$(CXXFLAGS
))
420 ifeq ($(ENABLE_ABC
),1)
421 CXXFLAGS
+= -DYOSYS_ENABLE_ABC
423 CXXFLAGS
+= -DYOSYS_LINK_ABC
424 ifeq ($(DISABLE_ABC_THREADS
),0)
428 ifeq ($(ABCEXTERNAL
),)
429 TARGETS
+= yosys-abc
$(EXE
)
434 ifeq ($(ENABLE_VERIFIC
),1)
435 VERIFIC_DIR ?
= /usr
/local
/src
/verific_lib
436 VERIFIC_COMPONENTS ?
= verilog vhdl database util containers hier_tree
437 CXXFLAGS
+= $(patsubst %,-I
$(VERIFIC_DIR
)/%,$(VERIFIC_COMPONENTS
)) -DYOSYS_ENABLE_VERIFIC
439 LDLIBS
+= $(patsubst %,$(VERIFIC_DIR
)/%/*-mac.a
,$(VERIFIC_COMPONENTS
)) -lz
441 LDLIBS
+= $(patsubst %,$(VERIFIC_DIR
)/%/*-linux.a
,$(VERIFIC_COMPONENTS
)) -lz
445 ifeq ($(ENABLE_PROTOBUF
),1)
446 LDLIBS
+= $(shell pkg-config
--cflags --libs protobuf
)
449 ifeq ($(ENABLE_COVER
),1)
450 CXXFLAGS
+= -DYOSYS_ENABLE_COVER
453 define add_share_file
454 EXTRA_TARGETS
+= $(subst //,/,$(1)/$(notdir $(2)))
455 $(subst //,/,$(1)/$(notdir $(2))): $(2)
457 $$(Q
) cp
"$(YOSYS_SRC)"/$(2) $(subst //,/,$(1)/$(notdir $(2)))
460 define add_gen_share_file
461 EXTRA_TARGETS
+= $(subst //,/,$(1)/$(notdir $(2)))
462 $(subst //,/,$(1)/$(notdir $(2))): $(2)
464 $$(Q
) cp
$(2) $(subst //,/,$(1)/$(notdir $(2)))
467 define add_include_file
468 $(eval
$(call add_share_file
,$(dir share
/include/$(1)),$(1)))
474 P_UPDATE
= $(eval P_STATUS
=$(shell echo
$(OBJS
) yosys
$(EXE
) |
$(AWK
) 'BEGIN { RS = " "; I = $(P_STATUS)+0; } $$1 == "$@" && NR > I { I = NR; } END { print I; }'))
475 P_SHOW
= [$(shell $(AWK
) "BEGIN { N=$(words $(OBJS) yosys$(EXE)); printf \"%3d\", $(P_OFFSET)+90*$(P_STATUS)/N; exit; }")%]
476 P
= @echo
"$(if $(findstring $@,$(TARGETS) $(EXTRA_TARGETS)),$(eval P_OFFSET = 10))$(call P_UPDATE)$(call P_SHOW) Building $@";
486 $(eval
$(call add_include_file
,kernel
/yosys.h
))
487 $(eval
$(call add_include_file
,kernel
/hashlib.h
))
488 $(eval
$(call add_include_file
,kernel
/log.h
))
489 $(eval
$(call add_include_file
,kernel
/rtlil.h
))
490 $(eval
$(call add_include_file
,kernel
/register.h
))
491 $(eval
$(call add_include_file
,kernel
/celltypes.h
))
492 $(eval
$(call add_include_file
,kernel
/celledges.h
))
493 $(eval
$(call add_include_file
,kernel
/consteval.h
))
494 $(eval
$(call add_include_file
,kernel
/sigtools.h
))
495 $(eval
$(call add_include_file
,kernel
/modtools.h
))
496 $(eval
$(call add_include_file
,kernel
/macc.h
))
497 $(eval
$(call add_include_file
,kernel
/utils.h
))
498 $(eval
$(call add_include_file
,kernel
/satgen.h
))
499 $(eval
$(call add_include_file
,libs
/ezsat
/ezsat.h
))
500 $(eval
$(call add_include_file
,libs
/ezsat
/ezminisat.h
))
501 $(eval
$(call add_include_file
,libs
/sha1
/sha1.h
))
502 $(eval
$(call add_include_file
,passes
/fsm
/fsmdata.h
))
503 $(eval
$(call add_include_file
,frontends
/ast
/ast.h
))
504 $(eval
$(call add_include_file
,backends
/ilang
/ilang_backend.h
))
506 OBJS
+= kernel
/driver.o kernel
/register.o kernel
/rtlil.o kernel
/log.o kernel
/calc.o kernel
/yosys.o
507 OBJS
+= kernel
/cellaigs.o kernel
/celledges.o
509 kernel
/log.o
: CXXFLAGS
+= -DYOSYS_SRC
='"$(YOSYS_SRC)"'
510 kernel
/yosys.o
: CXXFLAGS
+= -DYOSYS_DATDIR
='"$(DATDIR)"'
512 OBJS
+= libs
/bigint
/BigIntegerAlgorithms.o libs
/bigint
/BigInteger.o libs
/bigint
/BigIntegerUtils.o
513 OBJS
+= libs
/bigint
/BigUnsigned.o libs
/bigint
/BigUnsignedInABase.o
515 OBJS
+= libs
/sha1
/sha1.o
519 OBJS
+= libs
/subcircuit
/subcircuit.o
521 OBJS
+= libs
/ezsat
/ezsat.o
522 OBJS
+= libs
/ezsat
/ezminisat.o
524 OBJS
+= libs
/minisat
/Options.o
525 OBJS
+= libs
/minisat
/SimpSolver.o
526 OBJS
+= libs
/minisat
/Solver.o
527 OBJS
+= libs
/minisat
/System.o
529 include $(YOSYS_SRC
)/frontends
/*/Makefile.inc
530 include $(YOSYS_SRC
)/passes
/*/Makefile.inc
531 include $(YOSYS_SRC
)/backends
/*/Makefile.inc
532 include $(YOSYS_SRC
)/techlibs
/*/Makefile.inc
536 include frontends
/verilog
/Makefile.inc
537 include frontends
/ilang
/Makefile.inc
538 include frontends
/ast
/Makefile.inc
539 include frontends
/blif
/Makefile.inc
541 OBJS
+= passes
/hierarchy
/hierarchy.o
542 OBJS
+= passes
/cmds
/select.o
543 OBJS
+= passes
/cmds
/show.o
544 OBJS
+= passes
/cmds
/stat.o
545 OBJS
+= passes
/cmds
/cover.o
546 OBJS
+= passes
/cmds
/design.o
547 OBJS
+= passes
/cmds
/plugin.o
549 include passes
/proc
/Makefile.inc
550 include passes
/opt
/Makefile.inc
551 include passes
/techmap
/Makefile.inc
553 include backends
/verilog
/Makefile.inc
554 include backends
/ilang
/Makefile.inc
556 include techlibs
/common
/Makefile.inc
561 OBJS
+= yosys-libabc.a
564 top-all
: $(TARGETS
) $(EXTRA_TARGETS
)
566 @echo
" Build successful."
569 ifeq ($(CONFIG
),emcc
)
570 yosys.js
: $(filter-out yosysjs-
$(YOSYS_VER
).zip
,$(EXTRA_TARGETS
))
574 $(P
) $(LD
) -o yosys
$(EXE
) $(LDFLAGS
) $(OBJS
) $(LDLIBS
)
576 libyosys.so
: $(filter-out kernel
/driver.o
,$(OBJS
))
578 $(P
) $(LD
) -o libyosys.so
-shared
-Wl
,-install_name
,libyosys.so
$(LDFLAGS
) $^
$(LDLIBS
)
580 $(P
) $(LD
) -o libyosys.so
-shared
-Wl
,-soname
,libyosys.so
$(LDFLAGS
) $^
$(LDLIBS
)
584 $(Q
) mkdir
-p
$(dir $@
)
585 $(P
) $(CXX
) -o
$@
-c
$(CPPFLAGS
) $(CXXFLAGS
) $<
588 $(Q
) mkdir
-p
$(dir $@
)
589 $(P
) cat
$< | grep
-E
-v
"#[ ]*(include|error)" |
$(LD
) -x c
++ -o
$@
-E
-P
-
591 ifeq ($(ENABLE_PYOSYS
),1)
592 $(PY_WRAPPER_FILE
).
cc: misc
/$(PY_GEN_SCRIPT
).py
$(PY_WRAP_INCLUDES
)
593 $(Q
) mkdir
-p
$(dir $@
)
594 $(P
) python
$(PYTHON_VERSION
) -c
"from misc import $(PY_GEN_SCRIPT); $(PY_GEN_SCRIPT).gen_wrappers(\"$(PY_WRAPPER_FILE).cc\")"
598 $(Q
) mkdir
-p
$(dir $@
)
599 $(P
) $(CXX
) -o
$@
-c
$(CPPFLAGS
) $(CXXFLAGS
) $<
601 YOSYS_VER_STR
:= Yosys
$(YOSYS_VER
) (git sha1
$(GIT_REV
), $(notdir $(CXX
)) $(shell \
602 $(CXX
) --version | tr
' ()' '\n' | grep
'^[0-9]' | head
-n1
) $(filter -f
% -m
% -O
% -DNDEBUG
,$(CXXFLAGS
)))
604 kernel
/version_
$(GIT_REV
).
cc: $(YOSYS_SRC
)/Makefile
605 $(P
) rm -f kernel
/version_
*.o kernel
/version_
*.d kernel
/version_
*.
cc
606 $(Q
) mkdir
-p kernel
&& echo
"namespace Yosys { extern const char *yosys_version_str; const char *yosys_version_str=\"$(YOSYS_VER_STR)\"; }" > kernel
/version_
$(GIT_REV
).
cc
608 ifeq ($(ENABLE_VERIFIC
),1)
609 CXXFLAGS_NOVERIFIC
= $(foreach v
,$(CXXFLAGS
),$(if
$(findstring $(VERIFIC_DIR
),$(v
)),,$(v
)))
610 LDLIBS_NOVERIFIC
= $(foreach v
,$(LDLIBS
),$(if
$(findstring $(VERIFIC_DIR
),$(v
)),,$(v
)))
612 CXXFLAGS_NOVERIFIC
= $(CXXFLAGS
)
613 LDLIBS_NOVERIFIC
= $(LDLIBS
)
616 yosys-config
: misc
/yosys-config.in
617 $(P
) $(SED
) -e
's#@CXXFLAGS@#$(subst -I. -I"$(YOSYS_SRC)",-I"$(DATDIR)/include",$(strip $(CXXFLAGS_NOVERIFIC)))#;' \
618 -e
's#@CXX@#$(strip $(CXX))#;' -e
's#@LDFLAGS@#$(strip $(LDFLAGS) $(PLUGIN_LDFLAGS))#;' -e
's#@LDLIBS@#$(strip $(LDLIBS_NOVERIFIC))#;' \
619 -e
's#@BINDIR@#$(strip $(BINDIR))#;' -e
's#@DATDIR@#$(strip $(DATDIR))#;' < $< > yosys-config
620 $(Q
) chmod
+x yosys-config
622 abc
/abc-
$(ABCREV
)$(EXE
) abc
/libabc-
$(ABCREV
).a
:
624 ifneq ($(ABCREV
),default
)
625 $(Q
) if
test -d abc
/.hg
; then \
626 echo
'REEBE: NOP qverpgbel vf n ut jbexvat pbcl! Erzbir nop/ naq er-eha "znxr".' | tr
'A-Za-z' 'N-ZA-Mn-za-m'; false
; \
628 $(Q
) if
( cd abc
2> /dev
/null
&& ! git diff-index
--quiet HEAD
; ); then \
629 echo
'REEBE: NOP pbagnvaf ybpny zbqvsvpngvbaf! Frg NOPERI=qrsnhyg va Lbflf Znxrsvyr!' | tr
'A-Za-z' 'N-ZA-Mn-za-m'; false
; \
631 $(Q
) if
test "`cd abc 2> /dev/null && git rev-parse --short HEAD`" != "$(ABCREV)"; then \
632 test $(ABCPULL
) -ne
0 ||
{ echo
'REEBE: NOP abg hc gb qngr naq NOPCHYY frg gb 0 va Znxrsvyr!' | tr
'A-Za-z' 'N-ZA-Mn-za-m'; exit
1; }; \
633 echo
"Pulling ABC from $(ABCURL):"; set
-x
; \
634 test -d abc || git clone
$(ABCURL
) abc
; \
635 cd abc
&& $(MAKE
) DEP
= clean && git fetch
origin master
&& git checkout
$(ABCREV
); \
638 $(Q
) rm -f abc
/abc-
[0-9a-f
]*
639 $(Q
) cd abc
&& $(MAKE
) $(S
) $(ABCMKARGS
) $(if
$(filter %.a
,$@
),PROG
="abc-$(ABCREV)",PROG
="abc-$(ABCREV)$(EXE)") MSG_PREFIX
="$(eval P_OFFSET = 5)$(call P_SHOW)$(eval P_OFFSET = 10) ABC: " $(if
$(filter %.a
,$@
),libabc-
$(ABCREV
).a
)
641 ifeq ($(ABCREV
),default
)
642 .PHONY
: abc
/abc-
$(ABCREV
)$(EXE
)
643 .PHONY
: abc
/libabc-
$(ABCREV
).a
646 yosys-abc
$(EXE
): abc
/abc-
$(ABCREV
)$(EXE
)
647 $(P
) cp abc
/abc-
$(ABCREV
)$(EXE
) yosys-abc
$(EXE
)
649 yosys-libabc.a
: abc
/libabc-
$(ABCREV
).a
650 $(P
) cp abc
/libabc-
$(ABCREV
).a yosys-libabc.a
658 test: $(TARGETS
) $(EXTRA_TARGETS
)
659 +cd tests
/simple
&& bash run-test.sh
$(SEEDOPT
)
660 +cd tests
/hana
&& bash run-test.sh
$(SEEDOPT
)
661 +cd tests
/asicworld
&& bash run-test.sh
$(SEEDOPT
)
662 # +cd tests/realmath && bash run-test.sh $(SEEDOPT)
663 +cd tests
/share
&& bash run-test.sh
$(SEEDOPT
)
664 +cd tests
/fsm
&& bash run-test.sh
$(SEEDOPT
)
665 +cd tests
/techmap
&& bash run-test.sh
666 +cd tests
/memories
&& bash run-test.sh
$(SEEDOPT
)
667 +cd tests
/bram
&& bash run-test.sh
$(SEEDOPT
)
668 +cd tests
/various
&& bash run-test.sh
669 +cd tests
/sat
&& bash run-test.sh
670 +cd tests
/svinterfaces
&& bash run-test.sh
$(SEEDOPT
)
671 +cd tests
/opt
&& bash run-test.sh
672 +cd tests
/aiger
&& bash run-test.sh
674 @echo
" Passed \"make test\"."
677 VALGRIND ?
= valgrind
--error-exitcode
=1 --leak-check
=full
--show-reachable
=yes
--errors-for-leak-kinds
=all
679 vgtest
: $(TARGETS
) $(EXTRA_TARGETS
)
680 $(VALGRIND
) .
/yosys
-p
'setattr -mod -unset top; synth' $$( ls tests
/simple
/*.v | grep
-v repwhile.v
)
682 @echo
" Passed \"make vgtest\"."
685 vloghtb
: $(TARGETS
) $(EXTRA_TARGETS
)
686 +cd tests
/vloghtb
&& bash run-test.sh
688 @echo
" Passed \"make vloghtb\"."
691 ystests
: $(TARGETS
) $(EXTRA_TARGETS
)
693 git clone https
://github.com
/YosysHQ
/yosys-tests.git tests
/ystests
694 +$(MAKE
) PATH
="$$PWD:$$PATH" -C tests
/ystests
696 @echo
" Finished \"make ystests\"."
700 unit-test
: libyosys.so
701 @
$(MAKE
) -C
$(UNITESTPATH
) CXX
="$(CXX)" CPPFLAGS
="$(CPPFLAGS)" \
702 CXXFLAGS
="$(CXXFLAGS)" LDLIBS
="$(LDLIBS)" ROOTPATH
="$(CURDIR)"
705 @
$(MAKE
) -C
$(UNITESTPATH
) clean
707 install: $(TARGETS
) $(EXTRA_TARGETS
)
708 $(INSTALL_SUDO
) mkdir
-p
$(DESTDIR
)$(BINDIR
)
709 $(INSTALL_SUDO
) cp
$(TARGETS
) $(DESTDIR
)$(BINDIR
)
710 ifneq ($(filter yosys
,$(TARGETS
)),)
711 $(INSTALL_SUDO
) $(STRIP
) -S
$(DESTDIR
)$(BINDIR
)/yosys
713 ifneq ($(filter yosys-abc
,$(TARGETS
)),)
714 $(INSTALL_SUDO
) $(STRIP
) $(DESTDIR
)$(BINDIR
)/yosys-abc
716 ifneq ($(filter yosys-filterlib
,$(TARGETS
)),)
717 $(INSTALL_SUDO
) $(STRIP
) $(DESTDIR
)$(BINDIR
)/yosys-filterlib
719 $(INSTALL_SUDO
) mkdir
-p
$(DESTDIR
)$(DATDIR
)
720 $(INSTALL_SUDO
) cp
-r share
/.
$(DESTDIR
)$(DATDIR
)/.
721 ifeq ($(ENABLE_LIBYOSYS
),1)
722 $(INSTALL_SUDO
) mkdir
-p
$(DESTDIR
)$(LIBDIR
)
723 $(INSTALL_SUDO
) cp libyosys.so
$(DESTDIR
)$(LIBDIR
)/
724 $(INSTALL_SUDO
) $(STRIP
) -S
$(DESTDIR
)$(LIBDIR
)/libyosys.so
725 ifeq ($(ENABLE_PYOSYS
),1)
726 $(INSTALL_SUDO
) mkdir
-p
$(PYTHON_DESTDIR
)/pyosys
727 $(INSTALL_SUDO
) cp libyosys.so
$(PYTHON_DESTDIR
)/pyosys
/
728 $(INSTALL_SUDO
) cp misc
/__init__.py
$(PYTHON_DESTDIR
)/pyosys
/
733 $(INSTALL_SUDO
) rm -vf
$(addprefix $(DESTDIR
)$(BINDIR
)/,$(notdir $(TARGETS
)))
734 $(INSTALL_SUDO
) rm -rvf
$(DESTDIR
)$(DATDIR
)
735 ifeq ($(ENABLE_LIBYOSYS
),1)
736 $(INSTALL_SUDO
) rm -vf
$(DESTDIR
)$(LIBDIR
)/libyosys.so
737 ifeq ($(ENABLE_PYOSYS
),1)
738 $(INSTALL_SUDO
) rm -vf
$(PYTHON_DESTDIR
)/pyosys
/libyosys.so
739 $(INSTALL_SUDO
) rm -vf
$(PYTHON_DESTDIR
)/pyosys
/__init__.py
740 $(INSTALL_SUDO
) rmdir
$(PYTHON_DESTDIR
)/pyosys
744 update-manual
: $(TARGETS
) $(EXTRA_TARGETS
)
745 cd manual
&& ..
/yosys
-p
'help -write-tex-command-reference-manual'
747 manual
: $(TARGETS
) $(EXTRA_TARGETS
)
748 cd manual
&& bash appnotes.sh
749 cd manual
&& bash presentation.sh
750 cd manual
&& bash manual.sh
755 if
test -d manual
; then cd manual
&& sh
clean.sh
; fi
756 rm -f
$(OBJS
) $(GENFILES
) $(TARGETS
) $(EXTRA_TARGETS
) $(EXTRA_OBJS
) $(PY_WRAP_INCLUDES
) $(PY_WRAPPER_FILE
).
cc
757 rm -f kernel
/version_
*.o kernel
/version_
*.
cc abc
/abc-
[0-9a-f
]* abc
/libabc-
[0-9a-f
]*.a
758 rm -f libs
/*/*.d frontends
/*/*.d passes
/*/*.d backends
/*/*.d kernel
/*.d techlibs
/*/*.d
759 rm -rf tests
/asicworld
/*.out tests
/asicworld
/*.log
760 rm -rf tests
/hana
/*.out tests
/hana
/*.log
761 rm -rf tests
/simple
/*.out tests
/simple
/*.log
762 rm -rf tests
/memories
/*.out tests
/memories
/*.log tests
/memories
/*.dmp
763 rm -rf tests
/sat
/*.log tests
/techmap
/*.log tests
/various
/*.log
764 rm -rf tests
/bram
/temp tests
/fsm
/temp tests
/realmath
/temp tests
/share
/temp tests
/smv
/temp
765 rm -rf vloghtb
/Makefile vloghtb
/refdat vloghtb
/rtl vloghtb
/scripts vloghtb
/spec vloghtb
/check_yosys vloghtb
/vloghammer_tb.
tar.bz2 vloghtb
/temp vloghtb
/log_test_
*
766 rm -f tests
/svinterfaces
/*.log_stdout tests
/svinterfaces
/*.log_stderr tests
/svinterfaces
/dut_result.txt tests
/svinterfaces
/reference_result.txt tests
/svinterfaces
/a.out tests
/svinterfaces
/*_syn.v tests
/svinterfaces
/*.diff
767 rm -f tests
/tools
/cmp_tbdata
770 $(MAKE
) -C abc DEP
= clean
771 rm -f yosys-abc
$(EXE
) yosys-libabc.a abc
/abc-
[0-9a-f
]* abc
/libabc-
[0-9a-f
]*.a
777 .
/yosys
-qp
'help; help -all'
778 rm -rf coverage.
info coverage_html
779 lcov
--capture
-d .
--no-external
-o coverage.
info
780 genhtml coverage.
info --output-directory coverage_html
783 { for file in
$(basename $(OBJS
)); do \
784 for
prefix in
cc y l
; do if
[ -f
$${file}.
$${prefix} ]; then echo
$$file.
$${prefix}; fi
; done \
785 done
; find backends frontends kernel libs passes
-type f \
( -name
'*.h' -o
-name
'*.hh' \
); } > qtcreator.files
786 { echo .
; find backends frontends kernel libs passes
-type f \
( -name
'*.h' -o
-name
'*.hh' \
) -printf
'%h\n' |
sort -u
; } > qtcreator.includes
787 touch qtcreator.config qtcreator.creator
789 vcxsrc
: $(GENFILES
) $(EXTRA_TARGETS
)
790 rm -rf yosys-win32-vcxsrc-
$(YOSYS_VER
){,.zip
}
791 set
-e
; for f in
`ls $(filter %.cc %.cpp,$(GENFILES)) $(addsuffix .cc,$(basename $(OBJS))) $(addsuffix .cpp,$(basename $(OBJS))) 2> /dev/null`; do \
792 echo
"Analyse: $$f" >&2; cpp -std
=c
++11 -MM
-I.
-D_YOSYS_
$$f; done | sed
's,.*:,,; s,//*,/,g; s,/[^/]*/\.\./,/,g; y, \\,\n\n,;' | grep
'^[^/]' |
sort -u | grep
-v kernel
/version_
> srcfiles.txt
793 bash misc
/create_vcxsrc.sh yosys-win32-vcxsrc
$(YOSYS_VER
) $(GIT_REV
)
794 echo
"namespace Yosys { extern const char *yosys_version_str; const char *yosys_version_str=\"Yosys (Version Information Unavailable)\"; }" > kernel
/version.
cc
795 zip yosys-win32-vcxsrc-
$(YOSYS_VER
)/genfiles.zip
$(GENFILES
) kernel
/version.
cc
796 zip
-r yosys-win32-vcxsrc-
$(YOSYS_VER
).zip yosys-win32-vcxsrc-
$(YOSYS_VER
)/
797 rm -f srcfiles.txt kernel
/version.
cc
800 mxebin
: $(TARGETS
) $(EXTRA_TARGETS
)
801 rm -rf yosys-win32-mxebin-
$(YOSYS_VER
){,.zip
}
802 mkdir
-p yosys-win32-mxebin-
$(YOSYS_VER
)
803 cp
-r yosys.exe share
/ yosys-win32-mxebin-
$(YOSYS_VER
)/
804 ifeq ($(ENABLE_ABC
),1)
805 cp
-r yosys-abc.exe abc
/lib
/x86
/pthreadVC2.dll yosys-win32-mxebin-
$(YOSYS_VER
)/
807 echo
-en
'This is Yosys $(YOSYS_VER) for Win32.\r\n' > yosys-win32-mxebin-
$(YOSYS_VER
)/readme.txt
808 echo
-en
'Documentation at http://www.clifford.at/yosys/.\r\n' >> yosys-win32-mxebin-
$(YOSYS_VER
)/readme.txt
809 zip
-r yosys-win32-mxebin-
$(YOSYS_VER
).zip yosys-win32-mxebin-
$(YOSYS_VER
)/
816 echo
'CONFIG := clang' > Makefile.conf
819 echo
'CONFIG := gcc' > Makefile.conf
821 config-gcc-static
: clean
822 echo
'CONFIG := gcc-static' > Makefile.conf
823 echo
'ENABLE_PLUGINS := 0' >> Makefile.conf
824 echo
'ENABLE_READLINE := 0' >> Makefile.conf
825 echo
'ENABLE_TCL := 0' >> Makefile.conf
827 config-gcc-4.8
: clean
828 echo
'CONFIG := gcc-4.8' > Makefile.conf
831 echo
'CONFIG := emcc' > Makefile.conf
832 echo
'ENABLE_TCL := 0' >> Makefile.conf
833 echo
'ENABLE_ABC := 0' >> Makefile.conf
834 echo
'ENABLE_PLUGINS := 0' >> Makefile.conf
835 echo
'ENABLE_READLINE := 0' >> Makefile.conf
838 echo
'CONFIG := mxe' > Makefile.conf
839 echo
'ENABLE_PLUGINS := 0' >> Makefile.conf
842 echo
'CONFIG := msys2' > Makefile.conf
844 config-msys2-64
: clean
845 echo
'CONFIG := msys2-64' > Makefile.conf
848 echo
'CONFIG := cygwin' > Makefile.conf
851 echo
'CONFIG := gcc' > Makefile.conf
852 echo
'ENABLE_GCOV := 1' >> Makefile.conf
853 echo
'ENABLE_DEBUG := 1' >> Makefile.conf
856 echo
'CONFIG := gcc' > Makefile.conf
857 echo
'ENABLE_GPROF := 1' >> Makefile.conf
860 echo
"INSTALL_SUDO := sudo" >> Makefile.conf
869 -include frontends
/*/*.d
870 -include passes
/*/*.d
871 -include backends
/*/*.d
873 -include techlibs
/*/*.d
875 .PHONY
: all top-all abc
test install install-abc manual
clean mrproper qtcreator coverage vcxsrc mxebin
876 .PHONY
: config-clean config-clang config-gcc config-gcc-static config-gcc-4.8 config-gprof config-sudo