Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2006-02-23 02:26:26 +0300
committerChris Want <cwant@ualberta.ca>2006-02-23 02:26:26 +0300
commitfc9ba4b3233c1c76f1bdf8462c0e127d86cf14d0 (patch)
tree7db8532d39040a9b05d233fbe8bd1af2db108687 /source/nan_compile.mk
parentef257c2519078a13666e70e2905c5c22a64e7593 (diff)
In some directories (e.g. source/blender/src) there are so many files
now that the command to put the object files into an archive is exceeding 20k characters, which is a problem for some operating systems. To avoid this, this modification causes make to change directories before archiving, to avoid having to specify full file paths to the files being archived. If this causes problems on some systems, let me know and I'll find an alternative.
Diffstat (limited to 'source/nan_compile.mk')
-rw-r--r--source/nan_compile.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/nan_compile.mk b/source/nan_compile.mk
index f64be26b621..1201d3e546e 100644
--- a/source/nan_compile.mk
+++ b/source/nan_compile.mk
@@ -117,7 +117,7 @@ ifeq ($(OS),irix)
CCC = CC
CFLAGS += -n32 -mips3 -Xcpluscomm
CCFLAGS += -n32 -mips3 -Xcpluscomm -LANG:std
- CCFLAGS += -LANG:libc_in_namespace_std=off
+ CCFLAGS += -LANG:libc_in_namespace_std=off -I$(MIPS73_ISOHEADERS)
REL_CFLAGS += -n32 -mips3 -O2 -OPT:Olimit=0
REL_CCFLAGS += -n32 -mips3 -O2 -OPT:Olimit=0
OPENGL_HEADERS = /usr/include
@@ -302,6 +302,11 @@ ifdef NAN_DEPEND
-include $(CSRCS:%.c=$(DIR)/$(DEBUG_DIR)%.d) $(CCSRCS:%.cpp=$(DIR)/$(DEBUG_DIR)%.d)
endif
+OBJS_AR := $(OBJS)
+OBJS_AR += $(CSRCS:%.c=%.o)
+OBJS_AR += $(CCSRCS:%.cpp=%.o)
+OBJS_AR += $(WINRC:%.rc=%.res)
+
OBJS += $(CSRCS:%.c=$(DIR)/$(DEBUG_DIR)%.o)
OBJS += $(CCSRCS:%.cpp=$(DIR)/$(DEBUG_DIR)%.o)
OBJS += $(WINRC:%.rc=$(DIR)/$(DEBUG_DIR)%.res)
@@ -317,9 +322,9 @@ $(LIB_a): $(OBJS)
@$(RM) $(LIB_a)
ifdef NAN_QUIET
@echo " -- lib: lib$(LIBNAME).a -- "
- @$(AR) $(ARFLAGSQUIET) $@ $(OBJS)
+ @cd $(DIR)/$(DEBUG_DIR); $(AR) $(ARFLAGSQUIET) $@ $(OBJS_AR)
else
- $(AR) $(ARFLAGS) $@ $(OBJS)
+ cd $(DIR)/$(DEBUG_DIR); $(AR) $(ARFLAGS) $@ $(OBJS_AR)
endif
else
ifdef NAN_QUIET