summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2004-06-01 00:06:14 +0000
committerEric Anholt <anholt@FreeBSD.org>2004-06-01 00:06:14 +0000
commit2fb5d15ce38d8d298c4fbf8c0bb336154a314b13 (patch)
tree51f1626c3f3054216174bba640ecb5425ba80647 /src
parentc1311d80bd0b2661581bb510c18780d7603cd014 (diff)
Build fixing for FreeBSD. GNU make is installed as gmake, so make a MAKE
variable (defaults to "make") and use that. Use the MKDEP and MKDEP_OPTIONS more. Our shell isn't bash, so change the instances of ">& /dev/null" to a more compatible "> /dev/null 2>&1".
Diffstat (limited to 'src')
-rw-r--r--src/Makefile4
-rw-r--r--src/glu/Makefile4
-rw-r--r--src/glw/Makefile3
-rw-r--r--src/glx/Makefile4
-rw-r--r--src/mesa/Makefile15
-rw-r--r--src/mesa/drivers/dri/Makefile4
-rw-r--r--src/mesa/drivers/dri/dri_client/Makefile2
-rw-r--r--src/mesa/drivers/dri/fb/Makefile2
-rw-r--r--src/mesa/drivers/dri/x11/Makefile2
9 files changed, 21 insertions, 19 deletions
diff --git a/src/Makefile b/src/Makefile
index 8e9b8b96684..ffcddffec5f 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -13,7 +13,7 @@ default: $(LIB_DIR) subdirs
subdirs:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
- (cd $$dir ; make) || exit 1 ; \
+ (cd $$dir ; $(MAKE)) || exit 1 ; \
fi \
done
@@ -25,6 +25,6 @@ $(LIB_DIR):
clean:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
- (cd $$dir ; make clean) ; \
+ (cd $$dir ; $(MAKE) clean) ; \
fi \
done
diff --git a/src/glu/Makefile b/src/glu/Makefile
index 2b922fc021d..915b95081a9 100644
--- a/src/glu/Makefile
+++ b/src/glu/Makefile
@@ -10,11 +10,11 @@ SUBDIRS = $(GLU_DIRS)
default: $(TOP)/configs/current
@for dir in $(SUBDIRS) ; do \
- (cd $$dir ; make) ; \
+ (cd $$dir ; $(MAKE)) ; \
done
clean:
@for dir in $(SUBDIRS) ; do \
- (cd $$dir ; make clean) ; \
+ (cd $$dir ; $(MAKE) clean) ; \
done
diff --git a/src/glw/Makefile b/src/glw/Makefile
index 635f862b9e9..3af07a1491c 100644
--- a/src/glw/Makefile
+++ b/src/glw/Makefile
@@ -44,7 +44,8 @@ $(LIB_DIR)/$(GLW_LIB_NAME): $(OBJECTS)
#
depend: $(GLW_SOURCES)
touch depend
- $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(GLW_SOURCES) >&/dev/null
+ $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(GLW_SOURCES) \
+ > /dev/null 2>&1
include depend
diff --git a/src/glx/Makefile b/src/glx/Makefile
index d6bef1054aa..bd486cf81b3 100644
--- a/src/glx/Makefile
+++ b/src/glx/Makefile
@@ -4,9 +4,9 @@ include $(TOP)/configs/current
default:
- cd mini ; make
+ cd mini ; $(MAKE)
clean:
- cd mini ; make clean
+ cd mini ; $(MAKE) clean
diff --git a/src/mesa/Makefile b/src/mesa/Makefile
index 31f64c5f272..ea844afae7a 100644
--- a/src/mesa/Makefile
+++ b/src/mesa/Makefile
@@ -21,11 +21,11 @@ GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
# Figure out what to make here
default:
@if [ "${DRIVER_DIRS}" = "dri" ] ; then \
- make linux-solo ; \
+ $(MAKE) linux-solo ; \
elif [ "${DRIVER_DIRS}" = "osmesa" ] ; then \
- make osmesa-only ; \
+ $(MAKE) osmesa-only ; \
else \
- make stand-alone ; \
+ $(MAKE) stand-alone ; \
fi
@@ -58,7 +58,7 @@ mesa.a: $(SOLO_OBJECTS)
# target, otherwise make will look & see that the "drivers" directory
# already exists, so not try to rebuild it...
driver-dirs:
- cd drivers/dri ; make
+ cd drivers/dri ; $(MAKE)
######################################################################
@@ -101,7 +101,7 @@ stand-alone: depend subdirs $(LIB_DIR)/$(GL_LIB_NAME) $(LIB_DIR)/$(OSMESA_LIB_NA
osmesa-only: depend subdirs $(LIB_DIR)/$(OSMESA_LIB_NAME)
subdirs:
- @ (cd x86 ; make)
+ @ (cd x86 ; $(MAKE))
# Make the GL library
$(LIB_DIR)/$(GL_LIB_NAME): $(STAND_ALONE_OBJECTS)
@@ -159,7 +159,8 @@ SUBDIRS = array_cache drivers/dri glapi main math sparc swrast swrast_setup \
# Update dependencies
depend: $(ALL_SOURCES)
touch depend
- $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDE_DIRS) $(ALL_SOURCES) >& /dev/null
+ $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDE_DIRS) $(ALL_SOURCES) \
+ > /dev/null 2>&1
# Emacs tags
@@ -170,7 +171,7 @@ clean:
-rm -f */*.o
rm -f depend mesa.a
for dir in $(SUBDIRS) ; do \
- (cd $$dir ; make clean) ; \
+ (cd $$dir ; $(MAKE) clean) ; \
done
include depend
diff --git a/src/mesa/drivers/dri/Makefile b/src/mesa/drivers/dri/Makefile
index c1af50696ce..c4d9a837767 100644
--- a/src/mesa/drivers/dri/Makefile
+++ b/src/mesa/drivers/dri/Makefile
@@ -17,12 +17,12 @@ subdirs:
echo $(DRI_DIRS)
@for dir in $(DRI_DIRS) ; do \
echo $$dir ; \
- (cd $$dir ; make) || exit 1; \
+ (cd $$dir ; $(MAKE)) || exit 1; \
done
clean:
@for dir in $(DRI_DIRS) ; do \
- (cd $$dir ; make clean) ; \
+ (cd $$dir ; $(MAKE) clean) ; \
done
rm common/*.o
diff --git a/src/mesa/drivers/dri/dri_client/Makefile b/src/mesa/drivers/dri/dri_client/Makefile
index 4f90cbfd461..ae4bf3055b6 100644
--- a/src/mesa/drivers/dri/dri_client/Makefile
+++ b/src/mesa/drivers/dri/dri_client/Makefile
@@ -43,7 +43,7 @@ default: depend dri.a
depend: $(C_SOURCES) $(ASM_SOURCES)
touch depend
$(MKDEP) $(MKDEP_OPTIONS) -Y $(INCLUDES) \
- $(C_SOURCES) $(ASM_SOURCES) >& /dev/null
+ $(C_SOURCES) $(ASM_SOURCES) > /dev/null 2>&1
dri.a: $(OBJECTS)
diff --git a/src/mesa/drivers/dri/fb/Makefile b/src/mesa/drivers/dri/fb/Makefile
index a50aa0cb455..578eeb94400 100644
--- a/src/mesa/drivers/dri/fb/Makefile
+++ b/src/mesa/drivers/dri/fb/Makefile
@@ -64,7 +64,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
+ > /dev/null 2>&1
# Emacs tags
diff --git a/src/mesa/drivers/dri/x11/Makefile b/src/mesa/drivers/dri/x11/Makefile
index 9804411030f..a0334b17a3c 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
+ > /dev/null 2>&1
# Emacs tags