-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile.am62dx.c75x.ti-c7000
128 lines (103 loc) · 2.8 KB
/
makefile.am62dx.c75x.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
#
# 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.am62dx.c75x.ti-c7000.$(PROFILE).lib
FILES_common := \
dmautils_autoincrement_3d.c \
dmautils_autoincrement_3d_hostemu.c \
FILES_PATH_common = \
src \
INCLUDES_common := \
-I${CG_TOOL_ROOT}/include \
-I${MCU_PLUS_SDK_PATH}/source \
DEFINES_common := \
-DMCU_PLUS_SDK \
-DMAKEFILE_BUILD \
-DBUILD_C7X_1 \
-DBUILD_C7X \
-DUDMA_CFG_ASSERT_ENABLE \
-DUDMA_CFG_PRINT_ENABLE \
-DDMA_UTILS_STANDALONE \
-DSOC_AM62DX \
CFLAGS_common := \
-mv7504 \
--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 \
CFLAGS_debug := \
-Dxdc_target_name__=C71 \
-D_DEBUG_=1 \
--opt_level=0 \
--symdebug:dwarf \
-DBUILD_C7X_1 \
-DBUILD_C7X \
CFLAGS_release := \
-Dxdc_target_name__=C71 \
--opt_level=3 \
--symdebug:none \
-DBUILD_C7X_1 \
-DBUILD_C7X \
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/am62dx/ti-c7000/$(PROFILE)/c75x/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))