plars | 865695b | 2001-08-27 22:15:12 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) International Business Machines Corp., 2001 |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or modify |
| 5 | # it under the terms of the GNU General Public License as published by |
| 6 | # the Free Software Foundation; either version 2 of the License, or |
| 7 | # (at your option) any later version. |
| 8 | # |
| 9 | # This program is distributed in the hope that it will be useful, |
| 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See |
| 12 | # the GNU General Public License for more details. |
| 13 | # |
| 14 | # You should have received a copy of the GNU General Public License |
| 15 | # along with this program; if not, write to the Free Software |
vapier | 5366cb0 | 2006-08-21 06:58:33 +0000 | [diff] [blame] | 16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
plars | 865695b | 2001-08-27 22:15:12 +0000 | [diff] [blame] | 17 | # |
| 18 | |
plars | 865695b | 2001-08-27 22:15:12 +0000 | [diff] [blame] | 19 | DEBUG_CFLAGS=-O |
| 20 | DEBUG_LDFLAGS=-s |
robbiew | 2c23568 | 2002-11-18 20:37:04 +0000 | [diff] [blame] | 21 | CFLAGS+=-I../../include -g -Wall |
vapier | 5366cb0 | 2006-08-21 06:58:33 +0000 | [diff] [blame] | 22 | LDLIBS+= |
mridge | 58a4e0e | 2004-03-05 21:40:51 +0000 | [diff] [blame] | 23 | EXCLUDE_DIR=epoll |
vapier | 5366cb0 | 2006-08-21 06:58:33 +0000 | [diff] [blame] | 24 | |
mridge | 58a4e0e | 2004-03-05 21:40:51 +0000 | [diff] [blame] | 25 | # |
| 26 | # Commented this out since there are directories here we don't want built by default |
| 27 | # |
subrata_modak | c4ef480 | 2008-10-23 10:38:34 +0000 | [diff] [blame] | 28 | SUBDIR = `ls */Makefile | sed "s/Makefile//g"` |
vapier | 5366cb0 | 2006-08-21 06:58:33 +0000 | [diff] [blame] | 29 | UCLINUX_SUBDIR = `ls */Makefile | sed "s/Makefile//g" | grep -vE "^fork|epoll|capget|capset|chmod|chown|llseek|nftw|clone|profil|getcontext"` |
plars | 865695b | 2001-08-27 22:15:12 +0000 | [diff] [blame] | 30 | |
vapier | 5366cb0 | 2006-08-21 06:58:33 +0000 | [diff] [blame] | 31 | all: |
subrata_modak | 9a0748e | 2008-05-20 10:15:07 +0000 | [diff] [blame] | 32 | @set -e; for i in $(SUBDIR); do \ |
robbiew | 5475776 | 2003-03-04 16:13:34 +0000 | [diff] [blame] | 33 | $(MAKE) -C $$i all; \ |
plars | 865695b | 2001-08-27 22:15:12 +0000 | [diff] [blame] | 34 | done |
| 35 | |
| 36 | install: |
subrata_modak | 9a0748e | 2008-05-20 10:15:07 +0000 | [diff] [blame] | 37 | @set -e; for i in $(SUBDIR); do \ |
robbiew | 5475776 | 2003-03-04 16:13:34 +0000 | [diff] [blame] | 38 | $(MAKE) -C $$i install; \ |
plars | 865695b | 2001-08-27 22:15:12 +0000 | [diff] [blame] | 39 | done |
| 40 | |
robbiew | d34d581 | 2005-07-11 22:28:09 +0000 | [diff] [blame] | 41 | uclinux: |
subrata_modak | 9a0748e | 2008-05-20 10:15:07 +0000 | [diff] [blame] | 42 | @set -e; for i in $(UCLINUX_SUBDIR); do \ |
robbiew | d34d581 | 2005-07-11 22:28:09 +0000 | [diff] [blame] | 43 | $(MAKE) -C $$i UCLINUX=1 all; \ |
| 44 | done |
| 45 | |
| 46 | uclinux_install: |
subrata_modak | 9a0748e | 2008-05-20 10:15:07 +0000 | [diff] [blame] | 47 | @set -e; for i in $(UCLINUX_SUBDIR); do \ |
robbiew | d34d581 | 2005-07-11 22:28:09 +0000 | [diff] [blame] | 48 | $(MAKE) -C $$i UCLINUX=1 all; \ |
| 49 | done |
| 50 | |
plars | 865695b | 2001-08-27 22:15:12 +0000 | [diff] [blame] | 51 | clean: |
subrata_modak | 9a0748e | 2008-05-20 10:15:07 +0000 | [diff] [blame] | 52 | @set -e; for i in $(SUBDIR); do \ |
robbiew | 5475776 | 2003-03-04 16:13:34 +0000 | [diff] [blame] | 53 | $(MAKE) -C $$i clean; \ |
plars | 865695b | 2001-08-27 22:15:12 +0000 | [diff] [blame] | 54 | done |
| 55 | |