You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
300 B
18 lines
300 B
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)
|