default: $(TOP)/configs/current
@for dir in $(SUBDIRS) ; do \
- (cd $$dir ; make) || exit 1 ; \
+ (cd $$dir ; $(MAKE)) || exit 1 ; \
done
clean:
@for dir in $(SUBDIRS) ; do \
- (cd $$dir ; make clean) ; \
+ (cd $$dir ; $(MAKE) clean) ; \
done
realclean:
touch $(TOP)/configs/current
- make clean
+ $(MAKE) clean
-rm -rf lib*
-rm -f $(TOP)/configs/current
sunos5-smp \
ultrix-gcc:
(cd configs && rm -f current && ln -s $@ current)
- make default
+ $(MAKE) default
# Rules for making release tarballs
MKLIB_OPTIONS =
MKDEP = makedepend
MKDEP_OPTIONS = -Y -fdepend
-
+MAKE = make
# Library names (base name)
GL_LIB = GL
# Compiler and flags
CC = gcc
CXX = g++
+MAKE = gmake
CFLAGS = -O2 -fPIC -pedantic -I/usr/X11R6/include -DUSE_XSHM -DHZ=100
CXXFLAGS = -O2 -fPIC -pedantic
default: $(TOP)/configs/current
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
- (cd $$dir ; make) || exit 1 ; \
+ (cd $$dir ; $(MAKE)) || exit 1 ; \
fi \
done
clean:
@for dir in $(SUBDIRS) tests ; do \
if [ -d $$dir ] ; then \
- (cd $$dir ; make clean) ; \
+ (cd $$dir ; $(MAKE) clean) ; \
fi \
done
depend: $(SOURCES)
touch depend
- makedepend -fdepend -Y $(INCLUDES) $(SOURCES) >& /dev/null
+ $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) > /dev/null 2>&1
# Emacs tags
subdirs:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
- (cd $$dir ; make) || exit 1 ; \
+ (cd $$dir ; $(MAKE)) || exit 1 ; \
fi \
done
clean:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
- (cd $$dir ; make clean) ; \
+ (cd $$dir ; $(MAKE) clean) ; \
fi \
done
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
#
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
default:
- cd mini ; make
+ cd mini ; $(MAKE)
clean:
- cd mini ; make clean
+ cd mini ; $(MAKE) clean
# 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
# 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)
######################################################################
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)
# 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
-rm -f */*.o
rm -f depend mesa.a
for dir in $(SUBDIRS) ; do \
- (cd $$dir ; make clean) ; \
+ (cd $$dir ; $(MAKE) clean) ; \
done
include depend
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
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)
depend: $(C_SOURCES) $(ASM_SOURCES)
touch depend
$(MKDEP) $(MKDEP_OPTIONS) $(INCLUDE_DIRS) $(C_SOURCES) $(ASM_SOURCES) \
- >& /dev/null
+ > /dev/null 2>&1
# Emacs tags
depend: $(C_SOURCES) $(ASM_SOURCES)
touch depend
$(MKDEP) $(MKDEP_OPTIONS) $(INCLUDE_DIRS) $(C_SOURCES) $(ASM_SOURCES) \
- >& /dev/null
+ > /dev/null 2>&1
# Emacs tags