summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/Makefile.template
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-08-01 15:56:23 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2007-08-01 15:56:23 +0100
commite99b673cb062a2fead92d1d7d373926d148ade71 (patch)
tree6f4ed348c2dcc11212e17f0eddbe3b223f41c9fc /src/mesa/pipe/Makefile.template
parent028a08f563ea9b9039986bafbfaf095fd4a72818 (diff)
downloadexternal_mesa3d-e99b673cb062a2fead92d1d7d373926d148ade71.zip
external_mesa3d-e99b673cb062a2fead92d1d7d373926d148ade71.tar.gz
external_mesa3d-e99b673cb062a2fead92d1d7d373926d148ade71.tar.bz2
Build libsoftpipe.a
Each pipe driver will build to a .a library, as these will optionally be included in the various DRI drivers (this will make more sense once there is at least one hardware driver...). Not strictly necessary for softpipe, but want to minimize the differences between it and actual hw implementations.
Diffstat (limited to 'src/mesa/pipe/Makefile.template')
-rw-r--r--src/mesa/pipe/Makefile.template58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/mesa/pipe/Makefile.template b/src/mesa/pipe/Makefile.template
new file mode 100644
index 0000000..7c64981
--- /dev/null
+++ b/src/mesa/pipe/Makefile.template
@@ -0,0 +1,58 @@
+# -*-makefile-*-
+
+
+# We still have a dependency on the "dri" buffer manager. Most likely
+# the interface can be reused in non-dri environments, and also as a
+# frontend to simpler memory managers.
+#
+COMMON_SOURCES =
+
+OBJECTS = $(C_SOURCES:.c=.o) \
+ $(ASM_SOURCES:.S=.o)
+
+
+### Include directories
+INCLUDES = \
+ -I. \
+ -I$(TOP)/src/mesa/drivers/dri/common \
+ -I$(TOP)/src/mesa/main \
+ -I$(TOP)/src/mesa/pipe \
+ -I$(TOP)/src/mesa
+
+
+##### RULES #####
+
+.c.o:
+ $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
+
+.S.o:
+ $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
+
+
+##### TARGETS #####
+
+default:: depend symlinks $(LIBNAME)
+
+
+$(LIBNAME): $(OBJECTS) Makefile $(TOP)/src/mesa/pipe/Makefile.template
+ $(TOP)/bin/mklib -o $@ -static $(OBJECTS)
+
+
+depend: $(C_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
+ touch depend
+ $(MKDEP) $(MKDEP_OPTIONS) $(DRIVER_DEFINES) $(INCLUDES) $(C_SOURCES) \
+ $(ASM_SOURCES) 2> /dev/null
+
+
+# Emacs tags
+tags:
+ etags `find . -name \*.[ch]` `find ../include`
+
+
+# Remove .o and backup files
+clean:
+ -rm -f *.o */*.o *~ *.so *~ server/*.o $(SYMLINKS)
+ -rm -f depend depend.bak
+
+
+include depend