Makefile revision 277bf235f169c5ab885028360a5dfdf6a970616a
1TARGET     = libegldrm.a
2CFILES     = $(wildcard ./*.c)
3OBJECTS    = $(patsubst ./%.c,./%.o,$(CFILES))
4GALLIUMDIR = ../..
5TOP        = ../../../..
6
7include ${TOP}/configs/current
8
9CFLAGS += -g -Wall -Werror=implicit-function-declaration -fPIC \
10          -I${GALLIUMDIR}/include \
11          -I${GALLIUMDIR}/auxiliary \
12          -I${TOP}/src/mesa/drivers/dri/common \
13          -I${TOP}/src/mesa \
14          -I$(TOP)/include \
15          -I$(TOP)/src/egl/main \
16          $(shell pkg-config --cflags pixman-1 xorg-server) \
17          ${LIBDRM_CFLAGS}
18
19#############################################
20
21.PHONY	= all clean
22
23all: ${TARGET}
24
25${TARGET}: ${OBJECTS}
26	ar rcs $@ $^
27
28clean:
29	rm -rf ${OBJECTS} ${TARGET}
30