forked from ejspeiro/MTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (42 loc) · 1.16 KB
/
Makefile
File metadata and controls
55 lines (42 loc) · 1.16 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
## Main makefile.
include Makefile.inc
all: mtklib test example
mtklib:
@( cd $(SRC); $(MAKE) )
test:
@( cd $(TESTS); $(MAKE) )
example:
@( cd $(EXAMPLES); $(MAKE) )
gendoc:
@( $(DOCGEN) $(DOCFILE) )
@( cd $(DOC)/latex; $(MAKE) )
clean: cleanroot cleanlib cleantest cleanexample
cleanroot:
@(rm -f *~)
cleanlib:
@( cd $(SRC); $(MAKE) clean )
@( cd $(LIB); $(MAKE) clean )
cleantest:
@( cd $(TESTS); $(MAKE) clean )
cleanexample:
@( cd $(EXAMPLES); $(MAKE) clean )
memcheck:
@( cd $(TESTS); $(MAKE) memcheck)
@( cd $(EXAMPLES); $(MAKE) memcheck)
help:
@echo '-----'
@echo 'Makefile for the MTK.'
@echo ' '
@echo 'Options are:'
@echo '- all: builds he library, the tests, and examples.'
@echo '- mtklib: builds the library.'
@echo '- test: builds the test files.'
@echo '- example: builds the examples.'
@echo ' '
@echo '- gendoc: generates the documentation for the library.'
@echo ' '
@echo '- clean: cleans ALL the generated files.'
@echo '- cleanlib: cleans the generated archive and object files.'
@echo '- cleantest: cleans the generated tests executables.'
@echo '- cleanexample: cleans the generated examples executables.'
@echo '-----'