From: Ryan C. Gordon Date: Wed, 14 Jan 2009 04:29:59 +0000 (-0500) Subject: Mkdir bin directories in Makefile. X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=61e25ddee408e4d86708a6bd3a33148c5b9a93b5;p=lugaru.git Mkdir bin directories in Makefile. --- diff --git a/makefile b/makefile index 90f109c..bac6da5 100644 --- a/makefile +++ b/makefile @@ -263,21 +263,27 @@ OBJS := $(foreach f,$(OBJS),$(BINDIR)/$(f)) all : $(EXE) $(BINDIR)/%.o : %.cpp + @mkdir -p $(dir $@) $(CXX) -o $@ $(CXXFLAGS) $< $(BINDIR)/%.o : %.CC + @mkdir -p $(dir $@) $(CXX) -x c++ -o $@ $(CXXFLAGS) $< $(BINDIR)/%.o : %.cc + @mkdir -p $(dir $@) $(CXX) -o $@ $(CXXFLAGS) $< $(BINDIR)/%.o : %.m + @mkdir -p $(dir $@) $(CC) -o $@ $(CFLAGS) $< $(BINDIR)/%.o : %.c + @mkdir -p $(dir $@) $(CC) -o $@ $(CFLAGS) $< $(EXE) : $(OBJS) $(APPOBJS) + @mkdir -p $(dir $@) ifeq ($(strip $(macosx)),true) ranlib $(SDLDIR)/lib/libSDLmain-osx.a ranlib $(FREETYPEDIR)/lib/libfreetype-osx.a