OSDN Git Service

* ps.cc (prog_name): New global variable.
[pf3gnuchains/pf3gnuchains4x.git] / utils / amd-udi / Makefile.in
1 #
2 # Makefile for utils/amd-udi/mondfe and montip tools
3 #   Copyright (C) 1993 Free Software Foundation
4 #
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.
9 #
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.
14 #
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. 
18 #
19 # Written by Jeffrey Wheat (cassidy@cygnus.com)
20 #
21
22 #### Start of system configuration section. ####
23
24 srcdir = @srcdir@
25 VPATH = @srcdir@
26
27 CC = @CC@
28
29 INSTALL = @INSTALL@
30 INSTALL_DATA = @INSTALL_DATA@
31 INSTALL_PROGRAM = @INSTALL_PROGRAM@
32
33 DEFS = @DEFS@
34 LIBS = @LIBS@
35 RANLIB = @RANLIB@
36
37 AR = ar
38 AR_FLAGS = rv
39
40 CFLAGS = -g
41
42 LD = ld
43 LDFLAGS = -g
44
45 MV = mv
46 RM = rm
47
48 prefix = /usr/local
49 exec_prefix = $(prefix)
50
51 bindir = $(exec_prefix)/bin
52 libdir = $(exec_prefix)/lib
53
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
63
64 SHELL = /bin/sh
65
66 INSTALL = install -c
67 INSTALL_DATA = $(INSTALL)
68 INSTALL_PROGRAM = $(INSTALL)
69
70 #### End of system configuration section. ####
71
72 SHELL = /bin/sh
73
74 MAKEINFO = makeinfo
75 TEXI2DVI = texi2dvi
76
77 SUBDIRS = udi mondfe montip
78
79 # These are roughly topologically sorted in order to make porting more
80 # streamlined.
81 FLAGS_TO_PASS = \
82         "CC=$(CC)" \
83         "CFLAGS=$(CFLAGS)" \
84         "AR=$(AR)" \
85         "RANLIB=$(RANLIB)" \
86         "AR_FLAGS=$(AR_FLAGS)" \
87         "LD=$(LD)" \
88         "LDFLAGS=$(LDFLAGS)" \
89         "AS=$(AS)" \
90         "MV=$(MV)" \
91         "RM=$(RM)" \
92         "CROSS_CFLAGS=$(CROSS_CFLAGS)" \
93         "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
94         "INCLUDES=$(INCLUDES)"
95
96 all:
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)); \
102             fi; \
103         done
104
105 install:
106         @for dir in ${SUBDIRS}; do \
107             echo "$$dir:"; \
108             if [ -d $$dir ]; then \
109                 (cd $$dir; $(MAKE) install); \
110                 fi; \
111             done
112
113 clean mostlyclean:
114         -rm -f *~ core *.o a.out 
115         @for dir in ${SUBDIRS}; do \
116             echo "$$dir:"; \
117             if [ -d $$dir ]; then \
118                 (cd $$dir; $(MAKE) $@); \
119                 fi; \
120             done
121
122 distclean maintainer-clean realclean: clean
123         @for dir in ${SUBDIRS}; do \
124             echo "$$dir:"; \
125             (cd $$dir; $(MAKE) $@); \
126         done
127         -rm -f *~ core
128         -rm -f Makefile config.status 
129
130 .c.o:
131         $(CC) -c $(CFLAGS) $(INCLUDE) $(CPPFLAGS) $(DEFS) $<
132
133 install-info: info
134
135 installcheck:
136
137 check: 
138
139 Makefile: Makefile.in configure.in
140         $(SHELL) ./config.status
141
142 configure: configure.in
143         autoconf
144
145 TAGS: $(SRCS)
146         etags $(SRCS)
147
148 # Prevent GNU make v3 from overflowing arg limit on SysV.
149 .NOEXPORT: