summaryrefslogtreecommitdiff
path: root/examples/build_system/make/rules.mk
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-04-09 17:25:23 +0700
committerGitHub <[email protected]>2024-04-09 17:25:23 +0700
commita5b109b6995acfa0b14ae41dcce16687cc033d2b (patch)
treeedbd8023218aeb9f6e3ad697ad8b0ab438e7b843 /examples/build_system/make/rules.mk
parent1195fa8ee36f704704a003a386fc47c2a9204474 (diff)
parent6c2f71ad19bbe9e3d346b5631ede9557b4252088 (diff)
Merge pull request #1580 from MatiMcFly/master
Fixing Renesas register write protection and some compiler warnings in static code analysis
Diffstat (limited to 'examples/build_system/make/rules.mk')
-rw-r--r--examples/build_system/make/rules.mk26
1 files changed, 13 insertions, 13 deletions
diff --git a/examples/build_system/make/rules.mk b/examples/build_system/make/rules.mk
index b02665cdd..78fce49d2 100644
--- a/examples/build_system/make/rules.mk
+++ b/examples/build_system/make/rules.mk
@@ -10,19 +10,6 @@
ifeq (,$(findstring $(FAMILY),espressif rp2040))
# ---------------------------------------
-# Compiler Flags
-# ---------------------------------------
-
-CFLAGS += $(addprefix -I,$(INC))
-
-# Verbose mode
-ifeq ("$(V)","1")
-$(info CFLAGS $(CFLAGS) ) $(info )
-$(info LDFLAGS $(LDFLAGS)) $(info )
-$(info ASFLAGS $(ASFLAGS)) $(info )
-endif
-
-# ---------------------------------------
# Rules
# ---------------------------------------
@@ -39,6 +26,19 @@ vpath %.S . $(TOP)
include ${TOP}/examples/build_system/make/toolchain/arm_$(TOOLCHAIN)_rules.mk
+# ---------------------------------------
+# Compiler Flags
+# ---------------------------------------
+
+CFLAGS += $(addprefix -I,$(INC))
+
+# Verbose mode
+ifeq ("$(V)","1")
+$(info CFLAGS $(CFLAGS) ) $(info )
+$(info LDFLAGS $(LDFLAGS)) $(info )
+$(info ASFLAGS $(ASFLAGS)) $(info )
+endif
+
OBJ_DIRS = $(sort $(dir $(OBJ)))
$(OBJ): | $(OBJ_DIRS)