home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Education Sampler 1992 [NeXTSTEP]
/
Education_1992_Sampler.iso
/
NeXT
/
GnuSource
/
cc-61.0.1
/
cc
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-08-05
|
2KB
|
94 lines
CFLAGS = -g -O $(RC_CFLAGS)
BINDIR = /bin
LIBDIR = /lib
LOCALLIBDIR = /usr/local/lib
OBJROOT = .
SYMROOT =
all: m68k_all
m68k_all: $(OBJROOT)/m68k $(OBJROOT)/m68k/Makefile
cd $(OBJROOT)/m68k; \
$(MAKE) all.cross CFLAGS="$(CFLAGS)";
$(OBJROOT)/m68k/Makefile: Makefile.in
if [ $(OBJROOT) = . ]; \
then \
cd m68k; \
../configure next; \
else \
PWD=`pwd`; \
cd $(OBJROOT)/m68k; \
$$PWD/configure +srcdir=$$PWD next; \
fi
$(OBJROOT)/m68k:
mkdirs $@
extract: m68k_extract
m68k_extract: m68k_all
if [ $(SYMROOT) ]; \
then \
mkdirs $(SYMROOT)/m68k; \
cp -p $(OBJROOT)/m68k/gcc $(SYMROOT)/m68k/gcc; \
cp -p $(OBJROOT)/m68k/specs $(SYMROOT)/m68k/specs; \
cp -p $(OBJROOT)/m68k/cpp $(SYMROOT)/m68k/cpp; \
cp -p $(OBJROOT)/m68k/cc1 $(SYMROOT)/m68k/cc1; \
cp -p $(OBJROOT)/m68k/cc1plus $(SYMROOT)/m68k/cc1plus; \
cp -p $(OBJROOT)/m68k/cc1obj $(SYMROOT)/m68k/cc1obj; \
fi
install: installhdrs common_install m68k_install
installhdrs:
common_install: m68k_extract $(DSTROOT)$(BINDIR)
install -s -m 555 $(OBJROOT)/m68k/gcc $(DSTROOT)$(BINDIR)/cc
m68k_install: m68k_extract $(DSTROOT)$(LIBDIR)/m68k
install -m 555 $(OBJROOT)/m68k/specs $(DSTROOT)$(LIBDIR)/m68k/specs
install -s -m 555 $(OBJROOT)/m68k/cpp $(DSTROOT)$(LIBDIR)/m68k/cpp
install -s -m 555 $(OBJROOT)/m68k/cpp $(DSTROOT)$(LIBDIR)/cpp
install -s -m 555 $(OBJROOT)/m68k/cc1obj $(DSTROOT)$(LIBDIR)/m68k/cc1obj
$(DSTROOT)$(BINDIR) $(DSTROOT)$(LIBDIR)/m68k:
mkdirs $@
installsrc installGNUsrc: $(SRCROOT)
tar cf - * | (cd $(SRCROOT); tar xfp -)
$(SRCROOT):
mkdirs $@
m68k_clean:
-rm -rf $(OBJROOT)/m68k
profile_clean:
-rm -rf $(OBJROOT)/profile
clean: m68k_clean profile_clean
profile: profile_cmd
profile_cmd: $(OBJROOT)/profile $(OBJROOT)/profile/Makefile
cd $(OBJROOT)/profile; \
$(MAKE) all.cross CFLAGS="$(CFLAGS) -pg";
$(OBJROOT)/profile/Makefile: Makefile.in
if [ $(OBJROOT) = . ]; \
then \
cd profile; \
../configure next; \
else \
PWD=`pwd`; \
cd $(OBJROOT)/profile; \
$$PWD/configure +srcdir=$$PWD next; \
fi
$(OBJROOT)/profile:
mkdirs $@