dfff37c2e1fb8cd6e5512cec98c1511735825cb9
[mw/openocd-lm32.git] / ecosflash / Makefile
1 # Create OpenOCD eCos flash driver
2 # Syntax: make INSTALL_DIR=ecosinstalldir OUTPUT=outputname
3
4 include $(INSTALL_DIR)/include/pkgconf/ecos.mak
5
6 all:
7         $(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   
8         cp debug_$(OUTPUT).elf $(OUTPUT).elf
9         $(ECOS_COMMAND_PREFIX)strip $(OUTPUT).elf
10         echo Flash driver $(OUTPUT).elf
11