mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 03:48:06 +02:00
33 lines
747 B
Makefile
33 lines
747 B
Makefile
# src/glu/Makefile
|
|
|
|
TOP = ../..
|
|
|
|
include $(TOP)/configs/current
|
|
|
|
|
|
SUBDIRS = $(GLU_DIRS)
|
|
|
|
|
|
default: $(TOP)/configs/current
|
|
@for dir in $(SUBDIRS) ; do \
|
|
(cd $$dir ; $(MAKE)) ; \
|
|
done
|
|
|
|
# GLU pkg-config file
|
|
pcedit = sed \
|
|
-e 's,@INSTALL_DIR@,$(INSTALL_DIR),' \
|
|
-e 's,@LIB_DIR@,$(LIB_DIR),' \
|
|
-e 's,@VERSION@,$(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY),'
|
|
glu.pc: glu.pc.in
|
|
$(pcedit) $< > $@
|
|
|
|
install: glu.pc
|
|
$(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)
|
|
$(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)/pkgconfig
|
|
$(INSTALL) $(TOP)/$(LIB_DIR)/libGLU.* $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)
|
|
$(INSTALL) -m 644 glu.pc $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)/pkgconfig
|
|
|
|
clean:
|
|
@for dir in $(SUBDIRS) ; do \
|
|
(cd $$dir ; $(MAKE) clean) ; \
|
|
done
|