1991-04-04 21:01:18 +02:00
|
|
|
#
|
1991-04-11 04:41:53 +02:00
|
|
|
# Makefile for directory with subdirs to build.
|
1991-04-04 21:01:18 +02:00
|
|
|
#
|
1991-04-13 09:40:41 +02:00
|
|
|
# Last Mod Sat Apr 13 00:40:04 PDT 1991, by rich@cygint.cygnus.com
|
1991-04-04 21:01:18 +02:00
|
|
|
#
|
|
|
|
|
1991-04-13 09:40:41 +02:00
|
|
|
# $Id$
|
|
|
|
|
1991-04-04 21:01:18 +02:00
|
|
|
srcdir = .
|
1991-04-13 04:12:45 +02:00
|
|
|
destdir = /usr/local
|
1991-04-04 21:01:18 +02:00
|
|
|
|
1991-04-13 04:12:45 +02:00
|
|
|
#CC = gcc -b$(target) # -B$(srcdir)/../gas/Host-$(host)/Target-$(target)/
|
|
|
|
#CFLAGS = -g -nostdinc -nostdlib -I- -I/usr/local/lib/gcc/$(target)/1.92/include -I$(srcdir) -I$(srcdir)/../include -I$(OSINCLUDE)
|
1991-04-04 21:01:18 +02:00
|
|
|
|
|
|
|
# These are roughly topologically sorted in order to make porting more
|
|
|
|
# streamlined.
|
|
|
|
|
|
|
|
SUBDIRS =
|
|
|
|
NONSUBDIRS =
|
|
|
|
SUBDIRS_INCLUDE = machine-dep
|
|
|
|
|
|
|
|
RANLIB = ranlib
|
1991-04-13 04:12:45 +02:00
|
|
|
AR = ar
|
|
|
|
AR_FLAGS = cqv
|
1991-04-04 21:01:18 +02:00
|
|
|
|
|
|
|
#### host and target specific makefile fragments come in here.
|
1991-04-13 04:12:45 +02:00
|
|
|
###
|
1991-04-04 21:01:18 +02:00
|
|
|
|
|
|
|
subdir_do: $(SUBDIRS) $(TARGETDIRS)
|
|
|
|
for i in $(SUBDIRS); \
|
|
|
|
do \
|
|
|
|
if (cd $(srcdir)/$$i`if [ -d $(srcdir)/$$i.$(target) ] ; \
|
1991-04-13 04:12:45 +02:00
|
|
|
then echo .$(target) ; fi`$(subdir); \
|
|
|
|
$(MAKE) \
|
|
|
|
"destdir=$(destdir)" \
|
1991-04-11 04:41:53 +02:00
|
|
|
"AR=$(AR)" \
|
1991-04-13 04:12:45 +02:00
|
|
|
"AR_FLAGS=$(AR_FLAGS)" \
|
1991-04-04 21:01:18 +02:00
|
|
|
"RANLIB=$(RANLIB)" $(DO)) ; \
|
|
|
|
then true ; \
|
|
|
|
else exit 1 ; \
|
|
|
|
fi ;\
|
|
|
|
done
|
|
|
|
|
1991-04-13 04:12:45 +02:00
|
|
|
all:
|
|
|
|
$(MAKE) subdir_do DO=all
|
1991-04-04 21:01:18 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
|
|
|
|
$(MAKE) subdir_do DO=clean
|
|
|
|
|
1991-04-13 09:40:41 +02:00
|
|
|
install: all
|
1991-04-13 04:12:45 +02:00
|
|
|
$(MAKE) subdir_do DO=install
|
1991-04-04 21:01:18 +02:00
|
|
|
|
|
|
|
# When installing include files, be sure that machine-dependent
|
|
|
|
# files override machine-independent files.
|
|
|
|
# Might be better to check for collisions? FIXME
|
|
|
|
install_crt:
|
|
|
|
$(MAKE) SUBDIRS=machine-dep DO=install_crt
|
|
|
|
|
|
|
|
install_gnulib:
|
|
|
|
$(MAKE) SUBDIRS=gnulib DO=install_gnulib
|
|
|
|
|
|
|
|
install_include:
|
|
|
|
$(MAKE) SUBDIRS=$(SUBDIRS_INCLUDE) DO=install_include
|
|
|
|
|
|
|
|
install_lib: libc.a
|
|
|
|
cp libc.a $(DESTDIR)/lib/libc.a
|
|
|
|
|
|
|
|
etags tags: TAGS
|
|
|
|
|
|
|
|
TAGS: FORCE
|
|
|
|
etags `$(MAKE) ls`
|
|
|
|
|
|
|
|
ls:
|
|
|
|
@echo Makefile
|
|
|
|
@for i in $(SUBDIRS); \
|
|
|
|
do \
|
|
|
|
(cd $$i; \
|
|
|
|
pwd=`pwd`; \
|
|
|
|
wd=`basename $$pwd`; \
|
|
|
|
for j in `$(MAKE) ls`; \
|
|
|
|
do \
|
|
|
|
echo $$wd/$$j; \
|
|
|
|
done) \
|
|
|
|
done
|
|
|
|
|
|
|
|
FORCE:
|
|
|
|
|
|
|
|
# with the gnu make, this is done automatically.
|
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
|
1991-04-11 04:41:53 +02:00
|
|
|
(cd $(srcdir) ; \
|
1991-04-13 09:40:41 +02:00
|
|
|
./configure +destdir=$(destdir) +norecurse \
|
|
|
|
`if [ "$(srcdir)" != "." ] ; then echo +f; fi` \
|
|
|
|
+host=$(host) $(target))
|
1991-04-04 21:01:18 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# $Log$
|
1991-04-13 09:40:41 +02:00
|
|
|
# Revision 1.5 1991/04/13 07:40:41 rich
|
|
|
|
# Fixed an ordering bug. Now everything is built, and then installed.
|
|
|
|
#
|
|
|
|
# Revision 1.4 1991/04/13 02:11:09 rich
|
1991-04-13 04:12:45 +02:00
|
|
|
# Config cut 3. We now almost install a29k.
|
|
|
|
#
|
|
|
|
# Revision 1.3 1991/04/11 02:41:53 rich
|
1991-04-11 04:41:53 +02:00
|
|
|
# Cut 2 config. Subdirs.
|
1991-04-04 21:01:18 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
# end of Makefile.in
|