3499aef0486868f9d127f250717dea8a3b862b93
1 # src/egl/wayland/Makefile
4 include $(TOP
)/configs
/current
6 INCLUDE_DIRS
= -I
$(TOP
)/include
8 HEADERS
= wayland-egl-priv.h
9 SOURCES
= wayland-egl.c
11 OBJECTS
= $(SOURCES
:.c
=.o
)
13 LOCAL_CFLAGS
= -I
$(TOP
)/include/EGL \
14 -I
$(TOP
)/src
/egl
/wayland
/wayland-drm \
23 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $(LOCAL_CFLAGS
) $< -o
$@
26 default
: depend subdirs library
29 library
: $(TOP
)/$(LIB_DIR
)/$(WAYLAND_EGL_LIB_NAME
)
31 $(TOP
)/$(LIB_DIR
)/$(WAYLAND_EGL_LIB_NAME
): $(OBJECTS
) $(LOCAL_LIBS
)
32 $(MKLIB
) -o
$(WAYLAND_EGL_LIB
) -linker
'$(CC)' -ldflags '$(LDFLAGS)' \
33 -install $(TOP
)/$(LIB_DIR
) $(MKLIB_OPTIONS
) \
34 -L
$(TOP
)/$(LIB_DIR
) $(WAYLAND_EGL_LIB_DEPS
) \
35 $(OBJECTS
) $(LOCAL_LIBS
)
37 PKG_CONFIG_DIR
= $(INSTALL_LIB_DIR
)/pkgconfig
40 -e
's,@INSTALL_DIR@,$(INSTALL_DIR),' \
41 -e
's,@INSTALL_LIB_DIR@,$(INSTALL_LIB_DIR),' \
42 -e
's,@INSTALL_INC_DIR@,$(INSTALL_INC_DIR),' \
43 -e
's,@VERSION@,$(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY),' \
44 -e
's,@WAYLAND_EGL_PC_REQ_PRIV@,$(WAYLAND_EGL_PC_REQ_PRIV),' \
45 -e
's,@WAYLAND_EGL_PC_LIB_PRIV@,$(WAYLAND_EGL_PC_LIB_PRIV),' \
46 -e
's,@WAYLAND_EGL_PC_CFLAGS@,$(WAYLAND_EGL_PC_CFLAGS),' \
47 -e
's,@WAYLAND_EGL_LIB@,$(WAYLAND_EGL_LIB),'
49 wayland-egl.
pc: wayland-egl.
pc.in
52 install: default wayland-egl.
pc
53 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_LIB_DIR
)
54 $(MINSTALL
) $(TOP
)/$(LIB_DIR
)/$(WAYLAND_EGL_LIB_GLOB
) \
55 $(DESTDIR
)$(INSTALL_LIB_DIR
)
56 $(INSTALL
) -d
$(DESTDIR
)$(PKG_CONFIG_DIR
)
57 $(INSTALL
) -m
644 wayland-egl.
pc $(DESTDIR
)$(PKG_CONFIG_DIR
)
61 -rm -f depend depend.bak
64 @for
dir in
$(SUBDIRS
) ; do \
65 if
[ -d
$$dir ] ; then \
66 (cd
$$dir && $(MAKE
)) || exit
1 ; \
70 depend
: $(SOURCES
) $(HEADERS
)
71 @ echo
"running $(MKDEP)"
74 $(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) \
75 $(SOURCES
) $(HEADERS
) > /dev
/null
2>/dev
/null