mirror of
https://github.com/google/brotli.git
synced 2025-01-07 15:30:10 +00:00
5da7e37a06
- Distinguish between CC/CFLAGS, CPP/CPPFLAGS and CXX/CXXFLAGS. Do not store compiler flags in CPPFLAGS, which is for preprocessor, and do not try to link files using a preprocessor. - Use COMMON_FLAGS for flags that are for both C and C++. - Drop -m64 flag which is wrong on 32-bit systems. - Use $(MAKE) instead of make, so that parallel building works.
26 lines
446 B
Makefile
26 lines
446 B
Makefile
#brotli/tools
|
|
|
|
include ../shared.mk
|
|
|
|
BROTLI = ..
|
|
ENCOBJ = $(BROTLI)/enc/*.o
|
|
DECOBJ = $(BROTLI)/dec/*.o
|
|
|
|
EXECUTABLES=bro
|
|
|
|
EXE_OBJS=$(patsubst %, %.o, $(EXECUTABLES))
|
|
|
|
all : $(EXECUTABLES)
|
|
|
|
$(EXECUTABLES) : $(EXE_OBJS) deps
|
|
$(CXX) $(LFLAGS) $(ENCOBJ) $(DECOBJ) $@.o -o $@
|
|
|
|
deps :
|
|
$(MAKE) -C $(BROTLI)/dec
|
|
$(MAKE) -C $(BROTLI)/enc
|
|
|
|
clean :
|
|
rm -f $(OBJS) $(EXE_OBJS) $(EXECUTABLES)
|
|
$(MAKE) -C $(BROTLI)/dec clean
|
|
$(MAKE) -C $(BROTLI)/enc clean
|