fix copyright.
[openocd.git] / ecosflash / Makefile
1 #*************************************************************************
2 #* Copyright (C) 2008 √ėyvind Harboe #*
3 #* oyvind.harboe@zylin.com #*
4 #* #*
5 #* This program is free software; you can redistribute it and/or modify #*
6 #* it under the terms of the GNU General Public License as published by #*
7 #* the Free Software Foundation; either version 2 of the License, or #*
8 #* (at your option) any later version. #*
9 #* #*
10 #* This program is distributed in the hope that it will be useful, #*
11 #* but WITHOUT ANY WARRANTY; without even the implied warranty of #*
12 #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #*
13 #* GNU General Public License for more details. #*
14 #* #*
15 #* You should have received a copy of the GNU General Public License #*
16 #* along with this program; if not, write to the #*
17 #* Free Software Foundation, Inc., #*
18 #* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #*
19 #***************************************************************************
20 # Create OpenOCD eCos flash driver
21 # Syntax: make INSTALL_DIR=ecosinstalldir OUTPUT=outputname
22
23 include $(INSTALL_DIR)/include/pkgconf/ecos.mak
24
25 all:
26 $(ECOS_COMMAND_PREFIX)gcc $(ECOS_GLOBAL_CFLAGS) $(ECOS_GLOBAL_LDFLAGS) -g -o debug_$(OUTPUT).elf -nostdlib flash.S flash.c -Wl,--gc-sections -I$(INSTALL_DIR)/include -Wl,$(INSTALL_DIR)/lib/libtarget.a -Wl,-Map,flash.map
27 cp debug_$(OUTPUT).elf $(OUTPUT).elf
28 $(ECOS_COMMAND_PREFIX)strip $(OUTPUT).elf
29 echo Flash driver $(OUTPUT).elf
30