source: edk_user_repository/WARP/sw_services/WARP_ip_udp_v1_00_a/src/Makefile

Last change on this file was 4696, checked in by welsh, 7 years ago

Adding WARP IP/UDP transport.

File size: 1.9 KB
Line 
1##########################################################################
2# Copyright (c) 2004 Xilinx, Inc.  All rights reserved.
3#
4# Xilinx, Inc.
5# XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
6# COURTESY TO YOU.  BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
7# ONE POSSIBLE   IMPLEMENTATION OF THIS FEATURE, APPLICATION OR
8# STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION
9# IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE
10# FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION.
11# XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO
12# THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO
13# ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE
14# FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY
15# AND FITNESS FOR A PARTICULAR PURPOSE.
16##########################################################################
17
18###########################
19#
20# Makefile for WARP IP/UDP Library
21#
22# NOTE:  So that we do not have a special archive for the WARP IP/UDP Library, just use the libxil
23#        archive.  This will minimize the number of SDK project changes needed when integrating
24#        the library.
25#
26##########################
27COMPILER=
28ARCHIVER=
29CP=cp
30COMPILER_FLAGS=-O2 -c -g
31EXTRA_COMPILER_FLAGS=
32LIB=libxil.a
33
34RELEASEDIR=../../../lib
35INCLUDEDIR=../../../include
36INCLUDES=-I./. -I${INCLUDEDIR}
37
38LIBSOURCES=WARP_ip_udp_config.c WARP_ip_udp_init.c WARP_ip_udp_eth.c WARP_ip_udp_ip_udp.c WARP_ip_udp_socket.c
39LIBOBJS=$(LIBSOURCES:%.c=%.o)
40INCLUDEFILES=WARP_ip_udp.h WARP_ip_udp_device.h WARP_ip_udp_config.h WARP_ip_udp_internal.h
41
42libs: ${RELEASEDIR}/${LIB}(${LIBOBJS})
43
44(%.o):%.c
45    $(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) $< -o $*.o
46    $(ARCHIVER) -r ${RELEASEDIR}/${LIB} $*.o
47    $(RM) $*.o
48
49include:
50    ${CP} $(INCLUDEFILES) $(INCLUDEDIR)
51
52clean:
53    rm -rf *.o
54
55
Note: See TracBrowser for help on using the repository browser.