1 #/******************************************************************************
3 #* Copyright (C) 2014 Xilinx, Inc. All rights reserved.
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.
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;
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
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.
39 #* THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART
40 #* OF THIS FILE AT ALL TIMES.
42 #******************************************************************************/
51 CC_FLAGS = $(COMPILER_FLAGS)
52 ECC_FLAGS = $(EXTRA_COMPILER_FLAGS)
54 RELEASEDIR=../../../lib
55 INCLUDEDIR=../../../include
56 INCLUDES=-I./. -I${INCLUDEDIR}
63 OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c)))
65 libs: banner xuartps_libs clean
68 ${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $<
71 echo "Compiling nandpsu"
73 xuartps_libs: ${OBJECTS}
74 $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS}
77 include: xuartps_includes
80 ${CP} ${INCLUDEFILES} ${INCLUDEDIR}