-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (37 loc) · 1.13 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
# ------------------------------------
# Main Makefile
# ------------------------------------
SHELL = /bin/bash
# targets
.DEFAULT_GOAL := all
.PHONY: all
all:
# @cd source && make depend && make
@cd source && make
.PHONY: module
module:
@cd source && make module
.PHONY: TEST_%
TEST_%:
@cd source && make [email protected]
.PHONY: clean
clean:
@cd source && make clean
# .PHONY: cleanall
# cleanall:
# @cd source && make clean
# @echo "[CLEAN] Removing module dependency file"
# @cd source && rm -rf .depend
.PHONY: help
help:
@echo "QuickPIC makefile usage: make [options] [sys=system_name]"
@echo ""
@echo "sys - specify the system configure file. These files are located in config directory."
@echo " Argument system_name must be same with the suffix of configure file."
@echo ""
@echo "Options:"
@echo "all - (default) make the main executable of QuickPIC"
@echo "TEST_*.e - generate test executable corresponding to the test source file in test directory."
@echo " 'make module' must be conducted before."
@echo "clean - remove build directory."
@echo "help - show this help list"