summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-01-04 14:19:25 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-01-04 14:19:25 +0000
commitbdbdab837eb8d84e2c2388ff2a780f5c0931473f (patch)
tree9d754727725ec8f4dba597ec017c7c66220957b7
parent6650264802ae5da354ccdd5e4d6f6ae7d394f8ab (diff)
directfb changes (Claudio Ciccani)
-rw-r--r--src/mesa/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mesa/Makefile b/src/mesa/Makefile
index 4672ace65e..b88a122abf 100644
--- a/src/mesa/Makefile
+++ b/src/mesa/Makefile
@@ -26,6 +26,8 @@ default:
$(MAKE) osmesa-only ; \
elif [ "$(DRIVER_DIRS)" = "beos" ]; then \
$(MAKE) beos ; \
+ elif [ "$(DRIVER_DIRS)" = "directfb" ]; then \
+ $(MAKE) directfb; \
else \
$(MAKE) stand-alone ; \
fi
@@ -69,6 +71,30 @@ drivers-dri:
cd drivers/dri ; $(MAKE)
+
+#####################################################################
+# Stand-alone Mesa libGL, no built-in drivers (DirectFB)
+
+LIBGL_CORE_SOURCES = \
+ $(CORE_SOURCES) \
+ $(ASM_SOURCES)
+
+LIBGL_CORE_OBJECTS = \
+ $(CORE_OBJECTS) \
+ $(ASM_SOURCES:.S=.o)
+
+# Make libGL from core object files
+libgl-core: $(LIBGL_CORE_OBJECTS)
+ @ CC=$(CC) CXX=$(CXX) $(TOP)/bin/mklib -o $(GL_LIB) \
+ -major $(MESA_MAJOR) -minor $(MESA_MINOR) -patch $(MESA_TINY) \
+ -install $(LIB_DIR) $(MKLIB_OPTIONS) $(LIBGL_CORE_OBJECTS) $(GL_LIB_DEPS)
+
+# DirectFB driver target
+directfb: depend subdirs libgl-core
+ cd drivers/directfb; $(MAKE)
+
+
+
######################################################################
# Stand-alone Mesa libGL and libOSMesa