forked from embeddedartistry/embedded-resources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (44 loc) · 1004 Bytes
/
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
# you can set this to 1 to see all commands that are being run
export VERBOSE := 0
ifeq ($(VERBOSE),1)
export Q :=
export VERBOSE := 1
else
export Q := @
export VERBOSE := 0
endif
export BUILDTOP := $(shell pwd)
export BUILDRESULTS := $(shell pwd)/buildresults/
all: c cpp interview libc libcpp
.PHONY: c
c:
$(Q)echo Building C Examples
$(Q)make -C examples/c/
.PHONY: cpp
cpp:
$(Q)echo Building CPP Examples
$(Q)make -C examples/cpp/
.PHONY: interview
interview:
$(Q)echo Building Interview Examples
$(Q)make -C interview/
.PHONY: libc
libc:
$(Q)echo Building libc
$(Q)make -C examples/libc
.PHONY: libcpp
libcpp:
$(Q)echo Building libcpp
$(Q)make -C examples/libcpp
.PHONY: clean
clean:
$(Q)echo Cleaning Build Output
$(Q)rm -rf $(BUILDRESULTS)
ifneq ("$(wildcard $(BUILDRESULTS))","")
$(Q)rm -rf $(BUILDRESULTS)
endif
$(Q)make -C examples/libc clean
$(Q)make -C interview clean
$(Q)make -C examples/cpp clean
$(Q)make -C examples/c clean
$(Q)make -C examples/libcpp clean