OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [src_c/] [ihex2bin/] [Makefile.arm] - Blame information for rev 25

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 25 alirezamon
CROSS=arm-none-eabi-
2
CC=$(CROSS)gcc
3
CFLAGS=-Wall -std=c99 -pedantic -Wextra -Wno-unknown-pragmas -Os -mlittle-endian -mthumb -fsingle-precision-constant -ffunction-sections -fdata-sections
4
LDFLAGS=-Wl,--gc-sections
5
AR=$(CROSS)ar
6
ARFLAGS=rcs
7
 
8
ARM_FLAGS=-DIHEX_DISABLE_SEGMENTS -DIHEX_LINE_MAX_LENGTH=32
9
 
10
OBJPATH = ./arm/
11
OBJS = $(OBJPATH)kk_ihex_write.o $(OBJPATH)kk_ihex_read.o
12
LIBPATH = ./arm/
13
LIB = $(LIBPATH)libkk_ihex.a
14
 
15
.PHONY: all clean distclean test
16
 
17
all: $(LIB)
18
 
19
$(OBJS): kk_ihex.h
20
$(OBJS): | $(OBJPATH)
21
$(LIB): | $(LIBPATH)
22
 
23
$(LIB): $(OBJS)
24
        $(AR) $(ARFLAGS) $@ $+
25
 
26
$(OBJPATH)%.o: %.c %.h
27
        $(CC) $(CFLAGS) $(ARM_FLAGS) -c $< -o $@
28
 
29
$(sort $(LIBPATH) $(OBJPATH)):
30
        @mkdir -p $@
31
 
32
clean:
33
        rm -f $(OBJS)
34
        @rmdir $(OBJPATH) >/dev/null 2>/dev/null || true
35
 
36
distclean: | clean
37
        rm -f $(LIB)
38
        @rmdir $(LIBPATH) >/dev/null 2>/dev/null || true
39
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.