Create Release and Debug directories if they are not present.

Otherwise, build fails if these directories do not exist.
This commit is contained in:
Stephen Sinclair
2013-09-23 16:02:35 +02:00
committed by Stephen Sinclair
parent a117cd0bb1
commit e449ac3583
18 changed files with 37 additions and 13 deletions

View File

@@ -31,14 +31,18 @@ ifeq ($(strip $(RAWWAVES)), )
endif
DEFS += -DRAWWAVE_PATH=\"$(RAWWAVES)\"
%.o : $(SRC_PATH)/%.cpp
%.o : $(SRC_PATH)/%.cpp $(OBJECT_PATH)/.placeholder
$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@
%.o : ../../src/include/%.cpp
%.o : ../../src/include/%.cpp $(OBJECT_PATH)/.placeholder
$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@
all : $(PROGRAMS)
$(OBJECT_PATH)/.placeholder:
mkdir -vp $(OBJECT_PATH)
touch $(OBJECT_PATH)/.placeholder
$(OBJECTS) : Stk.h
clean :