summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/directfb/Makefile
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-01-03 15:35:00 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-01-03 15:35:00 +0000
commit81ca616e7e84768cf91234e4132df9d737b98d94 (patch)
tree7804a3d7c4de1a162bc7cd478a68e9fe88431159 /src/mesa/drivers/directfb/Makefile
parent6563c16e381c2302ef8f76d78f8283e68aa3eb07 (diff)
DirectFB driver (Claudio Ciccani)
Diffstat (limited to 'src/mesa/drivers/directfb/Makefile')
-rw-r--r--src/mesa/drivers/directfb/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/mesa/drivers/directfb/Makefile b/src/mesa/drivers/directfb/Makefile
new file mode 100644
index 0000000000..d78662dd96
--- /dev/null
+++ b/src/mesa/drivers/directfb/Makefile
@@ -0,0 +1,53 @@
+# src/mesa/drivers/directfb/Makefile
+
+TOP = ../../../..
+
+include $(TOP)/configs/current
+
+
+INCLUDE_DIRS = \
+ -I$(TOP)/include \
+ -I$(TOP)/src/mesa \
+ -I$(TOP)/src/mesa/main \
+ -I$(TOP)/src/mesa/glapi \
+ -I$(TOP)/src/mesa/math \
+ -I$(TOP)/src/mesa/tnl \
+ -I$(TOP)/src/mesa/shader \
+ -I$(TOP)/src/mesa/swrast \
+ -I$(TOP)/src/mesa/swrast_setup
+
+DFB_CFLAGS = $(shell pkg-config --cflags directfb)
+DFB_MODULEDIR = $(shell pkg-config --variable=moduledir directfb-internal)
+
+DIRECTFBGL_MESA_SOURCES = ../common/driverfuncs.c idirectfbgl_mesa.c
+
+DIRECTFBGL_MESA_OBJECTS = $(DIRECTFBGL_MESA_SOURCES:.c=.o)
+
+DIRECTFBGL_MESA = libidirectfbgl_mesa.so
+
+.c.o:
+ $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(DFB_CFLAGS) $< -o $@
+
+
+default: directfbgl_mesa
+
+# Mesa DirectFBGL module
+directfbgl_mesa: $(DIRECTFBGL_MESA_OBJECTS)
+ $(CC) -shared $(CFLAGS) $(DIRECTFBGL_MESA_OBJECTS) -o $(DIRECTFBGL_MESA) \
+ -Wl,-soname -Wl,$(DIRECTFBGL_MESA) -L$(TOP)/lib -lGL -lm
+
+
+install:
+ @if test -d $(DFB_MODULEDIR); then \
+ echo "Installing DirectFBGL module."; \
+ else \
+ echo "*** Failed to determine DirectFB module's directory."; \
+ echo "*** Installation aborted."; \
+ exit 1; \
+ fi;
+ install -m 0755 $(DIRECTFBGL_MESA) $(DFB_MODULEDIR)/interfaces/IDirectFBGL/
+
+
+clean:
+ rm -f *.o *.so
+