diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 00000000000..7f8dfd09cd8 --- /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 |