11 # features (the more the better)
27 # other configuration flags
35 # Needed for environments that don't have proper thread support (i.e. emscripten)
36 DISABLE_ABC_THREADS
:= 0
42 # SANITIZER = undefined
46 OS
:= $(shell uname
-s
)
50 ifneq ($(wildcard Makefile.conf
),)
54 BINDIR
:= $(PREFIX
)/bin
55 LIBDIR
:= $(PREFIX
)/lib
56 DATDIR
:= $(PREFIX
)/share
/yosys
63 TARGETS
= yosys
$(EXE
) yosys-config
69 UNITESTPATH
:= tests
/unit
73 YOSYS_SRC
:= $(dir $(firstword $(MAKEFILE_LIST
)))
76 CXXFLAGS
:= $(CXXFLAGS
) -Wall
-Wextra
-ggdb
-I.
-I
"$(YOSYS_SRC)" -MD
-D_YOSYS_
-fPIC
-I
$(PREFIX
)/include
77 LDFLAGS
:= $(LDFLAGS
) -L
$(LIBDIR
)
78 LDLIBS
:= $(LDLIBS
) -lstdc
++ -lm
81 PKG_CONFIG ?
= pkg-config
88 PLUGIN_LDFLAGS
+= -undefined dynamic_lookup
90 # homebrew search paths
91 ifneq ($(shell :; command
-v brew
),)
92 BREW_PREFIX
:= $(shell brew
--prefix)/opt
93 $(info $$BREW_PREFIX is
[${BREW_PREFIX}])
94 ifeq ($(ENABLE_PYOSYS
),1)
95 CXXFLAGS
+= -I
$(BREW_PREFIX
)/boost
/include/boost
96 LDFLAGS
+= -L
$(BREW_PREFIX
)/boost
/lib
98 CXXFLAGS
+= -I
$(BREW_PREFIX
)/readline
/include
99 LDFLAGS
+= -L
$(BREW_PREFIX
)/readline
/lib
100 PKG_CONFIG_PATH
:= $(BREW_PREFIX
)/libffi
/lib
/pkgconfig
:$(PKG_CONFIG_PATH
)
101 PKG_CONFIG_PATH
:= $(BREW_PREFIX
)/tcl-tk
/lib
/pkgconfig
:$(PKG_CONFIG_PATH
)
102 export PATH
:= $(BREW_PREFIX
)/bison
/bin
:$(BREW_PREFIX
)/gettext
/bin
:$(BREW_PREFIX
)/flex
/bin
:$(PATH
)
104 # macports search paths
105 else ifneq ($(shell :; command
-v port
),)
106 PORT_PREFIX
:= $(patsubst %/bin
/port
,%,$(shell :; command
-v port
))
107 CXXFLAGS
+= -I
$(PORT_PREFIX
)/include
108 LDFLAGS
+= -L
$(PORT_PREFIX
)/lib
109 PKG_CONFIG_PATH
:= $(PORT_PREFIX
)/lib
/pkgconfig
:$(PKG_CONFIG_PATH
)
110 export PATH
:= $(PORT_PREFIX
)/bin
:$(PATH
)
119 GIT_REV
:= $(shell cd
$(YOSYS_SRC
) && git rev-parse
--short HEAD
2> /dev
/null || echo UNKNOWN
)
120 OBJS
= kernel
/version_
$(GIT_REV
).o
123 sed
-i
"/^YOSYS_VER := / s/+[0-9][0-9]*$$/+`git log --oneline 8a4c6e6.. | wc -l`/;" Makefile
125 # set 'ABCREV = default' to use abc/ as it is
127 # Note: If you do ABC development, make sure that 'abc' in this directory
128 # is just a symlink to your actual ABC working directory, as 'make mrproper'
129 # will remove the 'abc' directory and you do not want to accidentally
130 # delete your work on ABC..
133 ABCURL ?
= https
://github.com
/berkeley-abc
/abc
134 ABCMKARGS
= CC
="$(CXX)" CXX
="$(CXX)" ABC_USE_LIBSTDCXX
=1
136 # set ABCEXTERNAL = <abc-command> to use an external ABC instance
137 # Note: The in-tree ABC (yosys-abc) will not be installed when ABCEXTERNAL is set.
145 ifneq ($(wildcard Makefile.conf
),)
146 $(info $(subst $$--$$,$(newline
),$(shell sed
's,^,[Makefile.conf] ,; s,$$,$$--$$,;' < Makefile.conf | tr
-d
'\n' | sed
's,\$$--\$$$$,,')))
147 include Makefile.conf
150 ifeq ($(ENABLE_PYOSYS
),1)
151 PYTHON_VERSION_TESTCODE
:= "import sys;t='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));print(t)"
152 PYTHON_EXECUTABLE
:= $(shell if python3
-c
""; then echo
"python3"; else echo
"python"; fi
)
153 PYTHON_VERSION
:= $(shell $(PYTHON_EXECUTABLE
) -c
""$(PYTHON_VERSION_TESTCODE
)"")
154 PYTHON_MAJOR_VERSION
:= $(shell echo
$(PYTHON_VERSION
) | cut
-f1
-d.
)
155 PYTHON_PREFIX
:= $(shell $(PYTHON_EXECUTABLE
)-config
--prefix)
156 PYTHON_DESTDIR
:= $(PYTHON_PREFIX
)/lib
/python
$(PYTHON_VERSION
)/site-packages
158 # Reload Makefile.conf to override python specific variables if defined
159 ifneq ($(wildcard Makefile.conf
),)
160 include Makefile.conf
165 ifeq ($(CONFIG
),clang
)
168 CXXFLAGS
+= -std
=c
++11 -Os
169 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H"
171 ifneq ($(SANITIZER
),)
172 $(info [Clang Sanitizer
] $(SANITIZER
))
173 CXXFLAGS
+= -g
-O1
-fno-omit-frame-pointer
-fno-optimize-sibling-calls
-fsanitize
=$(SANITIZER
)
174 LDFLAGS
+= -g
-fsanitize
=$(SANITIZER
)
175 ifeq ($(SANITIZER
),address
)
178 ifeq ($(SANITIZER
),memory
)
179 CXXFLAGS
+= -fPIE
-fsanitize-memory-track-origins
180 LDFLAGS
+= -fPIE
-fsanitize-memory-track-origins
182 ifeq ($(SANITIZER
),cfi
)
188 else ifeq ($(CONFIG
),gcc
)
191 CXXFLAGS
+= -std
=c
++11 -Os
192 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H"
194 else ifeq ($(CONFIG
),gcc-static
)
196 LDFLAGS
:= $(filter-out -rdynamic
,$(LDFLAGS
)) -static
197 LDLIBS
:= $(filter-out -lrt
,$(LDLIBS
))
198 CXXFLAGS
:= $(filter-out -fPIC
,$(CXXFLAGS
))
199 CXXFLAGS
+= -std
=c
++11 -Os
200 ABCMKARGS
= CC
="$(CC)" CXX
="$(CXX)" LD
="$(LD)" ABC_USE_LIBSTDCXX
=1 LIBS
="-lm -lpthread -static" OPTFLAGS
="-O" \
201 ARCHFLAGS
="-DABC_USE_STDINT_H -DABC_NO_DYNAMIC_LINKING=1 -Wno-unused-but-set-variable $(ARCHFLAGS)" ABC_USE_NO_READLINE
=1
202 ifeq ($(DISABLE_ABC_THREADS
),1)
203 ABCMKARGS
+= "ABC_USE_NO_PTHREADS=1"
206 else ifeq ($(CONFIG
),gcc-4.8
)
209 CXXFLAGS
+= -std
=c
++11 -Os
210 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H"
212 else ifeq ($(CONFIG
),afl-gcc
)
213 CXX
= AFL_QUIET
=1 AFL_HARDEN
=1 afl-gcc
214 LD
= AFL_QUIET
=1 AFL_HARDEN
=1 afl-gcc
215 CXXFLAGS
+= -std
=c
++11 -Os
216 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H"
218 else ifeq ($(CONFIG
),cygwin
)
221 CXXFLAGS
+= -std
=gnu
++11 -Os
222 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H"
224 else ifeq ($(CONFIG
),emcc
)
227 CXXFLAGS
:= -std
=c
++11 $(filter-out -fPIC
-ggdb
,$(CXXFLAGS
))
228 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H -DABC_MEMALIGN=8"
229 EMCCFLAGS
:= -Os
-Wno-warn-absolute-paths
230 EMCCFLAGS
+= --memory-init-file
0 --embed-file share
-s NO_EXIT_RUNTIME
=1
231 EMCCFLAGS
+= -s EXPORTED_FUNCTIONS
="['_main','_run','_prompt','_errmsg']"
232 EMCCFLAGS
+= -s TOTAL_MEMORY
=128*1024*1024
233 # https://github.com/kripken/emscripten/blob/master/src/settings.js
234 CXXFLAGS
+= $(EMCCFLAGS
)
235 LDFLAGS
+= $(EMCCFLAGS
)
239 TARGETS
:= $(filter-out yosys-config
,$(TARGETS
))
240 EXTRA_TARGETS
+= yosysjs-
$(YOSYS_VER
).zip
242 ifeq ($(ENABLE_ABC
),1)
244 DISABLE_ABC_THREADS
:= 1
248 wget
-O viz.js.part https
://github.com
/mdaines
/viz.js
/releases
/download
/0.0.3/viz.js
249 mv viz.js.part viz.js
251 yosysjs-
$(YOSYS_VER
).zip
: yosys.js viz.js misc
/yosysjs
/*
252 rm -rf yosysjs-
$(YOSYS_VER
) yosysjs-
$(YOSYS_VER
).zip
253 mkdir
-p yosysjs-
$(YOSYS_VER
)
254 cp viz.js misc
/yosysjs
/* yosys.js yosysjs-
$(YOSYS_VER
)/
255 zip
-r yosysjs-
$(YOSYS_VER
).zip yosysjs-
$(YOSYS_VER
)
257 yosys.html
: misc
/yosys.html
258 $(P
) cp misc
/yosys.html yosys.html
260 else ifeq ($(CONFIG
),mxe
)
261 PKG_CONFIG
= /usr
/local
/src
/mxe
/usr
/bin
/i686-w64-mingw32.static-pkg-config
262 CXX
= /usr
/local
/src
/mxe
/usr
/bin
/i686-w64-mingw32.static-g
++
263 LD
= /usr
/local
/src
/mxe
/usr
/bin
/i686-w64-mingw32.static-g
++
264 CXXFLAGS
+= -std
=c
++11 -Os
-D_POSIX_SOURCE
-DYOSYS_MXE_HACKS
-Wno-attributes
265 CXXFLAGS
:= $(filter-out -fPIC
,$(CXXFLAGS
))
266 LDFLAGS
:= $(filter-out -rdynamic
,$(LDFLAGS
)) -s
267 LDLIBS
:= $(filter-out -lrt
,$(LDLIBS
))
268 ABCMKARGS
+= ARCHFLAGS
="-DWIN32_NO_DLL -DHAVE_STRUCT_TIMESPEC -fpermissive -w"
269 # TODO: Try to solve pthread linking issue in more appropriate way
270 ABCMKARGS
+= LIBS
="lib/x86/pthreadVC2.lib -s" LDFLAGS
="-Wl,--allow-multiple-definition" ABC_USE_NO_READLINE
=1 CC
="/usr/local/src/mxe/usr/bin/i686-w64-mingw32.static-gcc"
273 else ifeq ($(CONFIG
),msys2
)
274 CXX
= i686-w64-mingw32-g
++
275 LD
= i686-w64-mingw32-g
++
276 CXXFLAGS
+= -std
=c
++11 -Os
-D_POSIX_SOURCE
-DYOSYS_WIN32_UNIX_DIR
277 CXXFLAGS
:= $(filter-out -fPIC
,$(CXXFLAGS
))
278 LDFLAGS
:= $(filter-out -rdynamic
,$(LDFLAGS
)) -s
279 LDLIBS
:= $(filter-out -lrt
,$(LDLIBS
))
280 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H -DWIN32_NO_DLL -DHAVE_STRUCT_TIMESPEC -fpermissive -w"
281 ABCMKARGS
+= LIBS
="-lpthread -s" ABC_USE_NO_READLINE
=0 CC
="i686-w64-mingw32-gcc" CXX
="$(CXX)"
284 else ifeq ($(CONFIG
),msys2-64
)
285 CXX
= x86_64-w64-mingw32-g
++
286 LD
= x86_64-w64-mingw32-g
++
287 CXXFLAGS
+= -std
=c
++11 -Os
-D_POSIX_SOURCE
-DYOSYS_WIN32_UNIX_DIR
288 CXXFLAGS
:= $(filter-out -fPIC
,$(CXXFLAGS
))
289 LDFLAGS
:= $(filter-out -rdynamic
,$(LDFLAGS
)) -s
290 LDLIBS
:= $(filter-out -lrt
,$(LDLIBS
))
291 ABCMKARGS
+= ARCHFLAGS
="-DABC_USE_STDINT_H -DWIN32_NO_DLL -DHAVE_STRUCT_TIMESPEC -fpermissive -w"
292 ABCMKARGS
+= LIBS
="-lpthread -s" ABC_USE_NO_READLINE
=0 CC
="x86_64-w64-mingw32-gcc" CXX
="$(CXX)"
295 else ifneq ($(CONFIG
),none
)
296 $(error Invalid CONFIG setting
'$(CONFIG)'. Valid values
: clang
, gcc
, gcc-4.8
, emcc
, mxe
, msys2
, msys2-64
)
299 ifeq ($(ENABLE_LIBYOSYS
),1)
300 TARGETS
+= libyosys.so
303 ifeq ($(ENABLE_PYOSYS
),1)
305 #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
307 BOOST_PYTHON_LIB ?
= $(shell \
308 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 \
309 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 \
310 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 \
311 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 \
312 echo
""; fi
; fi
; fi
; fi
;)
314 BOOST_PYTHON_LIB ?
= $(shell \
315 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 \
316 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 \
317 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 \
318 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 \
319 echo
""; fi
; fi
; fi
; fi
;)
322 ifeq ($(BOOST_PYTHON_LIB
),)
323 $(error BOOST_PYTHON_LIB could not be detected. Please
define manualy
)
327 ifeq ($(PYTHON_MAJOR_VERSION
),3)
328 LDLIBS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--ldflags) $(BOOST_PYTHON_LIB
) -lboost_system
-lboost_filesystem
329 CXXFLAGS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--includes
) -DWITH_PYTHON
331 LDLIBS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--ldflags) $(BOOST_PYTHON_LIB
) -lboost_system
-lboost_filesystem
332 CXXFLAGS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--includes
) -DWITH_PYTHON
335 ifeq ($(PYTHON_MAJOR_VERSION
),3)
336 LDLIBS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--libs
) $(BOOST_PYTHON_LIB
) -lboost_system
-lboost_filesystem
337 CXXFLAGS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--includes
) -DWITH_PYTHON
339 LDLIBS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--libs
) $(BOOST_PYTHON_LIB
) -lboost_system
-lboost_filesystem
340 CXXFLAGS
+= $(shell $(PYTHON_EXECUTABLE
)-config
--includes
) -DWITH_PYTHON
344 ifeq ($(ENABLE_PYOSYS
),1)
345 PY_WRAPPER_FILE
= kernel
/python_wrappers
346 OBJS
+= $(PY_WRAPPER_FILE
).o
347 PY_GEN_SCRIPT
= py_wrap_generator
348 PY_WRAP_INCLUDES
:= $(shell python
$(PYTHON_VERSION
) -c
"from misc import $(PY_GEN_SCRIPT); $(PY_GEN_SCRIPT).print_includes()")
352 ifeq ($(ENABLE_READLINE
),1)
353 CXXFLAGS
+= -DYOSYS_ENABLE_READLINE
354 ifeq ($(OS
), FreeBSD
)
355 CXXFLAGS
+= -I
/usr
/local
/include
358 ifeq ($(LINK_CURSES
),1)
360 ABCMKARGS
+= "ABC_READLINE_LIBRARIES=-lcurses -lreadline"
362 ifeq ($(LINK_TERMCAP
),1)
364 ABCMKARGS
+= "ABC_READLINE_LIBRARIES=-lreadline -ltermcap"
370 ifeq ($(ENABLE_EDITLINE
),1)
371 CXXFLAGS
+= -DYOSYS_ENABLE_EDITLINE
372 LDLIBS
+= -ledit
-ltinfo
-lbsd
374 ABCMKARGS
+= "ABC_USE_NO_READLINE=1"
378 ifeq ($(DISABLE_ABC_THREADS
),1)
379 ABCMKARGS
+= "ABC_USE_NO_PTHREADS=1"
382 ifeq ($(ENABLE_PLUGINS
),1)
383 CXXFLAGS
+= $(shell PKG_CONFIG_PATH
=$(PKG_CONFIG_PATH
) $(PKG_CONFIG
) --silence-errors
--cflags libffi
) -DYOSYS_ENABLE_PLUGINS
384 LDLIBS
+= $(shell PKG_CONFIG_PATH
=$(PKG_CONFIG_PATH
) $(PKG_CONFIG
) --silence-errors
--libs libffi || echo
-lffi
)
385 ifneq ($(OS
), FreeBSD
)
390 ifeq ($(ENABLE_GLOB
),1)
391 CXXFLAGS
+= -DYOSYS_ENABLE_GLOB
394 ifeq ($(ENABLE_ZLIB
),1)
395 CXXFLAGS
+= -DYOSYS_ENABLE_ZLIB
400 ifeq ($(ENABLE_TCL
),1)
401 TCL_VERSION ?
= tcl
$(shell bash
-c
"tclsh <(echo 'puts [info tclversion]')")
402 ifeq ($(OS
), FreeBSD
)
403 TCL_INCLUDE ?
= /usr
/local
/include/$(TCL_VERSION
)
405 TCL_INCLUDE ?
= /usr
/include/$(TCL_VERSION
)
409 CXXFLAGS
+= -DYOSYS_ENABLE_TCL
410 LDLIBS
+= -ltcl86
-lwsock32
-lws2_32
-lnetapi32
-lz
-luserenv
412 CXXFLAGS
+= $(shell PKG_CONFIG_PATH
=$(PKG_CONFIG_PATH
) $(PKG_CONFIG
) --silence-errors
--cflags tcl || echo
-I
$(TCL_INCLUDE
)) -DYOSYS_ENABLE_TCL
413 ifeq ($(OS
), FreeBSD
)
414 # FreeBSD uses tcl8.6, but lib is named "libtcl86"
415 LDLIBS
+= $(shell PKG_CONFIG_PATH
=$(PKG_CONFIG_PATH
) $(PKG_CONFIG
) --silence-errors
--libs tcl || echo
-l
$(TCL_VERSION
) | tr
-d
'.')
417 LDLIBS
+= $(shell PKG_CONFIG_PATH
=$(PKG_CONFIG_PATH
) $(PKG_CONFIG
) --silence-errors
--libs tcl || echo
-l
$(TCL_VERSION
))
422 ifeq ($(ENABLE_GCOV
),1)
423 CXXFLAGS
+= --coverage
424 LDFLAGS
+= --coverage
427 ifeq ($(ENABLE_GPROF
),1)
432 ifeq ($(ENABLE_NDEBUG
),1)
433 CXXFLAGS
:= -O3
-DNDEBUG
$(filter-out -Os
-ggdb
,$(CXXFLAGS
))
436 ifeq ($(ENABLE_DEBUG
),1)
437 ifeq ($(CONFIG
),clang
)
438 CXXFLAGS
:= -O0
-DDEBUG
$(filter-out -Os
,$(CXXFLAGS
))
440 CXXFLAGS
:= -Og
-DDEBUG
$(filter-out -Os
,$(CXXFLAGS
))
444 ifeq ($(ENABLE_ABC
),1)
445 CXXFLAGS
+= -DYOSYS_ENABLE_ABC
447 CXXFLAGS
+= -DYOSYS_LINK_ABC
448 ifeq ($(DISABLE_ABC_THREADS
),0)
452 ifeq ($(ABCEXTERNAL
),)
453 TARGETS
+= yosys-abc
$(EXE
)
458 ifeq ($(ENABLE_VERIFIC
),1)
459 VERIFIC_DIR ?
= /usr
/local
/src
/verific_lib
460 VERIFIC_COMPONENTS ?
= verilog vhdl database util containers hier_tree
461 CXXFLAGS
+= $(patsubst %,-I
$(VERIFIC_DIR
)/%,$(VERIFIC_COMPONENTS
)) -DYOSYS_ENABLE_VERIFIC
463 LDLIBS
+= $(patsubst %,$(VERIFIC_DIR
)/%/*-mac.a
,$(VERIFIC_COMPONENTS
)) -lz
465 LDLIBS
+= $(patsubst %,$(VERIFIC_DIR
)/%/*-linux.a
,$(VERIFIC_COMPONENTS
)) -lz
469 ifeq ($(ENABLE_PROTOBUF
),1)
470 LDLIBS
+= $(shell pkg-config
--cflags --libs protobuf
)
473 ifeq ($(ENABLE_COVER
),1)
474 CXXFLAGS
+= -DYOSYS_ENABLE_COVER
477 define add_share_file
478 EXTRA_TARGETS
+= $(subst //,/,$(1)/$(notdir $(2)))
479 $(subst //,/,$(1)/$(notdir $(2))): $(2)
481 $$(Q
) cp
"$(YOSYS_SRC)"/$(2) $(subst //,/,$(1)/$(notdir $(2)))
484 define add_gen_share_file
485 EXTRA_TARGETS
+= $(subst //,/,$(1)/$(notdir $(2)))
486 $(subst //,/,$(1)/$(notdir $(2))): $(2)
488 $$(Q
) cp
$(2) $(subst //,/,$(1)/$(notdir $(2)))
491 define add_include_file
492 $(eval
$(call add_share_file
,$(dir share
/include/$(1)),$(1)))
495 define add_extra_objs
503 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; }'))
504 P_SHOW
= [$(shell $(AWK
) "BEGIN { N=$(words $(OBJS) yosys$(EXE)); printf \"%3d\", $(P_OFFSET)+90*$(P_STATUS)/N; exit; }")%]
505 P
= @echo
"$(if $(findstring $@,$(TARGETS) $(EXTRA_TARGETS)),$(eval P_OFFSET = 10))$(call P_UPDATE)$(call P_SHOW) Building $@";
515 $(eval
$(call add_include_file
,kernel
/yosys.h
))
516 $(eval
$(call add_include_file
,kernel
/hashlib.h
))
517 $(eval
$(call add_include_file
,kernel
/log.h
))
518 $(eval
$(call add_include_file
,kernel
/rtlil.h
))
519 $(eval
$(call add_include_file
,kernel
/register.h
))
520 $(eval
$(call add_include_file
,kernel
/celltypes.h
))
521 $(eval
$(call add_include_file
,kernel
/celledges.h
))
522 $(eval
$(call add_include_file
,kernel
/consteval.h
))
523 $(eval
$(call add_include_file
,kernel
/sigtools.h
))
524 $(eval
$(call add_include_file
,kernel
/modtools.h
))
525 $(eval
$(call add_include_file
,kernel
/macc.h
))
526 $(eval
$(call add_include_file
,kernel
/utils.h
))
527 $(eval
$(call add_include_file
,kernel
/satgen.h
))
528 $(eval
$(call add_include_file
,libs
/ezsat
/ezsat.h
))
529 $(eval
$(call add_include_file
,libs
/ezsat
/ezminisat.h
))
530 $(eval
$(call add_include_file
,libs
/sha1
/sha1.h
))
531 $(eval
$(call add_include_file
,libs
/json11
/json11.hpp
))
532 $(eval
$(call add_include_file
,passes
/fsm
/fsmdata.h
))
533 $(eval
$(call add_include_file
,frontends
/ast
/ast.h
))
534 $(eval
$(call add_include_file
,backends
/ilang
/ilang_backend.h
))
536 OBJS
+= kernel
/driver.o kernel
/register.o kernel
/rtlil.o kernel
/log.o kernel
/calc.o kernel
/yosys.o
537 OBJS
+= kernel
/cellaigs.o kernel
/celledges.o
539 kernel
/log.o
: CXXFLAGS
+= -DYOSYS_SRC
='"$(YOSYS_SRC)"'
540 kernel
/yosys.o
: CXXFLAGS
+= -DYOSYS_DATDIR
='"$(DATDIR)"'
542 OBJS
+= libs
/bigint
/BigIntegerAlgorithms.o libs
/bigint
/BigInteger.o libs
/bigint
/BigIntegerUtils.o
543 OBJS
+= libs
/bigint
/BigUnsigned.o libs
/bigint
/BigUnsignedInABase.o
545 OBJS
+= libs
/sha1
/sha1.o
549 OBJS
+= libs
/json11
/json11.o
551 OBJS
+= libs
/subcircuit
/subcircuit.o
553 OBJS
+= libs
/ezsat
/ezsat.o
554 OBJS
+= libs
/ezsat
/ezminisat.o
556 OBJS
+= libs
/minisat
/Options.o
557 OBJS
+= libs
/minisat
/SimpSolver.o
558 OBJS
+= libs
/minisat
/Solver.o
559 OBJS
+= libs
/minisat
/System.o
561 include $(YOSYS_SRC
)/frontends
/*/Makefile.inc
562 include $(YOSYS_SRC
)/passes
/*/Makefile.inc
563 include $(YOSYS_SRC
)/backends
/*/Makefile.inc
564 include $(YOSYS_SRC
)/techlibs
/*/Makefile.inc
568 include frontends
/verilog
/Makefile.inc
569 include frontends
/ilang
/Makefile.inc
570 include frontends
/ast
/Makefile.inc
571 include frontends
/blif
/Makefile.inc
573 OBJS
+= passes
/hierarchy
/hierarchy.o
574 OBJS
+= passes
/cmds
/select.o
575 OBJS
+= passes
/cmds
/show.o
576 OBJS
+= passes
/cmds
/stat.o
577 OBJS
+= passes
/cmds
/cover.o
578 OBJS
+= passes
/cmds
/design.o
579 OBJS
+= passes
/cmds
/plugin.o
581 include passes
/proc
/Makefile.inc
582 include passes
/opt
/Makefile.inc
583 include passes
/techmap
/Makefile.inc
585 include backends
/verilog
/Makefile.inc
586 include backends
/ilang
/Makefile.inc
588 include techlibs
/common
/Makefile.inc
593 OBJS
+= yosys-libabc.a
596 top-all
: $(TARGETS
) $(EXTRA_TARGETS
)
598 @echo
" Build successful."
601 ifeq ($(CONFIG
),emcc
)
602 yosys.js
: $(filter-out yosysjs-
$(YOSYS_VER
).zip
,$(EXTRA_TARGETS
))
606 $(P
) $(LD
) -o yosys
$(EXE
) $(LDFLAGS
) $(OBJS
) $(LDLIBS
)
608 libyosys.so
: $(filter-out kernel
/driver.o
,$(OBJS
))
610 $(P
) $(LD
) -o libyosys.so
-shared
-Wl
,-install_name
,libyosys.so
$(LDFLAGS
) $^
$(LDLIBS
)
612 $(P
) $(LD
) -o libyosys.so
-shared
-Wl
,-soname
,libyosys.so
$(LDFLAGS
) $^
$(LDLIBS
)
616 $(Q
) mkdir
-p
$(dir $@
)
617 $(P
) $(CXX
) -o
$@
-c
$(CPPFLAGS
) $(CXXFLAGS
) $<
620 $(Q
) mkdir
-p
$(dir $@
)
621 $(P
) cat
$< | grep
-E
-v
"#[ ]*(include|error)" |
$(LD
) -x c
++ -o
$@
-E
-P
-
623 ifeq ($(ENABLE_PYOSYS
),1)
624 $(PY_WRAPPER_FILE
).
cc: misc
/$(PY_GEN_SCRIPT
).py
$(PY_WRAP_INCLUDES
)
625 $(Q
) mkdir
-p
$(dir $@
)
626 $(P
) python
$(PYTHON_VERSION
) -c
"from misc import $(PY_GEN_SCRIPT); $(PY_GEN_SCRIPT).gen_wrappers(\"$(PY_WRAPPER_FILE).cc\")"
630 $(Q
) mkdir
-p
$(dir $@
)
631 $(P
) $(CXX
) -o
$@
-c
$(CPPFLAGS
) $(CXXFLAGS
) $<
633 YOSYS_VER_STR
:= Yosys
$(YOSYS_VER
) (git sha1
$(GIT_REV
), $(notdir $(CXX
)) $(shell \
634 $(CXX
) --version | tr
' ()' '\n' | grep
'^[0-9]' | head
-n1
) $(filter -f
% -m
% -O
% -DNDEBUG
,$(CXXFLAGS
)))
636 kernel
/version_
$(GIT_REV
).
cc: $(YOSYS_SRC
)/Makefile
637 $(P
) rm -f kernel
/version_
*.o kernel
/version_
*.d kernel
/version_
*.
cc
638 $(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
640 ifeq ($(ENABLE_VERIFIC
),1)
641 CXXFLAGS_NOVERIFIC
= $(foreach v
,$(CXXFLAGS
),$(if
$(findstring $(VERIFIC_DIR
),$(v
)),,$(v
)))
642 LDLIBS_NOVERIFIC
= $(foreach v
,$(LDLIBS
),$(if
$(findstring $(VERIFIC_DIR
),$(v
)),,$(v
)))
644 CXXFLAGS_NOVERIFIC
= $(CXXFLAGS
)
645 LDLIBS_NOVERIFIC
= $(LDLIBS
)
648 yosys-config
: misc
/yosys-config.in
649 $(P
) $(SED
) -e
's#@CXXFLAGS@#$(subst -I. -I"$(YOSYS_SRC)",-I"$(DATDIR)/include",$(strip $(CXXFLAGS_NOVERIFIC)))#;' \
650 -e
's#@CXX@#$(strip $(CXX))#;' -e
's#@LDFLAGS@#$(strip $(LDFLAGS) $(PLUGIN_LDFLAGS))#;' -e
's#@LDLIBS@#$(strip $(LDLIBS_NOVERIFIC))#;' \
651 -e
's#@BINDIR@#$(strip $(BINDIR))#;' -e
's#@DATDIR@#$(strip $(DATDIR))#;' < $< > yosys-config
652 $(Q
) chmod
+x yosys-config
654 abc
/abc-
$(ABCREV
)$(EXE
) abc
/libabc-
$(ABCREV
).a
:
656 ifneq ($(ABCREV
),default
)
657 $(Q
) if
test -d abc
/.hg
; then \
658 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
; \
660 $(Q
) if
( cd abc
2> /dev
/null
&& ! git diff-index
--quiet HEAD
; ); then \
661 echo
'REEBE: NOP pbagnvaf ybpny zbqvsvpngvbaf! Frg NOPERI=qrsnhyg va Lbflf Znxrsvyr!' | tr
'A-Za-z' 'N-ZA-Mn-za-m'; false
; \
663 $(Q
) if
test "`cd abc 2> /dev/null && git rev-parse --short HEAD`" != "$(ABCREV)"; then \
664 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; }; \
665 echo
"Pulling ABC from $(ABCURL):"; set
-x
; \
666 test -d abc || git clone
$(ABCURL
) abc
; \
667 cd abc
&& $(MAKE
) DEP
= clean && git fetch
origin master
&& git checkout
$(ABCREV
); \
670 $(Q
) rm -f abc
/abc-
[0-9a-f
]*
671 $(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
)
673 ifeq ($(ABCREV
),default
)
674 .PHONY
: abc
/abc-
$(ABCREV
)$(EXE
)
675 .PHONY
: abc
/libabc-
$(ABCREV
).a
678 yosys-abc
$(EXE
): abc
/abc-
$(ABCREV
)$(EXE
)
679 $(P
) cp abc
/abc-
$(ABCREV
)$(EXE
) yosys-abc
$(EXE
)
681 yosys-libabc.a
: abc
/libabc-
$(ABCREV
).a
682 $(P
) cp abc
/libabc-
$(ABCREV
).a yosys-libabc.a
690 ifneq ($(ABCEXTERNAL
),)
691 ABCOPT
="-A $(ABCEXTERNAL)"
696 test: $(TARGETS
) $(EXTRA_TARGETS
)
697 +cd tests
/simple
&& bash run-test.sh
$(SEEDOPT
)
698 +cd tests
/simple_abc9
&& bash run-test.sh
$(SEEDOPT
)
699 +cd tests
/hana
&& bash run-test.sh
$(SEEDOPT
)
700 +cd tests
/asicworld
&& bash run-test.sh
$(SEEDOPT
)
701 # +cd tests/realmath && bash run-test.sh $(SEEDOPT)
702 +cd tests
/share
&& bash run-test.sh
$(SEEDOPT
)
703 +cd tests
/opt_share
&& bash run-test.sh
$(SEEDOPT
)
704 +cd tests
/fsm
&& bash run-test.sh
$(SEEDOPT
)
705 +cd tests
/techmap
&& bash run-test.sh
706 +cd tests
/memories
&& bash run-test.sh
$(ABCOPT
) $(SEEDOPT
)
707 +cd tests
/bram
&& bash run-test.sh
$(SEEDOPT
)
708 +cd tests
/various
&& bash run-test.sh
709 +cd tests
/sat
&& bash run-test.sh
710 +cd tests
/svinterfaces
&& bash run-test.sh
$(SEEDOPT
)
711 +cd tests
/proc
&& bash run-test.sh
712 +cd tests
/opt
&& bash run-test.sh
713 +cd tests
/aiger
&& bash run-test.sh
$(ABCOPT
)
714 +cd tests
/arch
&& bash run-test.sh
715 +cd tests
/ice40
&& bash run-test.sh
$(SEEDOPT
)
716 +cd tests
/rpc
&& bash run-test.sh
718 @echo
" Passed \"make test\"."
721 VALGRIND ?
= valgrind
--error-exitcode
=1 --leak-check
=full
--show-reachable
=yes
--errors-for-leak-kinds
=all
723 vgtest
: $(TARGETS
) $(EXTRA_TARGETS
)
724 $(VALGRIND
) .
/yosys
-p
'setattr -mod -unset top; synth' $$( ls tests
/simple
/*.v | grep
-v repwhile.v
)
726 @echo
" Passed \"make vgtest\"."
729 vloghtb
: $(TARGETS
) $(EXTRA_TARGETS
)
730 +cd tests
/vloghtb
&& bash run-test.sh
732 @echo
" Passed \"make vloghtb\"."
735 ystests
: $(TARGETS
) $(EXTRA_TARGETS
)
737 git clone https
://github.com
/YosysHQ
/yosys-tests.git tests
/ystests
738 +$(MAKE
) PATH
="$$PWD:$$PATH" -C tests
/ystests
740 @echo
" Finished \"make ystests\"."
744 unit-test
: libyosys.so
745 @
$(MAKE
) -C
$(UNITESTPATH
) CXX
="$(CXX)" CPPFLAGS
="$(CPPFLAGS)" \
746 CXXFLAGS
="$(CXXFLAGS)" LDLIBS
="$(LDLIBS)" ROOTPATH
="$(CURDIR)"
749 @
$(MAKE
) -C
$(UNITESTPATH
) clean
751 install: $(TARGETS
) $(EXTRA_TARGETS
)
752 $(INSTALL_SUDO
) mkdir
-p
$(DESTDIR
)$(BINDIR
)
753 $(INSTALL_SUDO
) cp
$(TARGETS
) $(DESTDIR
)$(BINDIR
)
754 ifneq ($(filter yosys
,$(TARGETS
)),)
755 $(INSTALL_SUDO
) $(STRIP
) -S
$(DESTDIR
)$(BINDIR
)/yosys
757 ifneq ($(filter yosys-abc
,$(TARGETS
)),)
758 $(INSTALL_SUDO
) $(STRIP
) $(DESTDIR
)$(BINDIR
)/yosys-abc
760 ifneq ($(filter yosys-filterlib
,$(TARGETS
)),)
761 $(INSTALL_SUDO
) $(STRIP
) $(DESTDIR
)$(BINDIR
)/yosys-filterlib
763 $(INSTALL_SUDO
) mkdir
-p
$(DESTDIR
)$(DATDIR
)
764 $(INSTALL_SUDO
) cp
-r share
/.
$(DESTDIR
)$(DATDIR
)/.
765 ifeq ($(ENABLE_LIBYOSYS
),1)
766 $(INSTALL_SUDO
) mkdir
-p
$(DESTDIR
)$(LIBDIR
)
767 $(INSTALL_SUDO
) cp libyosys.so
$(DESTDIR
)$(LIBDIR
)/
768 $(INSTALL_SUDO
) $(STRIP
) -S
$(DESTDIR
)$(LIBDIR
)/libyosys.so
769 ifeq ($(ENABLE_PYOSYS
),1)
770 $(INSTALL_SUDO
) mkdir
-p
$(PYTHON_DESTDIR
)/pyosys
771 $(INSTALL_SUDO
) cp libyosys.so
$(PYTHON_DESTDIR
)/pyosys
/
772 $(INSTALL_SUDO
) cp misc
/__init__.py
$(PYTHON_DESTDIR
)/pyosys
/
777 $(INSTALL_SUDO
) rm -vf
$(addprefix $(DESTDIR
)$(BINDIR
)/,$(notdir $(TARGETS
)))
778 $(INSTALL_SUDO
) rm -rvf
$(DESTDIR
)$(DATDIR
)
779 ifeq ($(ENABLE_LIBYOSYS
),1)
780 $(INSTALL_SUDO
) rm -vf
$(DESTDIR
)$(LIBDIR
)/libyosys.so
781 ifeq ($(ENABLE_PYOSYS
),1)
782 $(INSTALL_SUDO
) rm -vf
$(PYTHON_DESTDIR
)/pyosys
/libyosys.so
783 $(INSTALL_SUDO
) rm -vf
$(PYTHON_DESTDIR
)/pyosys
/__init__.py
784 $(INSTALL_SUDO
) rmdir
$(PYTHON_DESTDIR
)/pyosys
788 update-manual
: $(TARGETS
) $(EXTRA_TARGETS
)
789 cd manual
&& ..
/yosys
-p
'help -write-tex-command-reference-manual'
791 manual
: $(TARGETS
) $(EXTRA_TARGETS
)
792 cd manual
&& bash appnotes.sh
793 cd manual
&& bash presentation.sh
794 cd manual
&& bash manual.sh
799 if
test -d manual
; then cd manual
&& sh
clean.sh
; fi
800 rm -f
$(OBJS
) $(GENFILES
) $(TARGETS
) $(EXTRA_TARGETS
) $(EXTRA_OBJS
) $(PY_WRAP_INCLUDES
) $(PY_WRAPPER_FILE
).
cc
801 rm -f kernel
/version_
*.o kernel
/version_
*.
cc
802 rm -f libs
/*/*.d frontends
/*/*.d passes
/*/*.d backends
/*/*.d kernel
/*.d techlibs
/*/*.d
803 rm -rf tests
/asicworld
/*.out tests
/asicworld
/*.log
804 rm -rf tests
/hana
/*.out tests
/hana
/*.log
805 rm -rf tests
/simple
/*.out tests
/simple
/*.log
806 rm -rf tests
/memories
/*.out tests
/memories
/*.log tests
/memories
/*.dmp
807 rm -rf tests
/sat
/*.log tests
/techmap
/*.log tests
/various
/*.log
808 rm -rf tests
/bram
/temp tests
/fsm
/temp tests
/realmath
/temp tests
/share
/temp tests
/smv
/temp
809 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_
*
810 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
811 rm -f tests
/tools
/cmp_tbdata
814 $(MAKE
) -C abc DEP
= clean
815 rm -f yosys-abc
$(EXE
) yosys-libabc.a abc
/abc-
[0-9a-f
]* abc
/libabc-
[0-9a-f
]*.a
821 .
/yosys
-qp
'help; help -all'
822 rm -rf coverage.
info coverage_html
823 lcov
--capture
-d .
--no-external
-o coverage.
info
824 genhtml coverage.
info --output-directory coverage_html
827 { for file in
$(basename $(OBJS
)); do \
828 for
prefix in
cc y l
; do if
[ -f
$${file}.
$${prefix} ]; then echo
$$file.
$${prefix}; fi
; done \
829 done
; find backends frontends kernel libs passes
-type f \
( -name
'*.h' -o
-name
'*.hh' \
); } > qtcreator.files
830 { echo .
; find backends frontends kernel libs passes
-type f \
( -name
'*.h' -o
-name
'*.hh' \
) -printf
'%h\n' |
sort -u
; } > qtcreator.includes
831 touch qtcreator.config qtcreator.creator
833 vcxsrc
: $(GENFILES
) $(EXTRA_TARGETS
)
834 rm -rf yosys-win32-vcxsrc-
$(YOSYS_VER
){,.zip
}
835 set
-e
; for f in
`ls $(filter %.cc %.cpp,$(GENFILES)) $(addsuffix .cc,$(basename $(OBJS))) $(addsuffix .cpp,$(basename $(OBJS))) 2> /dev/null`; do \
836 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
837 bash misc
/create_vcxsrc.sh yosys-win32-vcxsrc
$(YOSYS_VER
) $(GIT_REV
)
838 echo
"namespace Yosys { extern const char *yosys_version_str; const char *yosys_version_str=\"Yosys (Version Information Unavailable)\"; }" > kernel
/version.
cc
839 zip yosys-win32-vcxsrc-
$(YOSYS_VER
)/genfiles.zip
$(GENFILES
) kernel
/version.
cc
840 zip
-r yosys-win32-vcxsrc-
$(YOSYS_VER
).zip yosys-win32-vcxsrc-
$(YOSYS_VER
)/
841 rm -f srcfiles.txt kernel
/version.
cc
844 mxebin
: $(TARGETS
) $(EXTRA_TARGETS
)
845 rm -rf yosys-win32-mxebin-
$(YOSYS_VER
){,.zip
}
846 mkdir
-p yosys-win32-mxebin-
$(YOSYS_VER
)
847 cp
-r yosys.exe share
/ yosys-win32-mxebin-
$(YOSYS_VER
)/
848 ifeq ($(ENABLE_ABC
),1)
849 cp
-r yosys-abc.exe abc
/lib
/x86
/pthreadVC2.dll yosys-win32-mxebin-
$(YOSYS_VER
)/
851 echo
-en
'This is Yosys $(YOSYS_VER) for Win32.\r\n' > yosys-win32-mxebin-
$(YOSYS_VER
)/readme.txt
852 echo
-en
'Documentation at http://www.clifford.at/yosys/.\r\n' >> yosys-win32-mxebin-
$(YOSYS_VER
)/readme.txt
853 zip
-r yosys-win32-mxebin-
$(YOSYS_VER
).zip yosys-win32-mxebin-
$(YOSYS_VER
)/
860 echo
'CONFIG := clang' > Makefile.conf
863 echo
'CONFIG := gcc' > Makefile.conf
865 config-gcc-static
: clean
866 echo
'CONFIG := gcc-static' > Makefile.conf
867 echo
'ENABLE_PLUGINS := 0' >> Makefile.conf
868 echo
'ENABLE_READLINE := 0' >> Makefile.conf
869 echo
'ENABLE_TCL := 0' >> Makefile.conf
871 config-gcc-4.8
: clean
872 echo
'CONFIG := gcc-4.8' > Makefile.conf
874 config-afl-gcc
: clean
875 echo
'CONFIG := afl-gcc' > Makefile.conf
878 echo
'CONFIG := emcc' > Makefile.conf
879 echo
'ENABLE_TCL := 0' >> Makefile.conf
880 echo
'ENABLE_ABC := 0' >> Makefile.conf
881 echo
'ENABLE_PLUGINS := 0' >> Makefile.conf
882 echo
'ENABLE_READLINE := 0' >> Makefile.conf
885 echo
'CONFIG := mxe' > Makefile.conf
886 echo
'ENABLE_PLUGINS := 0' >> Makefile.conf
889 echo
'CONFIG := msys2' > Makefile.conf
890 echo
'ENABLE_PLUGINS := 0' >> Makefile.conf
892 config-msys2-64
: clean
893 echo
'CONFIG := msys2-64' > Makefile.conf
894 echo
'ENABLE_PLUGINS := 0' >> Makefile.conf
897 echo
'CONFIG := cygwin' > Makefile.conf
900 echo
'CONFIG := gcc' > Makefile.conf
901 echo
'ENABLE_GCOV := 1' >> Makefile.conf
902 echo
'ENABLE_DEBUG := 1' >> Makefile.conf
905 echo
'CONFIG := gcc' > Makefile.conf
906 echo
'ENABLE_GPROF := 1' >> Makefile.conf
909 echo
"INSTALL_SUDO := sudo" >> Makefile.conf
918 -include frontends
/*/*.d
919 -include passes
/*/*.d
920 -include backends
/*/*.d
922 -include techlibs
/*/*.d
924 .PHONY
: all top-all abc
test install install-abc manual
clean mrproper qtcreator coverage vcxsrc mxebin
925 .PHONY
: config-clean config-clang config-gcc config-gcc-static config-gcc-4.8 config-afl-gcc config-gprof config-sudo