]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - Makefile.ccs
Change license to MIT
[pes-rpp/rpp-lib.git] / Makefile.ccs
1 # Copyright (C) 2013-2015 Czech Technical University in Prague
2 #
3 # Authors:
4 #     - Michal Sojka <sojkam1@fel.cvut.cz>
5 #
6 # Permission is hereby granted, free of charge, to any person
7 # obtaining a copy of this software and associated documentation
8 # files (the "Software"), to deal in the Software without
9 # restriction, including without limitation the rights to use,
10 # copy, modify, merge, publish, distribute, sublicense, and/or sell
11 # copies of the Software, and to permit persons to whom the
12 # Software is furnished to do so, subject to the following
13 # conditions:
14
15 # The above copyright notice and this permission notice shall be
16 # included in all copies or substantial portions of the Software.
17
18 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
20 # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22 # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25 # OTHER DEALINGS IN THE SOFTWARE.
26 #
27 # File : Makefile.ccs
28 # Abstract:
29 #        This makefile tries to build the RPP library by invoking Code
30 #        Composer Studio from command line.
31 # Refs:
32 #        See http://processors.wiki.ti.com/index.php/Projects_-_Command_Line_Build/Create
33 #        and https://bugs.eclipse.org/bugs/show_bug.cgi?id=186847
34
35 all: lib
36
37 include common.mk
38
39 CCS_PROJECT = $(CURDIR)/build/tms570_hydctr
40
41 lib:
42         $(call rmdir,$(TMP_WORKSPACE))
43         $(call mkdir,$(TMP_WORKSPACE))
44         $(ECLIPSE) -noSplash -data $(TMP_WORKSPACE) -application com.ti.ccstudio.apps.projectImport -ccs.location $(CCS_PROJECT)
45         $(ECLIPSE) -noSplash -data $(TMP_WORKSPACE) -application com.ti.ccstudio.apps.projectBuild -ccs.projects rpp-lib
46 # Previous commands do not always return non-zero exit code on build failure - invoke make directly to not miss a potential error
47         $(MAKE) -C $(CCS_PROJECT)/Debug
48         $(call rmdir,$(TMP_WORKSPACE))