summaryrefslogtreecommitdiffstats
path: root/src/egl/main/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/main/Makefile')
-rw-r--r--src/egl/main/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/egl/main/Makefile b/src/egl/main/Makefile
index e1058a23f70..0efcd4e605b 100644
--- a/src/egl/main/Makefile
+++ b/src/egl/main/Makefile
@@ -16,7 +16,8 @@ HEADERS = \
eglhash.h \
eglmode.h \
eglscreen.h \
- eglsurface.h
+ eglsurface.h \
+ eglx.h
SOURCES = \
eglapi.c \
@@ -29,13 +30,17 @@ SOURCES = \
eglhash.c \
eglmode.c \
eglscreen.c \
- eglsurface.c
+ eglsurface.c \
+ eglx.c
OBJECTS = $(SOURCES:.c=.o)
+LOCAL_CFLAGS = -D_EGL_PLATFORM_X=1
+
+
.c.o:
- $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
+ $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(LOCAL_CFLAGS) $< -o $@