-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (55 loc) · 1.36 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
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
#
# TU Eindhoven
# Eindhoven, The Netherlands
#
# Author : Sander Stuijk ([email protected])
#
# Date : March 29, 2002
#
# History :
# 13-04-11 : Add sdf as dependency for fsmsadf (M.L.P.J. Koedam)
#
MAKE = make
MAKEFLAGS = --no-print-directory
SDF3ROOT = $(PWD)
export SDF3ROOT
MODULES = base sdf csdf fsmsadf sadf tools
.PHONY: doc $(MODULES)
# Settings
include $(SDF3ROOT)/etc/Makefile.inc
# Default target (build all)
default: all
# Build all modules
all: $(MODULES)
# Build single module and its dependencies
base:
@echo ""
@echo "### Module "$@
@cd $@ && MODULE=$@ $(MAKE) $(MAKEFLAGS) && cd .. ;
sdf: base
@echo ""
@echo "### Module "$@
@cd $@ && MODULE=$@ $(MAKE) $(MAKEFLAGS) && cd .. ;
csdf: sdf fsmsadf
@echo ""
@echo "### Module "$@
@cd $@ && MODULE=$@ $(MAKE) $(MAKEFLAGS) && cd .. ;
sadf: csdf fsmsadf
@echo ""
@echo "### Module "$@
@cd $@ && MODULE=$@ $(MAKE) $(MAKEFLAGS) && cd .. ;
fsmsadf: sdf
@echo ""
@echo "### Module "$@
@cd $@ && MODULE=$@ $(MAKE) $(MAKEFLAGS) && cd .. ;
tools:
@echo ""
@echo "### Module "$@
@cd $@ && MODULE=$@ $(MAKE) $(MAKEFLAGS) && cd .. ;
# Cleanup
clean:
@echo Cleaning...
@$(RM) $(BLD_DIR)/work $(BLD_DIR)/release $(BLD_DIR)/Debug $(BLD_DIR)/Release $(BLD_DIR)/doc $(CLEAN)
# Documentation
doc:
cd doc && doxygen doxygen.cfg && cd .. ;