st/egl: Use proper Makefile
This commit is contained in:
@@ -1,29 +1,19 @@
|
||||
TARGET = libegldrm.a
|
||||
CFILES = $(wildcard ./*.c)
|
||||
OBJECTS = $(patsubst ./%.c,./%.o,$(CFILES))
|
||||
GALLIUMDIR = ../..
|
||||
TOP = ../../../..
|
||||
TOP = ../../../..
|
||||
include $(TOP)/configs/current
|
||||
|
||||
include ${TOP}/configs/current
|
||||
LIBNAME = egldrm
|
||||
|
||||
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}
|
||||
LIBRARY_INCLUDES = \
|
||||
-I$(TOP)/src/gallium/include \
|
||||
-I$(TOP)/src/gallium/auxiliary \
|
||||
-I$(TOP)/src/mesa/drivers/dri/common \
|
||||
-I$(TOP)/src/mesa \
|
||||
-I$(TOP)/include \
|
||||
-I$(TOP)/src/egl/main \
|
||||
$(shell pkg-config --cflags-only-I libdrm)
|
||||
|
||||
#############################################
|
||||
|
||||
.PHONY = all clean
|
||||
C_SOURCES = $(wildcard ./*.c)
|
||||
|
||||
all: ${TARGET}
|
||||
|
||||
${TARGET}: ${OBJECTS}
|
||||
ar rcs $@ $^
|
||||
|
||||
clean:
|
||||
rm -rf ${OBJECTS} ${TARGET}
|
||||
include ../../Makefile.template
|
||||
|
||||
Reference in New Issue
Block a user