-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
58 lines (51 loc) · 2.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# Copyright (C) 2018 The Connectal Project
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
V?=0
ifeq ($(V),0)
Q=@
else
Q=
endif
SOURCES = main.cpp verilog.cpp util.cpp interfaces.cpp \
expr.cpp filegen.cpp readIR.cpp software.cpp metaGen.cpp preprocessIR.cpp kami.cpp
KAMI_SOURCES = kmain.cpp kami.cpp util.cpp readIR.cpp expr.cpp preprocessIR.cpp
LINKER_SOURCES = atomiccLinker.cpp util.cpp readIR.cpp expr.cpp
IMPORT_SOURCES := atomiccImport.cpp util.cpp readIR.cpp expr.cpp
CUDDINC = -I../cudd/cudd
CJSONINC = -I../cJSON
CUDDLIB = ../cudd/cudd/.libs/libcudd.a
CFLAGS := -std=c++11 \
-fblocks -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -fPIC \
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS \
-pedantic \
-Wall -W \
-Werror=date-time -Wno-long-long -Wno-unused-parameter \
-Wwrite-strings -Wcovered-switch-default -Wcast-qual \
-Wmissing-field-initializers -Wstring-conversion \
-Wnon-virtual-dtor -Wdelete-non-virtual-dtor \
-I. $(CUDDINC) $(CJSONINC)
all: veriloggen kamigen atomiccImport atomiccLinker dumpJson
veriloggen: $(SOURCES) *.h
$(Q)clang++ -g -o veriloggen $(CFLAGS) $(SOURCES) -lBlocksRuntime $(CUDDLIB)
kamigen: $(KAMI_SOURCES) *.h
$(Q)clang++ -g -o kamigen $(CFLAGS) $(KAMI_SOURCES) -lBlocksRuntime $(CUDDLIB)
atomiccLinker: $(LINKER_SOURCES) *.h
$(Q)clang++ -g -o atomiccLinker $(CFLAGS) $(LINKER_SOURCES) -lBlocksRuntime $(CUDDLIB)
atomiccImport: $(IMPORT_SOURCES) *.h
$(Q)clang++ -g -o atomiccImport $(CFLAGS) $(IMPORT_SOURCES) $(CUDDLIB)
clean:
rm -f veriloggen atomiccImport