1 # src/egl/main/Makefile
4 include $(TOP
)/configs
/current
10 INCLUDE_DIRS
= -I
$(TOP
)/include
48 OBJECTS
= $(SOURCES
:.c
=.o
)
51 # use dl*() to load drivers
52 LOCAL_CFLAGS
= -D_EGL_PLATFORM_POSIX
=1
54 EGL_DEFAULT_DISPLAY
= $(word 1, $(EGL_DISPLAYS
))
57 -D_EGL_DEFAULT_DISPLAY
=\"$(EGL_DEFAULT_DISPLAY
)\" \
58 -D_EGL_DRIVER_SEARCH_DIR
=\"$(EGL_DRIVER_INSTALL_DIR
)\"
61 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $(LOCAL_CFLAGS
) $< -o
$@
65 default
: depend library
69 library
: $(TOP
)/$(LIB_DIR
)/$(EGL_LIB_NAME
)
71 $(TOP
)/$(LIB_DIR
)/$(EGL_LIB_NAME
): $(OBJECTS
)
72 $(MKLIB
) -o
$(EGL_LIB
) -linker
'$(CC)' -ldflags '$(LDFLAGS)' \
73 -major
$(EGL_MAJOR
) -minor
$(EGL_MINOR
) \
74 -install $(TOP
)/$(LIB_DIR
) $(MKLIB_OPTIONS
) \
75 $(EGL_LIB_DEPS
) $(OBJECTS
)
78 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_INC_DIR
)/KHR
79 $(INSTALL
) -m
644 $(TOP
)/include/KHR
/*.h \
80 $(DESTDIR
)$(INSTALL_INC_DIR
)/KHR
81 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_INC_DIR
)/EGL
82 $(INSTALL
) -m
644 $(TOP
)/include/EGL
/*.h \
83 $(DESTDIR
)$(INSTALL_INC_DIR
)/EGL
85 install: default install-headers
86 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_LIB_DIR
)
87 $(MINSTALL
) $(TOP
)/$(LIB_DIR
)/$(EGL_LIB_GLOB
) \
88 $(DESTDIR
)$(INSTALL_LIB_DIR
)
92 -rm -f depend depend.bak
95 depend
: $(SOURCES
) $(HEADERS
)
96 @ echo
"running $(MKDEP)"
99 $(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) \
100 $(SOURCES
) $(HEADERS
) > /dev
/null
2>/dev
/null