Skip to content

Commit 3b4eaba

Browse files
committed
Proper selection of mkdir dependiong on the OS
1 parent 2a342ed commit 3b4eaba

File tree

20 files changed

+153
-20
lines changed

20 files changed

+153
-20
lines changed

sam4l/make/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu11 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -56,7 +62,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5662
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5763

5864
directory:
59-
@gmkdir -p $(BUILD)
65+
@$(MKDIR) -p $(BUILD)
6066

6167
size: $(BUILD)/$(BIN).elf
6268
@echo size:

sam4s/make/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu99 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -56,7 +62,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5662
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5763

5864
directory:
59-
@gmkdir -p $(BUILD)
65+
@$(MKDIR) -p $(BUILD)
6066

6167
size: $(BUILD)/$(BIN).elf
6268
@echo size:

samc21/make/Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu99 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -56,7 +62,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5662
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5763

5864
directory:
59-
@gmkdir -p $(BUILD)
65+
@$(MKDIR) -p $(BUILD)
6066

6167
size: $(BUILD)/$(BIN).elf
6268
@echo size:
@@ -67,3 +73,4 @@ clean:
6773
@-rm -rf $(BUILD)
6874

6975
-include $(wildcard $(BUILD)/*.d)
76+

samc21n/make/Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu99 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -56,7 +62,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5662
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5763

5864
directory:
59-
@gmkdir -p $(BUILD)
65+
@$(MKDIR) -p $(BUILD)
6066

6167
size: $(BUILD)/$(BIN).elf
6268
@echo size:
@@ -67,3 +73,4 @@ clean:
6773
@-rm -rf $(BUILD)
6874

6975
-include $(wildcard $(BUILD)/*.d)
76+

samd09/make/Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu99 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -56,7 +62,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5662
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5763

5864
directory:
59-
@gmkdir -p $(BUILD)
65+
@$(MKDIR) -p $(BUILD)
6066

6167
size: $(BUILD)/$(BIN).elf
6268
@echo size:
@@ -67,3 +73,4 @@ clean:
6773
@-rm -rf $(BUILD)
6874

6975
-include $(wildcard $(BUILD)/*.d)
76+

samd10/make/Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu99 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -56,7 +62,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5662
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5763

5864
directory:
59-
@gmkdir -p $(BUILD)
65+
@$(MKDIR) -p $(BUILD)
6066

6167
size: $(BUILD)/$(BIN).elf
6268
@echo size:
@@ -67,3 +73,4 @@ clean:
6773
@-rm -rf $(BUILD)
6874

6975
-include $(wildcard $(BUILD)/*.d)
76+

samd11/make/Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu99 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -56,7 +62,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5662
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5763

5864
directory:
59-
@gmkdir -p $(BUILD)
65+
@$(MKDIR) -p $(BUILD)
6066

6167
size: $(BUILD)/$(BIN).elf
6268
@echo size:
@@ -67,3 +73,4 @@ clean:
6773
@-rm -rf $(BUILD)
6874

6975
-include $(wildcard $(BUILD)/*.d)
76+

samd20/make/Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu99 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -56,7 +62,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5662
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5763

5864
directory:
59-
@gmkdir -p $(BUILD)
65+
@$(MKDIR) -p $(BUILD)
6066

6167
size: $(BUILD)/$(BIN).elf
6268
@echo size:
@@ -67,3 +73,4 @@ clean:
6773
@-rm -rf $(BUILD)
6874

6975
-include $(wildcard $(BUILD)/*.d)
76+

samd21/make/Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu99 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -56,7 +62,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5662
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5763

5864
directory:
59-
@gmkdir -p $(BUILD)
65+
@$(MKDIR) -p $(BUILD)
6066

6167
size: $(BUILD)/$(BIN).elf
6268
@echo size:
@@ -67,3 +73,4 @@ clean:
6773
@-rm -rf $(BUILD)
6874

6975
-include $(wildcard $(BUILD)/*.d)
76+

samda1b/make/Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu99 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -56,7 +62,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5662
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5763

5864
directory:
59-
@gmkdir -p $(BUILD)
65+
@$(MKDIR) -p $(BUILD)
6066

6167
size: $(BUILD)/$(BIN).elf
6268
@echo size:
@@ -67,3 +73,4 @@ clean:
6773
@-rm -rf $(BUILD)
6874

6975
-include $(wildcard $(BUILD)/*.d)
76+

same54/make/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu11 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -58,7 +64,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5864
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5965

6066
directory:
61-
@gmkdir -p $(BUILD)
67+
@$(MKDIR) -p $(BUILD)
6268

6369
size: $(BUILD)/$(BIN).elf
6470
@echo size:

same70/make/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu99 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -58,7 +64,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5864
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5965

6066
directory:
61-
@gmkdir -p $(BUILD)
67+
@$(MKDIR) -p $(BUILD)
6268

6369
size: $(BUILD)/$(BIN).elf
6470
@echo size:

samg55/make/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu99 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -58,7 +64,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5864
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5965

6066
directory:
61-
@gmkdir -p $(BUILD)
67+
@$(MKDIR) -p $(BUILD)
6268

6369
size: $(BUILD)/$(BIN).elf
6470
@echo size:

saml10/make/Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu99 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -56,7 +62,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5662
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5763

5864
directory:
59-
@gmkdir -p $(BUILD)
65+
@$(MKDIR) -p $(BUILD)
6066

6167
size: $(BUILD)/$(BIN).elf
6268
@echo size:
@@ -67,3 +73,4 @@ clean:
6773
@-rm -rf $(BUILD)
6874

6975
-include $(wildcard $(BUILD)/*.d)
76+

saml11/make/Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CC = arm-none-eabi-gcc
99
OBJCOPY = arm-none-eabi-objcopy
1010
SIZE = arm-none-eabi-size
1111

12+
ifeq ($(OS), Windows_NT)
13+
MKDIR = gmkdir
14+
else
15+
MKDIR = mkdir
16+
endif
17+
1218
CFLAGS += -W -Wall --std=gnu99 -Os
1319
CFLAGS += -fno-diagnostics-show-caret
1420
CFLAGS += -fdata-sections -ffunction-sections
@@ -56,7 +62,7 @@ $(BUILD)/$(BIN).bin: $(BUILD)/$(BIN).elf
5662
@$(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -c -o $@
5763

5864
directory:
59-
@gmkdir -p $(BUILD)
65+
@$(MKDIR) -p $(BUILD)
6066

6167
size: $(BUILD)/$(BIN).elf
6268
@echo size:
@@ -67,3 +73,4 @@ clean:
6773
@-rm -rf $(BUILD)
6874

6975
-include $(wildcard $(BUILD)/*.d)
76+

0 commit comments

Comments
 (0)