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

Subversion Repositories zap

[/] [zap/] [trunk/] [src/] [scripts/] [makefile] - Diff between revs 37 and 38

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

Rev 37 Rev 38
Line 18... Line 18...
.PHONY: c2asm
.PHONY: c2asm
.PHONY: compiler
.PHONY: compiler
.PHONY: dirs
.PHONY: dirs
.PHONY: cleanall
.PHONY: cleanall
 
 
 
ARCH         := armv4t
TC           := $(shell basename `pwd`)
TC           := $(shell basename `pwd`)
GCC_PATH     := ../../../obj/gcc-arm-none-eabi-*/bin/
GCC_PATH     := ../../../obj/gcc-arm-none-eabi-*/bin/
SCRIPT_PATH  := ../../scripts/
SCRIPT_PATH  := ../../scripts/
C_FILES      := $(wildcard *.c)
C_FILES      := $(wildcard *.c)
S_FILES      := $(wildcard *.s)
S_FILES      := $(wildcard *.s)
H_FILES      := $(wildcard *.h)
H_FILES      := $(wildcard *.h)
LD_FILE      := $(wildcard *.ld)
LD_FILE      := $(wildcard *.ld)
COBJFILES    := $(patsubst %.c,../../../obj/ts/$(TC)/%_c.o,$(C_FILES))
COBJFILES    := $(patsubst %.c,../../../obj/ts/$(TC)/%_c.o,$(C_FILES))
AOBJFILES    := $(patsubst %.s,../../../obj/ts/$(TC)/%_s.o,$(S_FILES))
AOBJFILES    := $(patsubst %.s,../../../obj/ts/$(TC)/%_s.o,$(S_FILES))
GCC_SRC      := ../../../sw/gcc-arm-none-eabi-*-linux.tar.*
GCC_SRC      := ../../../sw/gcc-arm-none-eabi-*-linux.tar.*
CFLAGS       := -c -msoft-float -mfloat-abi=soft -march=armv4t -g
CFLAGS       := -c -msoft-float -mfloat-abi=soft -march=$(ARCH) -g
SFLAGS       := -mcpu=arm7tdmi -g
SFLAGS       := -march=$(ARCH) -g
LFLAGS       := -T
LFLAGS       := -T
OFLAGS       := -O binary
OFLAGS       := -O binary
CC           := $(GCC_PATH)/arm-none-eabi-gcc
CC           := $(GCC_PATH)/arm-none-eabi-gcc
AS           := $(GCC_PATH)/arm-none-eabi-as
AS           := $(GCC_PATH)/arm-none-eabi-as
LD           := $(GCC_PATH)/arm-none-eabi-ld
LD           := $(GCC_PATH)/arm-none-eabi-ld
Line 84... Line 85...
cleanall:
cleanall:
        rm -fv  ../../../obj/ts/$(TC)/*
        rm -fv  ../../../obj/ts/$(TC)/*
        rm -rfv ../../../obj/ts/$(TC)/../../gcc-arm-none-*
        rm -rfv ../../../obj/ts/$(TC)/../../gcc-arm-none-*
 
 
c2asm:
c2asm:
        $(CC) -S $(CFLGAS) $(X) -o ../../../obj/ts/$(TC)/$(X).asm
        $(CC) -S $(CFLAGS) $(X) -o ../../../obj/ts/$(TC)/$(X).asm
 
 
print-%  : ; @echo $* = $($*)
print-%  : ; @echo $* = $($*)
 
 

powered by: WebSVN 2.1.0

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