diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-08 15:16:36 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-08 15:16:36 +0000 |
commit | fc236723273d4d872ae5e7cac876ea20175df10d (patch) | |
tree | 1d7e3461f665aa58b14ca0cb7100c1568a51cbd9 /src | |
parent | e5aa3dd29b0b596a0dafab86ccec6e1f0013076f (diff) |
Improve the behaviour of the build system wrt depend files.
- Remove the -Y option for makedepend, so that the standard
directories are searched
- No longer pipe the multiple errors that the -Y option caused
into /dev/null -- we want to know about these failures.
- Fix up a few other misc makedepend failures.
Diffstat (limited to 'src')
-rw-r--r-- | src/glut/beos/Makefile | 2 | ||||
-rw-r--r-- | src/glut/glx/Makefile | 2 | ||||
-rw-r--r-- | src/glut/mini/Makefile | 2 | ||||
-rw-r--r-- | src/glw/Makefile | 2 | ||||
-rw-r--r-- | src/glx/mini/Makefile | 2 | ||||
-rw-r--r-- | src/glx/x11/Makefile | 9 | ||||
-rw-r--r-- | src/mesa/Makefile | 4 | ||||
-rw-r--r-- | src/mesa/drivers/beos/Makefile | 14 | ||||
-rw-r--r-- | src/mesa/drivers/dri/Makefile.template | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/dri_client/Makefile | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/r200/Makefile | 9 | ||||
-rw-r--r-- | src/mesa/drivers/dri/x11/Makefile | 2 |
12 files changed, 27 insertions, 29 deletions
diff --git a/src/glut/beos/Makefile b/src/glut/beos/Makefile index effd3749a4..d9cf32565c 100644 --- a/src/glut/beos/Makefile +++ b/src/glut/beos/Makefile @@ -92,6 +92,6 @@ clean: depend: $(SOURCES) touch depend - $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) > /dev/null 2>&1 + $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) > /dev/null include depend diff --git a/src/glut/glx/Makefile b/src/glut/glx/Makefile index 12c873d511..161122ac91 100644 --- a/src/glut/glx/Makefile +++ b/src/glut/glx/Makefile @@ -107,6 +107,6 @@ depend: $(SOURCES) @ echo "running $(MKDEP)" @ touch depend @ $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(SOURCES) \ - > /dev/null 2>&1 + > /dev/null include depend diff --git a/src/glut/mini/Makefile b/src/glut/mini/Makefile index d2cb5c744d..ab8fe3e19f 100644 --- a/src/glut/mini/Makefile +++ b/src/glut/mini/Makefile @@ -65,7 +65,7 @@ $(LIB_DIR)/$(GLUT_LIB_NAME): depend $(OBJECTS) # what's included by any source file. depend: $(SOURCES) touch depend - $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) > /dev/null 2>&1 + $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) > /dev/null # Emacs tags tags: diff --git a/src/glw/Makefile b/src/glw/Makefile index 393f8c3bcf..36b70ee57e 100644 --- a/src/glw/Makefile +++ b/src/glw/Makefile @@ -45,7 +45,7 @@ $(LIB_DIR)/$(GLW_LIB_NAME): $(OBJECTS) depend: $(GLW_SOURCES) touch depend $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(GLW_SOURCES) \ - > /dev/null 2>&1 + > /dev/null include depend diff --git a/src/glx/mini/Makefile b/src/glx/mini/Makefile index 4dea619b82..7c2687b014 100644 --- a/src/glx/mini/Makefile +++ b/src/glx/mini/Makefile @@ -68,7 +68,7 @@ drmtest: xf86drm.o drmtest.o depend: $(C_SOURCES) $(ASM_SOURCES) touch depend $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(C_SOURCES) $(ASM_SOURCES) \ - > /dev/null 2>&1 + > /dev/null # Emacs tags diff --git a/src/glx/x11/Makefile b/src/glx/x11/Makefile index 2ef1b966fd..a8fe53a62c 100644 --- a/src/glx/x11/Makefile +++ b/src/glx/x11/Makefile @@ -55,9 +55,7 @@ X86_SOURCES = $(TOP)/src/mesa/x86/glapi_x86.S OBJECTS = $(C_SOURCES:.c=.o) \ $(ASM_SOURCES:.S=.o) -INCLUDES = -I. $(INCLUDE_DIRS) - -INCLUDE_DIRS = \ +INCLUDES = -I. \ -I$(TOP)/include \ -I$(TOP)/include/GL/internal \ -I$(TOP)/src/mesa \ @@ -69,7 +67,8 @@ INCLUDE_DIRS = \ -I$(TOP)/src/mesa/swrast_setup \ -I$(TOP)/src/mesa/drivers/dri/common \ -I$(DRM_SOURCE_PATH)/libdrm \ - -I$(DRM_SOURCE_PATH)/shared + -I$(DRM_SOURCE_PATH)/shared \ + $(X11_INCLUDES) ##### RULES ##### @@ -100,7 +99,7 @@ drmtest: xf86drm.o drmtest.o depend: $(C_SOURCES) $(ASM_SOURCES) touch depend $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(C_SOURCES) $(ASM_SOURCES) \ - > /dev/null 2>&1 + > /dev/null # Emacs tags diff --git a/src/mesa/Makefile b/src/mesa/Makefile index d77af533e1..4672ace65e 100644 --- a/src/mesa/Makefile +++ b/src/mesa/Makefile @@ -172,8 +172,8 @@ SUBDIRS = array_cache drivers/dri glapi main math sparc swrast swrast_setup \ depend: $(ALL_SOURCES) @ echo "running $(MKDEP)" @ touch depend - @ $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDE_DIRS) $(ALL_SOURCES) \ - > /dev/null 2>&1 + $(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDE_DIRS) $(ALL_SOURCES) \ + > /dev/null # Emacs tags diff --git a/src/mesa/drivers/beos/Makefile b/src/mesa/drivers/beos/Makefile index 3b1038b0d4..41aa3a65c1 100644 --- a/src/mesa/drivers/beos/Makefile +++ b/src/mesa/drivers/beos/Makefile @@ -11,7 +11,7 @@ MESA_MODULES = $(TOP)/src/mesa/mesa.a # GLU_DIR = $(TOP)/src/glu/mesa ifeq ($(GLU_DIR),) - # By default, we build the SGI GLU implementation +# By default, we build the SGI GLU implementation GLU_DIR = $(TOP)/src/glu/sgi endif @@ -146,9 +146,9 @@ DRIVER_SOURCES = \ ifeq ($(CPU), x86) DRIVER_SOURCES += $(addprefix ../../, $(X86_API)) else - # No GL API PPC optimization yet +# No GL API PPC optimization yet endif - + DRIVER_OBJECTS = $(DRIVER_SOURCES:.c=.o) DRIVER_OBJECTS := $(DRIVER_OBJECTS:.S=.o) @@ -171,10 +171,10 @@ default: depend $(LIB_DIR) $(LIB_DIR)/$(GL_LIB_NAME) $(MESA_MODULES): cd $(TOP)/src/mesa; $(MAKE) mesa.a ; - + $(GLU_MODULES): cd $(GLU_DIR); $(MAKE) $(subst $(GLU_DIR)/,,$(GLU_MODULES)) ; - + $(LIB_DIR): mkdir $(LIB_DIR) @@ -187,9 +187,9 @@ $(LIB_DIR)/$(GL_LIB_NAME): $(OBJECTS) $(MESA_MODULES) $(GLU_MODULES) depend: $(DRIVER_SOURCES) $(GLU_SOURCES) touch depend - $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(DRIVER_SOURCES) $(GLU_SOURCES) > /dev/null 2>&1 + $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(DRIVER_SOURCES) $(GLU_SOURCES) > /dev/null clean: rm -f depend $(OBJECTS) - + include depend diff --git a/src/mesa/drivers/dri/Makefile.template b/src/mesa/drivers/dri/Makefile.template index 3e8ac6693e..a9c8241df0 100644 --- a/src/mesa/drivers/dri/Makefile.template +++ b/src/mesa/drivers/dri/Makefile.template @@ -84,8 +84,8 @@ $(LIB_DIR)/$(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(WINOBJ) Makefile $(TOP)/src # what's included by any source file. depend: $(C_SOURCES) $(ASM_SOURCES) touch depend - $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(C_SOURCES) $(ASM_SOURCES) \ - > /dev/null 2>&1 + $(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDES) $(C_SOURCES) $(ASM_SOURCES) \ + > /dev/null # Emacs tags diff --git a/src/mesa/drivers/dri/dri_client/Makefile b/src/mesa/drivers/dri/dri_client/Makefile index 35a7ed4cd0..9ec09e9a02 100644 --- a/src/mesa/drivers/dri/dri_client/Makefile +++ b/src/mesa/drivers/dri/dri_client/Makefile @@ -42,8 +42,8 @@ default: depend dri.a # what's included by any source file. depend: $(C_SOURCES) $(ASM_SOURCES) touch depend - $(MKDEP) $(MKDEP_OPTIONS) -Y $(INCLUDES) \ - $(C_SOURCES) $(ASM_SOURCES) > /dev/null 2>&1 + $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) \ + $(C_SOURCES) $(ASM_SOURCES) dri.a: $(OBJECTS) diff --git a/src/mesa/drivers/dri/r200/Makefile b/src/mesa/drivers/dri/r200/Makefile index a2aeeb5a94..e3045287fd 100644 --- a/src/mesa/drivers/dri/r200/Makefile +++ b/src/mesa/drivers/dri/r200/Makefile @@ -43,17 +43,16 @@ C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES) X86_SOURCES = r200_vtxtmp_x86.S SYMLINKS = \ - server/radeon_dri.c \ - server/radeon_dri.h \ - server/radeon.h \ - server/radeon_macros.h \ - server/radeon_reg.h + server/radeon_dri.c + ##### TARGETS ##### include ../Makefile.template +INCLUDES += -I../radeon/server + $(SYMLINKS): mkdir -p server for i in $(SYMLINKS) ; do rm -f $$i && test -f ../radeon/$$i && ln -s ../../radeon/$$i $$i ; done diff --git a/src/mesa/drivers/dri/x11/Makefile b/src/mesa/drivers/dri/x11/Makefile index 4fe42a2fbf..3b0b2e2848 100644 --- a/src/mesa/drivers/dri/x11/Makefile +++ b/src/mesa/drivers/dri/x11/Makefile @@ -74,7 +74,7 @@ $(LIB_DIR)/$(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(WINOBJ) Makefile depend: $(C_SOURCES) $(ASM_SOURCES) touch depend $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDE_DIRS) $(C_SOURCES) $(ASM_SOURCES) \ - > /dev/null 2>&1 + > /dev/null # Emacs tags |