Browse Source

dri: Ensure subdirs have finished before linking driver

Recursive make is hard. If there are subdirectories in the DRI drivers,
it's pretty certain we want to finish building in them before linking
the driver. Add a new target to serialize the rules.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
tags/mesa_7_7_rc1
Dan Nicholson 16 years ago
parent
commit
cf65d81cf1
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/mesa/drivers/dri/Makefile.template

+ 5
- 1
src/mesa/drivers/dri/Makefile.template View File

@@ -60,9 +60,13 @@ SHARED_INCLUDES = \

##### TARGETS #####

default: symlinks subdirs depend $(LIBNAME) $(TOP)/$(LIB_DIR)/$(LIBNAME)
default: subdirs lib


.PHONY: lib
lib: symlinks subdirs depend
@$(MAKE) $(LIBNAME) $(TOP)/$(LIB_DIR)/$(LIBNAME)

$(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(EXTRA_MODULES) $(WINOBJ) Makefile \
$(TOP)/src/mesa/drivers/dri/Makefile.template
$(MKLIB) -o $@ -noprefix -linker '$(CC)' -ldflags '$(LDFLAGS)' \

Loading…
Cancel
Save