# src/egl/main/Makefile TOP = ../../.. include $(TOP)/configs/current INCLUDE_DIRS = -I$(TOP)/include -I$(TOP)/src/mesa/glapi HEADERS = \ eglconfig.h \ eglcontext.h \ egldisplay.h \ egldriver.h \ eglglobals.h \ egllog.h \ eglhash.h \ eglmode.h \ eglscreen.h \ eglsurface.h \ eglx.h SOURCES = \ eglapi.c \ eglconfig.c \ eglcontext.c \ egldisplay.c \ egldriver.c \ eglglobals.c \ egllog.c \ eglhash.c \ eglmode.c \ eglscreen.c \ eglsurface.c \ eglx.c OBJECTS = $(SOURCES:.c=.o) LOCAL_CFLAGS = -D_EGL_PLATFORM_X=1 .c.o: $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(LOCAL_CFLAGS) $< -o $@ default: depend library # EGL Library library: $(TOP)/$(LIB_DIR)/libEGL.so $(TOP)/$(LIB_DIR)/libEGL.so: $(OBJECTS) $(TOP)/bin/mklib -o EGL -major 1 -minor 0 \ -install $(TOP)/$(LIB_DIR) -ldl $(OBJECTS) clean: rm -f *.o *.so* rm -f core.* depend: $(SOURCES) $(HEADERS) @ echo "running $(MKDEP)" @ rm -f depend @ touch depend $(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDE_DIRS) \ $(SOURCES) $(HEADERS) > /dev/null 2>/dev/null include depend # DO NOT DELETE