Skip to content

Commit

Permalink
Merge pull request #316 from antmicro/make-sort
Browse files Browse the repository at this point in the history
common/Makefile: sort find output
  • Loading branch information
tcal-x committed Oct 6, 2021
2 parents 6740de6 + 7323149 commit 22555b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ LFLAGS := \
-Wl,--build-id=none


find_srcs = $(shell find $(SRC_DIR) -name \*.$(1))
find_srcs = $(shell find $(SRC_DIR) -name \*.$(1) | LC_ALL=C sort)
CSOURCES := $(call find_srcs,c)
CPPSOURCES := $(call find_srcs,cpp)
CCSOURCES := $(call find_srcs,cc)
Expand Down Expand Up @@ -195,4 +195,4 @@ $(OBJECTS): | $(MODEL_INCS) $(DATA_INCS)
$(QUIET) echo " AS $(notdir $<) $(notdir $@)"
$(QUIET) $(CC) -x assembler-with-cpp -c $< $(CFLAGS) -o $@ -MMD

include $(shell find src -name *.d)
include $(call find_srcs,d)

0 comments on commit 22555b4

Please sign in to comment.