home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.2 (Developer)
/
NS_dev_3.2.iso
/
NextDeveloper
/
Source
/
GNU
/
debug
/
Makefile
next >
Wrap
Makefile
|
1993-08-20
|
1KB
|
61 lines
SUBDIRS = Common gdb
RC_ARCHS = `/usr/bin/arch`
RC_CFLAGS = -arch `/usr/bin/arch`
all clean install:
if [ $(RC_JASPER) ]; \
then \
for i in $(SUBDIRS) ; do \
echo =========== make $@ for $$i =============; \
(cd $$i; $(MAKE) $@ \
RC_CFLAGS="$(RC_CFLAGS)" \
RC_ARCHS="$(RC_ARCHS)" \
DSTROOT=$$DSTROOT \
OBJROOT=$(OBJROOT)/$$i \
SYMROOT=$$SYMROOT); \
done \
else \
for i in $(SUBDIRS) ; do \
echo =========== make $@ for $$i =============; \
(cd $$i; $(MAKE) $@ \
RC_CFLAGS="$(RC_CFLAGS)" \
RC_ARCHS="$(RC_ARCHS)"); \
done \
fi
installsrc: SRCROOT
rm -rf $(SRCROOT)
mkdirs $(SRCROOT)
cp Makefile SGS_ENV $(SRCROOT)
for i in `echo $(SUBDIRS)`; \
do \
echo =========== make $@ for $$i =============; \
(cd $$i; $(MAKE) SRCROOT=$$SRCROOT/$$i $@); \
done
installGNUsrc: SRCROOT
rm -rf $(SRCROOT)
mkdirs $(SRCROOT)
$(CP) Makefile.gnu $(SRCROOT)/Makefile
$(CP) SGS_ENV $(SRCROOT)
for i in `echo $(SUBDIRS)`; \
do \
echo =========== make $@ for $$i =============; \
(cd $$i; $(MAKE) SRCROOT=$$SRCROOT/$$i $@); \
done
installhdrs:
$(DSTROOT):
mkdirs $@
SRCROOT:
@if [ -n "${$@}" ]; \
then \
exit 0; \
else \
echo Must define $@; \
exit 1; \
fi