summaryrefslogtreecommitdiffstats
path: root/programs
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-08-26 19:22:51 (GMT)
committerYann Collet <cyan@fb.com>2017-08-26 19:22:51 (GMT)
commitc4d6884cd82fddbbdce015750e574fd02af36a94 (patch)
tree3adb3dae0efa764a0e8b4b24333398728e6d6190 /programs
parentd2306b836e8055ee14e0a239ad8ef44dc5100374 (diff)
downloadlz4-c4d6884cd82fddbbdce015750e574fd02af36a94.zip
lz4-c4d6884cd82fddbbdce015750e574fd02af36a94.tar.gz
lz4-c4d6884cd82fddbbdce015750e574fd02af36a94.tar.bz2
build: source files sorted in a FS independent manner
to be more compatible with reproducible builds. patch inspired by @bmwiedemann
Diffstat (limited to 'programs')
-rw-r--r--programs/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/programs/Makefile b/programs/Makefile
index 29408f1..a551b01 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -41,15 +41,15 @@ LIBVER_MINOR := $(shell echo $(LIBVER_MINOR_SCRIPT))
LIBVER_PATCH := $(shell echo $(LIBVER_PATCH_SCRIPT))
LIBVER := $(shell echo $(LIBVER_SCRIPT))
-SRCFILES := $(wildcard $(LZ4DIR)/*.c) $(wildcard *.c)
+SRCFILES := $(sort $(wildcard $(LZ4DIR)/*.c) $(wildcard *.c))
#OBJFILES := $(patsubst %.c,%.o,$(SRCFILES))
OBJFILES := $(SRCFILES:.c=.o)
CPPFLAGS += -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_
CFLAGS ?= -O3
DEBUGFLAGS:=-Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow \
- -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes \
- -Wpointer-arith -Wstrict-aliasing=1
+ -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes \
+ -Wpointer-arith -Wstrict-aliasing=1
CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS)
FLAGS = $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)