-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (26 loc) · 892 Bytes
/
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
MODULE=run.x
WORK=.
SYSTEMC_LIB=$(firstword $(wildcard $(SYSTEMC)/lib*))
.PHONY: all clean
all:
@echo "+++++++++++++++++++++++++++++++++"
@echo "Compiling a SystemC example"
g++ -O0 -g -ggdb -Wno-deprecated\
-DDEBUG_SYSTEMC\
-I$(WORK)/ -I$(SYSTEMC)/include -I/include\
-c $(WORK)/matrix_mult.cpp
g++ -O0 -g -ggdb -Wno-deprecated\
-DDEBUG_SYSTEMC\
-I$(WORK)/ -I$(SYSTEMC)/include -I/include\
-c $(WORK)/main.cpp
g++ -O0 -g -ggdb -Wno-deprecated\
-DDEBUG_SYSTEMC\
-I$(WORK)/ -I$(SYSTEMC)/include -I/include\
-L$(WORK)/ -L$(SYSTEMC_LIB)\
-o $(WORK)/$(MODULE) \
$(WORK)/matrix_mult.o $(WORK)/main.o\
-lsystemc -lm 2>&1 | c++filt
@echo "+++ Executing +++++++++++++++++++"
$(WORK)/$(MODULE)
clean:
rm -fr *.o *.x *.deps dependencies.mk *~