Skip to content

Commit

Permalink
fix a bug in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
richkmeli committed Jun 23, 2017
1 parent 57baa7e commit ac5aacc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
TARGET = Richkware

ifeq ($(OS),Windows_NT)
CXX=g++
CXX=g++
RM=cmd //C rmdir //Q //S
MKDIR=mkdir
else
CXX=x86_64-w64-mingw32-g++
RM=rm -rf
MKDIR=mkdir -p
endif

# flags
Expand Down Expand Up @@ -39,8 +43,8 @@ main.o:

.PHONY : make_directories
make_directories:
mkdir -p $(OBJDIR) $(BINDIR)
$(MKDIR) $(OBJDIR) $(BINDIR)

.PHONY : clean
clean:
rm -rf $(OBJDIR) $(BINDIR)
$(RM) $(OBJDIR) $(BINDIR)

0 comments on commit ac5aacc

Please sign in to comment.