• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1CC = g++
2CFLAGS += -O2
3CPPFLAGS += -std=c++11
4SOURCES = $(wildcard *.cc)
5EXECUTABLES = $(SOURCES:.cc=)
6BINDIR = bin
7
8all: $(EXECUTABLES)
9
10$(BINDIR):
11	mkdir -p $@
12
13$(EXECUTABLES): $(BINDIR)
14	$(CC) $(CFLAGS) $(CPPFLAGS) $(addsuffix .cc, $@) -o $(BINDIR)/$@ -lgflags_nothreads
15
16clean:
17	rm -rf $(BINDIR)
18