Adding CCSv5 support projects
[apps/am_sysinfo.git] / Makefile
1 -include DIRS
2 -include ../../Rules.make
4 all: debug release
6 debug:
7         for dir in $(DIRS); do \
8                 make -C $$dir debug; \
9         done
11 release:
12         for dir in $(DIRS); do \
13                 make -C $$dir release; \
14         done
16 clean:
17         for dir in $(DIRS); do \
18                 make -C $$dir clean; \
19         done
21 install:
22         @install -d $(DESTDIR)/usr/bin
23         @if [ -e mem_util/Release/mem_util.elf ] ; then \
24                 install mem_util/Release/mem_util.elf $(DESTDIR)/usr/bin/mem_util ; \
25                 echo "mem_util release version installed."; \
26         else \
27                 echo "mem_util release version not built - nothing to install!"; \
28         fi
30 install_debug:
31         @install -d $(DESTDIR)/usr/bin
32         @if [ -e mem_util/Debug/mem_util.elf ] ; then \
33                 install mem_util/Debug/mem_util.elf $(DESTDIR)/usr/bin/mem_util ; \
34                 echo "mem_util debug version installed."; \
35         else \
36                 echo "mem_util debug version not built - nothing to install!"; \
37         fi
38         @if [ -e oprofile_example/Debug1/signal_parent.opt ] ; then \
39                 install oprofile_example/Debug1/signal_parent.opt $(DESTDIR)/usr/bin/signal_parent.opt ; \
40                 echo "oprofile_example optimized debug version installed."; \
41         else \
42                 echo "oprofile_example optimized debug version not built - nothing to install!"; \
43         fi
44         @if [ -e oprofile_example/Debug/signal_parent ] ; then \
45                 install oprofile_example/Debug/signal_parent $(DESTDIR)/usr/bin/signal_parent ; \
46                 echo "oprofile_example debug version installed."; \
47         else \
48                 echo "oprofile_example debug version not built - nothing to install!"; \
49         fi