分支自 DSP/ADSP21569/DSP-21569

graydon
2024-02-28 420778fcee054257d540cf24fbf1b1e3f9fc0d9f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
 
SHELL := ${ComSpec}
 
-include ../makefile.init
 
RM := clean
 
# All of the sources participating in the build are defined here
-include sources.mk
-include system/startup_ldf/subdir.mk
-include system/subdir.mk
-include src/subdir.mk
-include drv/subdir.mk
-include subdir.mk
-include objects.mk
 
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(DSP_DEPS)),)
-include $(DSP_DEPS)
endif
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(ASM_DEPS)),)
-include $(ASM_DEPS)
endif
ifneq ($(strip $(S_DEPS)),)
-include $(S_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
endif
 
-include ../makefile.defs
 
# Add inputs and outputs from these tool invocations to the build variables 
DXE += \
DSP-21569.dxe \
 
LINKER_LOG_OUTPUTS += \
linker_log.xml \
 
DEVICE_PROGRAMMER_OUTPUTS += \
program_device \
 
OBJS := $(SRC_OBJS)
# Quote makefile variable : OBJS 
OBJS := $(subst \ ,@, $(OBJS))
OBJS := $(foreach var, $(OBJS), "$(subst @, ,$(var))")
# Quote makefile variable : C_UPPER_DEPS 
C_UPPER_DEPS := $(subst \ ,@, $(C_UPPER_DEPS))
C_UPPER_DEPS := $(foreach var, $(C_UPPER_DEPS), "$(subst @, ,$(var))")
# Quote makefile variable : S_DEPS 
S_DEPS := $(subst \ ,@, $(S_DEPS))
S_DEPS := $(foreach var, $(S_DEPS), "$(subst @, ,$(var))")
# Quote makefile variable : C_DEPS 
C_DEPS := $(subst \ ,@, $(C_DEPS))
C_DEPS := $(foreach var, $(C_DEPS), "$(subst @, ,$(var))")
# Quote makefile variable : DSP_DEPS 
DSP_DEPS := $(subst \ ,@, $(DSP_DEPS))
DSP_DEPS := $(foreach var, $(DSP_DEPS), "$(subst @, ,$(var))")
# Quote makefile variable : CC_DEPS 
CC_DEPS := $(subst \ ,@, $(CC_DEPS))
CC_DEPS := $(foreach var, $(CC_DEPS), "$(subst @, ,$(var))")
# Quote makefile variable : C++_DEPS 
C++_DEPS := $(subst \ ,@, $(C++_DEPS))
C++_DEPS := $(foreach var, $(C++_DEPS), "$(subst @, ,$(var))")
# Quote makefile variable : CXX_DEPS 
CXX_DEPS := $(subst \ ,@, $(CXX_DEPS))
CXX_DEPS := $(foreach var, $(CXX_DEPS), "$(subst @, ,$(var))")
# Quote makefile variable : ASM_DEPS 
ASM_DEPS := $(subst \ ,@, $(ASM_DEPS))
ASM_DEPS := $(foreach var, $(ASM_DEPS), "$(subst @, ,$(var))")
# Quote makefile variable : CPP_DEPS 
CPP_DEPS := $(subst \ ,@, $(CPP_DEPS))
CPP_DEPS := $(foreach var, $(CPP_DEPS), "$(subst @, ,$(var))")
LDR += \
DSP-21569.ldr \
 
 
# All Target
all: DSP-21569.ldr
 
# Tool invocations
DSP-21569.ldr: $(DXE) $(SRC_OBJS)
    @echo 'Building target: $@'
    @echo 'Invoking: CrossCore SHARC Loader'
    elfloader -proc ADSP-21569 -si-revision any -bspislave -fbinary -width 8 -init "C:\Analog Devices\CrossCore Embedded Studio 2.11.0\SHARC\ldr\ezkit21569_initcode.dxe" -o "DSP-21569.ldr" "DSP-21569.dxe"
    @echo 'Finished building target: $@'
    @echo ' '
 
DSP-21569.dxe: $(LDF_SRCS) $(SRC_OBJS)
    @echo 'Invoking: CrossCore SHARC Linker'
    cc21k -proc ADSP-21569 -si-revision any -no-mem -L D:/project/plugscard/dsp21569/DSP-21569/Debug/system/startup_ldf D:/project/plugscard/dsp21569/DSP-21569/lib/ModuleProcLibs.dlb D:/project/plugscard/dsp21569/DSP-21569/lib/zlib.dlb D:/project/plugscard/dsp21569/DSP-21569/lib/aer.dlb -flags-link -MDCORE0 -add-debug-libpaths -o DSP-21569.dxe @input-file.txt $(LDF_SRCS)
    @echo 'Finished building: $@'
    @echo ' '
 
linker_log.xml: DSP-21569.dxe $(LDF_SRCS) $(SRC_OBJS)
 
program_device: $(LDR) $(SRC_OBJS)
    @echo 'Invoking: CrossCore SHARC Device Programmer'
    cldp -proc ADSP-21569 -cmd prog -erase affected -emu ice-1000 -format bin -offset 0x0  -file $(LDR)
    @echo 'Finished building: $@'
    @echo ' '
 
# Other Targets
clean:
    -$(RM) $(LINKER_LOG_OUTPUTS)$(DEVICE_PROGRAMMER_OUTPUTS)$(C_UPPER_DEPS)$(S_DEPS)$(C_DEPS)$(DXE)$(DSP_DEPS)$(CC_DEPS)$(C++_DEPS)$(OBJS)$(CXX_DEPS)$(ASM_DEPS)$(LDR)$(CPP_DEPS) DSP-21569.ldr
    -@echo ' '
 
.PHONY: all clean dependents
 
-include ../makefile.targets