-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
69 lines (54 loc) · 1.79 KB
/
makefile
File metadata and controls
69 lines (54 loc) · 1.79 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
# This file is part of Realtimestagram.
#
# Realtimestagram is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# Realtimestagram 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 Realtimestagram. If not, see <http://www.gnu.org/licenses/>.
#
# To seperate source from build files, export them to the seperate bld folder
TMPDIR=tmp
BLDTMPDIR=bld/tmp
BLDDIR=bld
TSTDIR=tst
TST_OUT_DIR=tst/output
MKDIR_P = mkdir -p
TESTBENCHES = sigmoid_tb gamma_tb vignette_tb sepia_tb rgb2hsv_tb hsv2rgb_tb
TESTSETS = lomo_testsets_tb sepia_testsets_tb rgb2hsv_testsets_tb hsv2rgb_testsets_tb
VIEW_CMD = /usr/bin/gtkwave
.PHONY: all clean directories docs test
all: directories test_benches
test_benches:
@cd src; make
clean:
@cd doc; make clean
@cd src; make clean
@rm -rf $(BLDDIR)/*;echo "Cleared $(BLDDIR)"
@rm -rf $(TST_OUT_DIR)/*;echo "Cleared $(TST_OUT_DIR)"
directories:
${MKDIR_P} ${BLDDIR}
${MKDIR_P} ${BLDTMPDIR}
${MKDIR_P} ${TST_OUT_DIR}
${MKDIR_P} ${TMPDIR}
docs:
@cd doc; make
%_tb: all
@echo "Starting $@"
@$(BLDDIR)/$@ --wave=$(TMPDIR)/$@.ghw
@echo "> Done: wavefile saved as $(TMPDIR)/$@.ghw"
%_testsets_tb: all
@echo "Starting $@"
@$(BLDDIR)/$@
@echo "> Done"
test: $(TESTBENCHES)
@echo "> Done: running testbenches $(TESTBENCHES)"
@$(TSTDIR)/utils/run_tests.sh
testsets: $(TESTSETS)
@echo "> Done: running testsets $(TESTSETS)"