-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
36 lines (25 loc) · 1006 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
# How this is organized.
displayhelp:
@echo "Choose target among the following:"
@echo
@sed -n 's/^\([a-z0-9_-]*\):.*$$/make \1/p' Makefile
.PHONY: hello_world_using_z88dk hello_world_using_sdcc hello_world_using_sdcc-all cpcrslib cpcrslib-all sdcc-all test-custom-project
hello_world_using_z88dk: hello_world_using_z88dk/Makefile
LC_ALL=C $(MAKE) -C $@ all
hello_world_using_sdcc: hello_world_using_sdcc/Makefile
LC_ALL=C $(MAKE) -C $@ all
hello_world_using_sdcc-all: hello_world_using_sdcc/Makefile
LC_ALL=C $(MAKE) -C $(<D) all
cpcrslib: cpclib/cpcrslib/Makefile
LC_ALL=C $(MAKE) -C $(<D)
cpcrslib-all: cpclib/cpcrslib/Makefile
LC_ALL=C $(MAKE) -C $(<D) all
#distclean:
# ( find . -type d -print -exec bash -c "cd '{}' ; make clean ; make mrproper ; make distclean" \; ; )
sdcc-all: test-custom-project hello_world_using_sdcc-all
#cpcrslib-all
test-custom-project:
( maintainer-tools/test_custom_project.sh ; )
test:
LC_ALL=C $(MAKE) -C tests
# LC_ALL=C $(MAKE) -C cpclib/cfwi/test