summaryrefslogtreecommitdiff
path: root/src/egl/main/Makefile
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-02-25 08:41:13 -0700
committerBrian Paul <brianp@vmware.com>2009-02-25 08:41:13 -0700
commitc34c78b85381ced8bfa9f16faba9a5e9e6bf2a3a (patch)
tree28100b311127347d4c1a2093331ddc1119b140b2 /src/egl/main/Makefile
parent501d6d49dd37597ef65dd8b62a8c7982e735143c (diff)
egl: use new EGL_LIB_DEPS to pass library dependencies to mklib when building libEGL
EGL_LIB_DEPS may need fine-tuning for some platforms. It's only defined in configs/default ATM.
Diffstat (limited to 'src/egl/main/Makefile')
-rw-r--r--src/egl/main/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/egl/main/Makefile b/src/egl/main/Makefile
index a543f675a5..5ee246dc3f 100644
--- a/src/egl/main/Makefile
+++ b/src/egl/main/Makefile
@@ -46,8 +46,6 @@ OBJECTS = $(SOURCES:.c=.o)
# Undefined for now
LOCAL_CFLAGS = -D_EGL_PLATFORM_X=1
-LIBS = -lX11
-
.c.o:
$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(LOCAL_CFLAGS) $< -o $@
@@ -63,7 +61,8 @@ library: $(TOP)/$(LIB_DIR)/libEGL.so
$(TOP)/$(LIB_DIR)/libEGL.so: $(OBJECTS)
$(MKLIB) -o EGL -linker '$(CC)' -ldflags '$(LDFLAGS)' \
-major 1 -minor 0 \
- -install $(TOP)/$(LIB_DIR) -dlopen $(OBJECTS) $(LIBS)
+ -install $(TOP)/$(LIB_DIR) \
+ $(EGL_LIB_DEPS) $(OBJECTS)
install:
$(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)