mirror of
https://github.com/google/brotli.git
synced 2024-11-25 21:10:05 +00:00
dd8fa3e8dd
* don't use `assert` when side-effect is desired * use `gflags` to pick options from args Other changes: * teach stub `Makefile` to do partial rebuild * remove obsolete `tools/version.h`
18 lines
300 B
Makefile
18 lines
300 B
Makefile
CC = g++
|
|
CFLAGS += -O2
|
|
CPPFLAGS += -std=c++11
|
|
SOURCES = $(wildcard *.cc)
|
|
EXECUTABLES = $(SOURCES:.cc=)
|
|
BINDIR = bin
|
|
|
|
all: $(EXECUTABLES)
|
|
|
|
$(BINDIR):
|
|
mkdir -p $@
|
|
|
|
$(EXECUTABLES): $(BINDIR)
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(addsuffix .cc, $@) -o $(BINDIR)/$@ -lgflags_nothreads
|
|
|
|
clean:
|
|
rm -rf $(BINDIR)
|