pmd-sky/tools/o2narc/Makefile
AnonymousRandomPerson 608e361e57 Initialized base repo
2023-06-28 23:35:19 -04:00

30 lines
513 B
Makefile

CXX := g++
CXXFLAGS := -O3 -std=c++11
CXXSRCS := o2narc.cpp Options.cpp RelocElfReader.cpp
CXXOBJS := $(CXXSRCS:%.cpp=%.o)
.PHONY: all clean
all: o2narc
@:
o2narc: $(CXXOBJS)
$(CXX) $(LDFLAGS) -o $@ $^
DEPDIR := .deps
DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.d
$(DEPDIR): ; @mkdir -p $@
%.o: %.cpp
%.o: %.cpp $(DEPDIR)/%.d | $(DEPDIR)
$(CXX) $(CXXFLAGS) $(DEPFLAGS) -c -o $@ $<
clean:
$(RM) o2narc o2narc.exe
DEPFILES := $(CXXSRCS:%.cpp=$(DEPDIR)/%.d)
$(DEPFILES):
include $(wildcard $(DEPFILES))