Skip to content

Commit

Permalink
compile with c++14
Browse files Browse the repository at this point in the history
  • Loading branch information
j4cobgarby committed Jul 17, 2017
1 parent a82a5b8 commit 73f6e86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ clean:
rm -f $(EXE)

$(EXE): $(OBJDIR) $(OBJ)
$(LD) $(OBJ) $(LDFLAGS) -std=c++11 -o $@
$(LD) $(OBJ) $(LDFLAGS) -std=c++14 -o $@

$(OBJDIR):
mkdir $@

$(OBJDIR)/%.o: $(SRCDIR)/%.cpp
$(CXX) $(CXXFLAGS) -std=c++11 $< -o $@
$(CXX) $(CXXFLAGS) -std=c++14 $< -o $@

$(OBJDIR)/%.o: $(SRCDIR)/%.cpp $(SRCDIR)/%.h
$(CXX) $(CXXFLAGS) -std=c++11 $< -o $@
$(CXX) $(CXXFLAGS) -std=c++14 $< -o $@

0 comments on commit 73f6e86

Please sign in to comment.