source: Make/Makedirrules @ 12

Revision 12, 691 bytes checked in by art, 13 years ago (diff)
  • Friendly thread execution added (yielding of threads and main thread)
  • Test directory added, where simple test programms will be build
  • Each Makefile now contains the TOPDIR variable
Line 
1#-----------------------------------------------
2# Define variables for simpler creating
3# makefiles in subdirectories
4#-----------------------------------------------
5MAKE_TARGET_BEGIN =\
6        @ $(SHELL) -c 'subd="$(SUBDIRS)";\
7        for f in $$subd; do\
8                (cd $$f && make
9               
10MAKE_TARGET_END = ); done;'
11
12all:
13        $(MAKE_TARGET_BEGIN) all $(MAKE_TARGET_END)
14
15clean:
16        $(MAKE_TARGET_BEGIN) clean $(MAKE_TARGET_END)
17       
18depend:
19        $(MAKE_TARGET_BEGIN) depend $(MAKE_TARGET_END)
20       
21installdirs:
22        $(MAKE_TARGET_BEGIN) installdirs $(MAKE_TARGET_END)
23
24install:
25        $(MAKE_TARGET_BEGIN) install $(MAKE_TARGET_END)
26
27uninstall:
28        $(MAKE_TARGET_BEGIN) uninstall $(MAKE_TARGET_END)
29
30test:
31        (cd $(TOPDIR)/Test && make all)
Note: See TracBrowser for help on using the repository browser.