Created
August 17, 2015 17:12
-
-
Save etheriqa/13ee20734ad3dd0849d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TARGET = kagiroi | |
SRC_DIR = src | |
SRCS = $(shell find . -name '*.cc') | |
DEPS = $(SRCS:.cc=.d) | |
OBJS = $(SRCS:.cc=.o) | |
CPPFLAGS = -MMD -MP -I$(SRC_DIR) | |
CXXFLAGS = -Wall -std=c++1y -O3 | |
.PHONY: clean | |
$(TARGET): $(OBJS) | |
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $^ -o $@ | |
clean: | |
$(RM) $(TARGET) $(shell find . -name '*.o') $(shell find . -name '*.d') | |
-include $(DEPS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment