Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ CXX ?= g++
CANONICAL_PREFIXES ?= -no-canonical-prefixes
NOISY_LOGGING ?= -DFONT_COMPRESSION_BIN
COMMON_FLAGS = -fno-omit-frame-pointer $(CANONICAL_PREFIXES) $(NOISY_LOGGING) -D __STDC_FORMAT_MACROS
# Brotli reads words by casting a byte pointer to the target type unless it is
# built in its portable mode. Those pointers are not aligned, so the casts are
# undefined behavior; use the memcpy based loads instead.
BROTLI_CPPFLAGS ?= -DBROTLI_BUILD_PORTABLE

ARFLAGS = crf

Expand Down Expand Up @@ -56,7 +60,7 @@ $(EXECUTABLES) : $(EXE_OBJS) deps
$(CXX) $(LFLAGS) $(OBJS) $(COMMONOBJ) $(ENCOBJ) $(DECOBJ) $(SRCDIR)/[email protected] -o $@

deps :
$(MAKE) -C $(BROTLI) lib
$(MAKE) -C $(BROTLI) lib CPPFLAGS="$(BROTLI_CPPFLAGS)"

clean :
rm -f $(OBJS) $(EXE_OBJS) $(EXECUTABLES)
Expand Down
Loading