Skip to content

Commit

Permalink
add object_directories target to ensure output directories exist
Browse files Browse the repository at this point in the history
  • Loading branch information
holtrop committed Oct 29, 2013
1 parent 03e0dae commit 2643ecd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -120,8 +120,12 @@ $(SHARED_LIBNAME): $(PICOBJECTS)
$(DC) -shared $(SONAME_FLAG) $@.$(MAJOR_VERSION) $(OUTPUT)$(DLIB_PATH)$(PATH_SEP)$@.$(PROJECT_VERSION) $^ $(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) $^ #$(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 # 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)$@ $(DC) $(DCFLAGS) $(DCFLAGS_LINK) $(DCFLAGS_IMPORT) -c $< $(OUTPUT)$@


# create shared object files # create shared object files
Expand Down

0 comments on commit 2643ecd

Please sign in to comment.