summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-03-26 15:19:11 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-03-26 15:19:11 +0000
commitde0ee3187c8fffb52327f9a5680a3eafea872276 (patch)
tree69ca2969c64ddd79910f0783639d4c7bd65df792 /src/Makefile
parenta70ad91209b08ebe7122ace6d6656b11d9b04542 (diff)
New Makefile system
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000000..7f8dfd09cd
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,34 @@
+# src/Makefile
+
+TOP = ..
+
+include $(TOP)/configs/current
+
+SUBDIRS = $(SRC_DIRS)
+
+
+default: $(LIB_DIR) subdirs
+
+
+subdirs:
+ @for dir in $(SUBDIRS) ; do \
+ if [ -d $$dir ] ; then \
+ pushd $$dir ; \
+ make ; \
+ popd ; \
+ fi \
+ done
+
+
+$(LIB_DIR):
+ -mkdir $(LIB_DIR)
+
+
+clean:
+ @for dir in $(SUBDIRS) ; do \
+ if [ -d $$dir ] ; then \
+ pushd $$dir ; \
+ make clean ; \
+ popd ; \
+ fi \
+ done