diff options
| author | kkitayam <[email protected]> | 2021-01-14 01:19:43 +0900 |
|---|---|---|
| committer | kkitayam <[email protected]> | 2021-01-14 01:19:43 +0900 |
| commit | d7cfd8b91db127459d61aa8b8d091cb08e732208 (patch) | |
| tree | 32b428648fcbdaadb1ade3269f6a2b5c76e8dee7 /examples/rules.mk | |
| parent | fc69dd70cf3c669308240bb0a6bb05d6eda51487 (diff) | |
replaced variable name to CMDEXE from UNAME.
removed the rule that .d files are converted to .P files.
Diffstat (limited to 'examples/rules.mk')
| -rw-r--r-- | examples/rules.mk | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/examples/rules.mk b/examples/rules.mk index a445f0339..2274d1cd2 100644 --- a/examples/rules.mk +++ b/examples/rules.mk @@ -81,7 +81,7 @@ uf2: $(BUILD)/$(BOARD)-firmware.uf2 OBJ_DIRS = $(sort $(dir $(OBJ))) $(OBJ): | $(OBJ_DIRS) $(OBJ_DIRS): -ifeq ($(UNAME),Windows) +ifeq ($(CMDEXE),1) @$(MKDIR) $(subst /,\,$@) else @$(MKDIR) -p $@ @@ -111,15 +111,6 @@ vpath %.c . $(TOP) $(BUILD)/obj/%.o: %.c @echo CC $(notdir $@) @$(CC) $(CFLAGS) -c -MD -o $@ $< -ifneq ($(UNAME),Windows) - @# The following fixes the dependency file. - @# See http://make.paulandlesley.org/autodep.html for details. - @# Regex adjusted from the above to play better with Windows paths, etc. - @$(CP) $(@:.o=.d) $(@:.o=.P); \ - $(SED) -e 's/#.*//' -e 's/^.*: *//' -e 's/ *\\$$//' \ - -e '/^$$/ d' -e 's/$$/ :/' < $(@:.o=.d) >> $(@:.o=.P); \ - $(RM) $(@:.o=.d) -endif # ASM sources lower case .s vpath %.s . $(TOP) @@ -140,7 +131,7 @@ size: $(BUILD)/$(BOARD)-firmware.elf .PHONY: clean clean: -ifeq ($(UNAME),Windows) +ifeq ($(CMDEXE),1) rd /S /Q $(subst /,\,$(BUILD)) else $(RM) -rf $(BUILD) |
