1 #######################################################################
3 # Copyright (c) 2002 Xilinx, Inc. All rights reserved.
6 # XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
7 # COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
8 # ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR
9 # STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION
10 # IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE
11 # FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION.
12 # XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO
13 # THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO
14 # ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE
15 # FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY
16 # AND FITNESS FOR A PARTICULAR PURPOSE.
18 # $Id: Makefile,v 1.1.2.1 2011/05/17 04:37:55 sadanan Exp $
20 # Makefile for profiler
22 #######################################################################
24 # PROFILE_ARCH_OBJS - Processor Architecture Dependent files defined here
25 include ../config.make
34 DUMMYLIB = libxilprofile.a
36 CC_FLAGS = $(subst -pg, , $(COMPILER_FLAGS))
37 ECC_FLAGS = $(subst -pg, , $(EXTRA_COMPILER_FLAGS))
39 RELEASEDIR = ../../../../lib
40 INCLUDEDIR = ../../../../include
41 INCLUDES = -I./. -I${INCLUDEDIR}
43 OBJS = _profile_init.o _profile_clean.o _profile_timer_hw.o profile_hist.o profile_cg.o
45 INCLUDEFILES = profile.h mblaze_nt_types.h _profile_timer_hw.h
47 libs : reallibs dummylibs
49 reallibs : $(OBJS) $(PROFILE_ARCH_OBJS)
50 $(ARCHIVER) -r $(RELEASEDIR)/$(LIB) $(OBJS) $(PROFILE_ARCH_OBJS)
52 dummylibs : $(DUMMYOBJ)
53 $(ARCHIVER) -r $(RELEASEDIR)/$(DUMMYLIB) $(DUMMYOBJ)
56 $(COMPILER) $(CC_FLAGS) $(ECC_FLAGS) -c $< -o $@ $(INCLUDES)
59 $(COMPILER) $(CC_FLAGS) $(ECC_FLAGS) -c $< -o $@ $(INCLUDES)
62 $(CP) -rf $(INCLUDEFILES) $(INCLUDEDIR)
65 rm -f $(OBJS) $(PROFILE_ARCH_OBJS) $(LIB)