OpenCores
URL https://opencores.org/ocsvn/amber/amber/trunk

Subversion Repositories amber

[/] [amber/] [trunk/] [sw/] [include/] [common.mk] - Diff between revs 36 and 43

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 36 Rev 43
Line 56... Line 56...
 
 
 MMP32  = $(addsuffix _memparams32.v, $(basename $(TGT)))
 MMP32  = $(addsuffix _memparams32.v, $(basename $(TGT)))
 MMP128 = $(addsuffix _memparams128.v, $(basename $(TGT)))
 MMP128 = $(addsuffix _memparams128.v, $(basename $(TGT)))
 MEM    = $(addsuffix .mem, $(basename $(TGT)))
 MEM    = $(addsuffix .mem, $(basename $(TGT)))
 DIS    = $(addsuffix .dis, $(basename $(TGT)))
 DIS    = $(addsuffix .dis, $(basename $(TGT)))
 
 FLT    = $(addsuffix .flt, $(basename $(TGT)))
 
 
ifdef USE_MINI_LIBC
ifdef USE_MINI_LIBC
 OBJ = $(addsuffix .o,   $(basename $(SRC))) $(LIBC_OBJ)
 OBJ = $(addsuffix .o,   $(basename $(SRC))) $(LIBC_OBJ)
else
else
 OBJ = $(addsuffix .o,   $(basename $(SRC)))
 OBJ = $(addsuffix .o,   $(basename $(SRC)))
endif
endif
 
 
 
 
ifdef LDS
ifdef LDS
    TLDS = -T $(LDS)
    TLDS = -T $(LDS)
else
else
    TLDS =
    TLDS =
endif
endif
Line 89... Line 89...
 ASFLAGS = -I../include
 ASFLAGS = -I../include
  CFLAGS = -c $(OPTIMIZE) -march=armv2a -mno-thumb-interwork -ffreestanding -I../include
  CFLAGS = -c $(OPTIMIZE) -march=armv2a -mno-thumb-interwork -ffreestanding -I../include
 DSFLAGS = -C -S -EL
 DSFLAGS = -C -S -EL
 LDFLAGS = -Bstatic -Map $(MAP) --strip-debug --fix-v4bx
 LDFLAGS = -Bstatic -Map $(MAP) --strip-debug --fix-v4bx
 
 
 
 
ifdef USE_MINI_LIBC
ifdef USE_MINI_LIBC
debug:  mini-libc $(ELF) $(MMP32) $(MMP128) $(DIS)
debug:  mini-libc $(ELF) $(MMP32) $(MMP128) $(DIS)
else
else
debug:  $(ELF) $(MMP) $(DIS)
debug:  $(ELF) $(MMP) $(DIS)
endif
endif
Line 106... Line 105...
 
 
$(MEM): $(TGT)
$(MEM): $(TGT)
        $(ELF) $(TGT) > $(MEM)
        $(ELF) $(TGT) > $(MEM)
 
 
$(TGT): $(OBJ)
$(TGT): $(OBJ)
 
ifdef CREATE_FLT_OUTPUT
 
        $(LD) $(LDFLAGS) -elf2flt=-v -elf2flt=-k -o $(FLT) $(TLDS) $(OBJ)
 
endif
        $(LD) $(LDFLAGS) -o $(TGT) $(TLDS) $(OBJ)
        $(LD) $(LDFLAGS) -o $(TGT) $(TLDS) $(OBJ)
        $(OC) -R .comment -R .note $(TGT)
        $(OC) -R .comment -R .note $(TGT)
 
 
$(OBJ): $(DEP)
$(OBJ): $(DEP)
 
 
Line 121... Line 123...
 
 
$(DIS): $(TGT)
$(DIS): $(TGT)
        $(DS) $(DSFLAGS) $^ > $@
        $(DS) $(DSFLAGS) $^ > $@
 
 
clean:
clean:
        @rm -rfv *.o *.elf *.dis *.map *.mem *.v $(MMP32) $(MMP128)
        @rm -rfv *.o *.elf *.flt *.gdb *.dis *.map *.mem *.v $(MMP32) $(MMP128)
 
 

powered by: WebSVN 2.1.0

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