]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_A53_64-bit_UltraScale_MPSoC/RTOSDemo_A53_bsp/psu_cortexa53_0/libsrc/nandpsu_v1_0/src/Makefile
Completely re-generate the Zynq 7000 demo using the 2016.1 SDK tools.
[freertos] / FreeRTOS / Demo / CORTEX_A53_64-bit_UltraScale_MPSoC / RTOSDemo_A53_bsp / psu_cortexa53_0 / libsrc / nandpsu_v1_0 / src / Makefile
1 #/******************************************************************************
2 #*
3 #* Copyright (C) 2014 Xilinx, Inc. All rights reserved.
4 #*
5 #* This file contains confidential and proprietary information  of Xilinx, Inc.
6 #* and is protected under U.S. and  international copyright and other
7 #* intellectual property  laws.
8 #*
9 #* DISCLAIMER
10 #* This disclaimer is not a license and does not grant any  rights to the
11 #* materials distributed herewith. Except as  otherwise provided in a valid
12 #* license issued to you by  Xilinx, and to the maximum extent permitted by
13 #* applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND  WITH ALL
14 #* FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES  AND CONDITIONS, EXPRESS,
15 #* IMPLIED, OR STATUTORY, INCLUDING  BUT NOT LIMITED TO WARRANTIES OF
16 #* MERCHANTABILITY, NON-  INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE;
17 #* and
18 #* (2) Xilinx shall not be liable (whether in contract or tort,  including
19 #* negligence, or under any other theory of liability) for any loss or damage
20 #* of any kind or nature  related to, arising under or in connection with these
21 #* materials, including for any direct, or any indirect,  special, incidental,
22 #* or consequential loss or damage  (including loss of data, profits,
23 #* goodwill, or any type of  loss or damage suffered as a result of any
24 #* action brought  by a third party) even if such damage or loss was
25 #* reasonably foreseeable or Xilinx had been advised of the  possibility
26 #* of the same.
27 #*
28 #* CRITICAL APPLICATIONS
29 #* Xilinx products are not designed or intended to be fail-  safe, or for use
30 #* in any application requiring fail-safe  performance, such as life-support
31 #* or safety devices or  systems, Class III medical devices, nuclear
32 #* facilities,  applications related to the deployment of airbags, or any
33 #* other applications that could lead to death, personal  injury, or severe
34 #* property or environmental damage  (individually and collectively,
35 #* "Critical  Applications"). Customer assumes the sole risk and  liability
36 #* of any use of Xilinx products in Critical  Applications, subject only to
37 #* applicable laws and  regulations governing limitations on product liability.
38 #*
39 #* THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS  PART
40 #* OF THIS FILE AT ALL TIMES.
41 #*
42 #******************************************************************************/
43
44 COMPILER=
45 ARCHIVER=
46 CP=cp
47 COMPILER_FLAGS=
48 EXTRA_COMPILER_FLAGS=
49 LIB=libxil.a
50
51 CC_FLAGS = $(COMPILER_FLAGS)
52 ECC_FLAGS = $(EXTRA_COMPILER_FLAGS)
53
54 RELEASEDIR=../../../lib
55 INCLUDEDIR=../../../include
56 INCLUDES=-I./. -I${INCLUDEDIR}
57
58 OUTS = *.o
59
60 LIBSOURCES:=*.c
61 INCLUDEFILES:=*.h
62
63 OBJECTS =       $(addsuffix .o, $(basename $(wildcard *.c)))
64
65 libs: banner xuartps_libs clean
66
67 %.o: %.c
68         ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $<
69
70 banner:
71         echo "Compiling nandpsu"
72
73 xuartps_libs: ${OBJECTS}
74         $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS}
75
76 .PHONY: include
77 include: xuartps_includes
78
79 xuartps_includes:
80         ${CP} ${INCLUDEFILES} ${INCLUDEDIR}
81
82 clean:
83         rm -rf ${OBJECTS}