1 # src/egl/main/Makefile
4 include $(TOP
)/configs
/current
10 INCLUDE_DIRS
= -I
$(TOP
)/include
46 OBJECTS
= $(SOURCES
:.c
=.o
)
49 # use dl*() to load drivers
50 LOCAL_CFLAGS
= -D_EGL_PLATFORM_POSIX
=1
52 EGL_DEFAULT_DISPLAY
= $(word 1, $(EGL_DISPLAYS
))
55 -D_EGL_DEFAULT_DISPLAY
=\"$(EGL_DEFAULT_DISPLAY
)\" \
56 -D_EGL_DRIVER_SEARCH_DIR
=\"$(EGL_DRIVER_INSTALL_DIR
)\"
59 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $(LOCAL_CFLAGS
) $< -o
$@
63 default
: depend library
67 library
: $(TOP
)/$(LIB_DIR
)/$(EGL_LIB_NAME
)
69 $(TOP
)/$(LIB_DIR
)/$(EGL_LIB_NAME
): $(OBJECTS
)
70 $(MKLIB
) -o
$(EGL_LIB
) -linker
'$(CC)' -ldflags '$(LDFLAGS)' \
71 -major
$(EGL_MAJOR
) -minor
$(EGL_MINOR
) \
72 -install $(TOP
)/$(LIB_DIR
) $(MKLIB_OPTIONS
) \
73 $(EGL_LIB_DEPS
) $(OBJECTS
)
76 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_LIB_DIR
)
77 $(MINSTALL
) $(TOP
)/$(LIB_DIR
)/$(EGL_LIB_GLOB
) \
78 $(DESTDIR
)$(INSTALL_LIB_DIR
)
82 -rm -f depend depend.bak
85 depend
: $(SOURCES
) $(HEADERS
)
86 @ echo
"running $(MKDEP)"
89 $(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) \
90 $(SOURCES
) $(HEADERS
) > /dev
/null
2>/dev
/null