aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xorg/Makefile
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-03-03 03:22:46 +0100
committerJakob Bornecrantz <[email protected]>2009-03-03 03:22:46 +0100
commit84711c6582d08b8ea0bbdd0acd27d927a9bcbf4f (patch)
treecd044f8152ab63235476c223d0af3ac415787671 /src/gallium/state_trackers/xorg/Makefile
parent1d060e36f248b2c1d2575d1e2cbd362b8345ae55 (diff)
st/xorg: Add Xorg state tracker
Diffstat (limited to 'src/gallium/state_trackers/xorg/Makefile')
-rw-r--r--src/gallium/state_trackers/xorg/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xorg/Makefile b/src/gallium/state_trackers/xorg/Makefile
new file mode 100644
index 00000000000..a00ea3e2a4e
--- /dev/null
+++ b/src/gallium/state_trackers/xorg/Makefile
@@ -0,0 +1,29 @@
+TARGET = libxorgtracker.a
+CFILES = $(wildcard ./*.c)
+OBJECTS = $(patsubst ./%.c,./%.o,$(CFILES))
+GALLIUMDIR = ../..
+TOP = ../../../..
+
+include $(TOP)/configs/current
+
+CFLAGS = -DHAVE_CONFIG_H \
+ -g -Wall -Wimplicit-function-declaration -fPIC \
+ $(shell pkg-config --cflags pixman-1 xorg-server libdrm xproto) \
+ -I$(GALLIUMDIR)/include \
+ -I$(GALLIUMDIR)/auxiliary \
+ -I$(TOP)/src/mesa/drivers/dri/common \
+ -I$(TOP)/src/mesa \
+ -I$(TOP)/include \
+ -I$(TOP)/src/egl/main
+
+#############################################
+
+.PHONY = all clean
+
+all: $(TARGET)
+
+$(TARGET): $(OBJECTS)
+ ar rcs $(TARGET) $(OBJECTS)
+
+clean:
+ rm -rf $(OBJECTS) $(TARGET)