This repository was archived by the owner on Jul 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
91 lines (80 loc) · 2.52 KB
/
Copy pathMakefile
File metadata and controls
91 lines (80 loc) · 2.52 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
circuitname := './designs/bm1'
plfile := './bin/final_placement.pl'
outfile := './placement.png'
all:
+$(MAKE) -C src
mv src/annealer ./bin
graphs:
echo creating graphs
circuitname := './designs/bm1'
plfile := './bin/cache/10.pl'
outfile := './tst'
plot: # should be like -> %.png: %.brd %.pl...
echo creating plots
python3 src/py_utils/make_plots.py --brd $(circuitname) --pl $(plfile) --out $(outfile) --reports reports
animate_plot: # should be like -> %.gif: %.brd %.pl...
circuitname = bm3
figname = plot.gif
echo creating animation
python3 src/py_utils/make_plots.py
animate_graphs: # should be like -> %.graph.gif: %.brd %.pl...
circuitname=bm3
figname=plot.gif
echo creating animation
python3 src/py_utils/make_plots.py
convert: # should be several rules like make %.nodes, %.pl, %.nodes and so on
# also need different rules that have different file dependancies, one for .kicad_pcb, .eagle.brd (eagle), .esir.xml and so on
if [ ! -d "./module/eagle2bookshelf" ]; then \
echo downloading eagle2bookshelf tool; \
git clone https://github.com/djmerrill/eagle2bookshelf.git; \
fi
if [ ! -f "./module/eagle2bookshelf/DRU.py" ]; then \
echo downloading DRU library; \
wget https://raw.githubusercontent.com/NVSL/Swoop/master/Swoop/DRU.py -P ./module/eagle2bookshelf/; \
fi
if [ ! -d "./cache" ]; then \
echo "creating cache directory"; \
mkdir "cache"; \
fi
if [ ! -d "./cache/designs" ]; then \
echo "creating cache/designs directory"; \
mkdir "./cache/designs"; \
fi
echo "converting from eagle to bookshelf"
python module/eagle2bookshelf/eagle2bookshelf2012.py --brd $(EAGLEFILE) --output_prfx $(BOOKSHELFPRFX) --userid annealer
mv $(BOOKSHELFPRFX).nodes ./cache/designs
mv $(BOOKSHELFPRFX).nets ./cache/designs
mv $(BOOKSHELFPRFX).pl ./cache/designs
mv $(BOOKSHELFPRFX).wts ./cache/designs
install:
cp -r cpp-taskflow/taskflow .
if [ ! -d "./cache" ]; then \
echo "creating cache directory"; \
mkdir "cache"; \
fi
if [ ! -d "./cache/img" ]; then \
echo "creating cache/img directory"; \
mkdir "./cache/img"; \
fi
if [ ! -d "./cache/designs" ]; then \
echo "creating cache/designs directory"; \
mkdir "./cache/designs"; \
fi
if [ ! -d "./cache_rudy" ]; then \
echo "creating rudy cache directory"; \
mkdir "./cache_rudy"; \
fi
if [ ! -d "./reports" ]; then \
echo "creating reports directory"; \
mkdir "reports"; \
fi
test:
cd ./test
./run.sh
clean :
-rm src/*.o
-rm cache/*.pl
-rm cache/designs/*.pl
-rm cache/img/*.png
-rm cache_rudy/*.txt
-rm reports/*.txt