Browse Source

automake: Convert src/Makefile to automake.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
tags/instanced_arrays-v2
Eric Anholt 13 years ago
parent
commit
7edbf4b323
4 changed files with 6 additions and 40 deletions
  1. 1
    0
      configure.ac
  2. 1
    0
      src/.gitignore
  3. 0
    40
      src/Makefile
  4. 4
    0
      src/Makefile.am

+ 1
- 0
configure.ac View File

@@ -2131,6 +2131,7 @@ CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
dnl Substitute the config
AC_CONFIG_FILES([configs/autoconf
Makefile
src/Makefile
src/gallium/auxiliary/pipe-loader/Makefile
src/gallium/state_trackers/clover/Makefile
src/gallium/drivers/Makefile

+ 1
- 0
src/.gitignore View File

@@ -0,0 +1 @@
/Makefile

+ 0
- 40
src/Makefile View File

@@ -1,40 +0,0 @@
# 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

+ 4
- 0
src/Makefile.am View File

@@ -0,0 +1,4 @@
SUBDIRS=$(SRC_DIRS)

all-local:
$(MKDIR_P) $(top_builddir)/$(LIB_DIR)

Loading…
Cancel
Save