2 # Makefile for utils/amd-udi/mondfe and montip tools
3 # Copyright (C) 1993 Free Software Foundation
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 # Written by Jeffrey Wheat (cassidy@cygnus.com)
22 #### Start of system configuration section. ####
30 INSTALL_DATA = @INSTALL_DATA@
31 INSTALL_PROGRAM = @INSTALL_PROGRAM@
49 exec_prefix = $(prefix)
51 bindir = $(exec_prefix)/bin
52 libdir = $(exec_prefix)/lib
54 mandir = $(prefix)/man
55 man1dir = $(mandir)/man1
56 man2dir = $(mandir)/man2
57 man3dir = $(mandir)/man3
58 man4dir = $(mandir)/man4
59 man5dir = $(mandir)/man5
60 man6dir = $(mandir)/man6
61 man7dir = $(mandir)/man7
62 man8dir = $(mandir)/man8
67 INSTALL_DATA = $(INSTALL)
68 INSTALL_PROGRAM = $(INSTALL)
70 #### End of system configuration section. ####
77 SUBDIRS = udi mondfe montip
79 # These are roughly topologically sorted in order to make porting more
86 "AR_FLAGS=$(AR_FLAGS)" \
88 "LDFLAGS=$(LDFLAGS)" \
92 "CROSS_CFLAGS=$(CROSS_CFLAGS)" \
93 "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
94 "INCLUDES=$(INCLUDES)"
97 @for dir in ${SUBDIRS}; do \
98 if [ -d $$dir ]; then \
99 (rootme=`pwd`/ ; export rootme ; \
100 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
101 cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
106 @for dir in ${SUBDIRS}; do \
108 if [ -d $$dir ]; then \
109 (cd $$dir; $(MAKE) install); \
114 -rm -f *~ core *.o a.out
115 @for dir in ${SUBDIRS}; do \
117 if [ -d $$dir ]; then \
118 (cd $$dir; $(MAKE) $@); \
122 distclean maintainer-clean realclean: clean
123 @for dir in ${SUBDIRS}; do \
125 (cd $$dir; $(MAKE) $@); \
128 -rm -f Makefile config.status
131 $(CC) -c $(CFLAGS) $(INCLUDE) $(CPPFLAGS) $(DEFS) $<
139 Makefile: Makefile.in configure.in
140 $(SHELL) ./config.status
142 configure: configure.in
148 # Prevent GNU make v3 from overflowing arg limit on SysV.