-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile.j722s.c75ss1-0.ti-c7000
134 lines (109 loc) · 2.93 KB
/
makefile.j722s.c75ss1-0.ti-c7000
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
130
131
132
133
134
#
# Auto generated makefile
#
export MCU_PLUS_SDK_PATH?=$(abspath ../../..)
include $(MCU_PLUS_SDK_PATH)/imports.mak
CG_TOOL_ROOT=$(CGT_TI_C7000_PATH)
CC=$(CGT_TI_C7000_PATH)/bin/cl7x
AR=$(CGT_TI_C7000_PATH)/bin/ar7x
PROFILE?=release
ConfigName:=$(PROFILE)
LIBNAME:=dmautils.j722s.c75ss1-0.ti-c7000.$(PROFILE).lib
FILES_common := \
udma.c \
dmautils_autoincrement_3d.c \
dmautils_autoincrement_3d_hostemu.c \
csl_dru.c \
FILES_PATH_common = \
udma_standalone \
src \
udma_standalone/src \
csl/dru/v0/priv \
INCLUDES_common := \
-I${CG_TOOL_ROOT}/include \
-I${MCU_PLUS_SDK_PATH}/source \
DEFINES_common := \
-DSOC_J722S \
-DMCU_PLUS_SDK \
-DMAKEFILE_BUILD \
-DBUILD_C7X_2 \
-DBUILD_C7X \
-DUDMA_CFG_ASSERT_ENABLE \
-DUDMA_CFG_PRINT_ENABLE \
-DDMA_UTILS_STANDALONE \
-DSOC_J722S \
CFLAGS_common := \
-DBUILD_C75X_2 \
-mv7524 \
--abi=eabi \
-q \
-mo \
-pden \
-pds=238 \
-pds=880 \
-pds1110 \
--endian=little \
--disable_inlining \
-ea.se71 \
--emit_warnings_as_errors \
--diag_suppress=770 \
--diag_suppress=69 \
--diag_suppress=70 \
--advice:performance=none \
CFLAGS_debug := \
-Dxdc_target_name__=C71 \
-D_DEBUG_=1 \
--opt_level=0 \
--symdebug:dwarf \
-DBUILD_C75X \
CFLAGS_release := \
-Dxdc_target_name__=C71 \
--opt_level=3 \
--symdebug:none \
-DBUILD_C75X \
ARFLAGS_common := \
rq \
FILES := $(FILES_common) $(FILES_$(PROFILE))
ASMFILES := $(ASMFILES_common) $(ASMFILES_$(PROFILE))
FILES_PATH := $(FILES_PATH_common) $(FILES_PATH_$(PROFILE))
CFLAGS := $(CFLAGS_common) $(CFLAGS_$(PROFILE))
ASMFLAGS := $(CFLAGS_common) $(CFLAGS_$(PROFILE))
ifeq ($(CPLUSPLUS_BUILD), yes)
CFLAGS += $(CFLAGS_cpp_common)
endif
DEFINES := $(DEFINES_common) $(DEFINES_$(PROFILE))
INCLUDES := $(INCLUDES_common) $(INCLUDE_$(PROFILE))
ARFLAGS := $(ARFLAGS_common) $(ARFLAGS_$(PROFILE))
LIBDIR := lib
OBJDIR := obj/j722s/ti-c7000/$(PROFILE)/c75ss1-0/dmautils/
OBJS := $(FILES:%.c=%.obj)
OBJS += $(ASMFILES:%.S=%.obj)
DEPS := $(FILES:%.c=%.d)
vpath %.obj $(OBJDIR)
vpath %.c $(FILES_PATH)
vpath %.S $(FILES_PATH)
$(OBJDIR)/%.obj %.obj: %.c
@echo Compiling: $(LIBNAME): $<
$(CC) $(CFLAGS) $(INCLUDES) $(DEFINES) -ppd=$(OBJDIR)/$(basename $@).d -ppa -fr=$(OBJDIR)/ -fc=$<
$(OBJDIR)/%.obj %.obj: %.S
@echo Compiling: $(LIBNAME): $<
$(CC) $(CFLAGS) $(INCLUDES) $(DEFINES) -ppd=$(OBJDIR)/$(basename $@).d -ppa -fr=$(OBJDIR)/ -fa=$<
all: $(LIBDIR)/$(LIBNAME)
$(LIBDIR)/$(LIBNAME): $(OBJS) | $(LIBDIR)
@echo .
@echo Archiving: $(LIBNAME) to $@ ...
$(AR) $(ARFLAGS) $@ $(addprefix $(OBJDIR), $(OBJS))
@echo Archiving: $(LIBNAME) Done !!!
@echo .
clean:
@echo Cleaning: $(LIBNAME) ...
$(RMDIR) $(OBJDIR)
$(RM) $(LIBDIR)/$(LIBNAME)
scrub:
@echo Scrubing: $(LIBNAME) ...
-$(RMDIR) obj/
-$(RMDIR) lib/
$(OBJS): | $(OBJDIR)
$(LIBDIR) $(OBJDIR):
$(MKDIR) $@
-include $(addprefix $(OBJDIR)/, $(DEPS))