summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/egl/Makefile
blob: 692a3c8b76f579cf5faa63ef8573edeba1bcd1ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
TARGET     = libegldrm.a
CFILES     = $(wildcard ./*.c)
OBJECTS    = $(patsubst ./%.c,./%.o,$(CFILES))
GALLIUMDIR = ../..
TOP        = ../../../..

include ${TOP}/configs/current

CFLAGS := \
          -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 \
          ${LIBDRM_CFLAGS} \
          ${CFLAGS}

#############################################

.PHONY	= all clean

all: ${TARGET}

${TARGET}: ${OBJECTS}
	ar rcs $@ $^

clean:
	rm -rf ${OBJECTS} ${TARGET}