Commit 7edbf4b3 authored by Eric Anholt's avatar Eric Anholt

automake: Convert src/Makefile to automake.

Reviewed-by: Kenneth Graunke (AFK until mid-April)'s avatarKenneth Graunke <kenneth@whitecape.org>
parent 07abd913
...@@ -2131,6 +2131,7 @@ CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS" ...@@ -2131,6 +2131,7 @@ CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
dnl Substitute the config dnl Substitute the config
AC_CONFIG_FILES([configs/autoconf AC_CONFIG_FILES([configs/autoconf
Makefile Makefile
src/Makefile
src/gallium/auxiliary/pipe-loader/Makefile src/gallium/auxiliary/pipe-loader/Makefile
src/gallium/state_trackers/clover/Makefile src/gallium/state_trackers/clover/Makefile
src/gallium/drivers/Makefile src/gallium/drivers/Makefile
......
# src/Makefile
TOP = ..
include $(TOP)/configs/current
SUBDIRS = $(SRC_DIRS)
default: message $(TOP)/$(LIB_DIR) subdirs
message:
@echo "Making sources for" $(CONFIG_NAME)
subdirs:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
(cd $$dir && $(MAKE)) || exit 1; \
fi \
done
install: $(TOP)/$(LIB_DIR)
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
(cd $$dir && $(MAKE) install) || exit 1 ; \
fi \
done
$(TOP)/$(LIB_DIR):
-@test -d $(TOP)/$(LIB_DIR) || mkdir -p $(TOP)/$(LIB_DIR)
clean:
-@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
(cd $$dir && $(MAKE) clean) ; \
fi \
done
SUBDIRS=$(SRC_DIRS)
all-local:
$(MKDIR_P) $(top_builddir)/$(LIB_DIR)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment