Permalink
Browse files

add object_directories target to ensure output directories exist

  • Loading branch information...
holtrop committed Oct 29, 2013
1 parent 03e0dae commit 2643ecdd5ae16406c2100aeb4750d5726df8da1f
Showing with 5 additions and 1 deletion.
  1. +5 −1 Makefile
@@ -120,8 +120,12 @@ $(SHARED_LIBNAME): $(PICOBJECTS)
$(DC) -shared $(SONAME_FLAG) $@.$(MAJOR_VERSION) $(OUTPUT)$(DLIB_PATH)$(PATH_SEP)$@.$(PROJECT_VERSION) $^
#$(CC) -l$(PHOBOS) -l$(DRUNTIME) -shared -Wl,-soname,$@.$(MAJOR_VERSION) -o $(DLIB_PATH)$(PATH_SEP)$@.$(PROJECT_VERSION) $^
.PHONY: object_directories
object_directories:
mkdir -p $(dir $(OBJECTS))
# create object files
$(BUILD_PATH)$(PATH_SEP)%.o : %.d
$(BUILD_PATH)$(PATH_SEP)%.o : %.d object_directories
$(DC) $(DCFLAGS) $(DCFLAGS_LINK) $(DCFLAGS_IMPORT) -c $< $(OUTPUT)$@
# create shared object files

0 comments on commit 2643ecd

Please sign in to comment.