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.avr] - Blame information for rev 25

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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