changed makefile, added homefromsubdir
This commit is contained in:
parent
bb85ecc4f0
commit
4001fbb580
15
mach/vax4/libcc.ansi/homefromsubdir
Executable file
15
mach/vax4/libcc.ansi/homefromsubdir
Executable file
|
@ -0,0 +1,15 @@
|
|||
if [ $# = 1 ]
|
||||
then
|
||||
NAM=`expr $1 : '^\(\/.*\)'`
|
||||
if [ X$NAM != X ]
|
||||
then
|
||||
NAM=$1
|
||||
else
|
||||
NAM=../$1
|
||||
fi
|
||||
echo $NAM
|
||||
exit 0
|
||||
else
|
||||
echo PATH_ERROR
|
||||
exit 1
|
||||
fi
|
|
@ -7,14 +7,21 @@ SUB=
|
|||
LIBC="PREF=$(PREF)" "SUB=$(SUB)"
|
||||
OLIB=tail_$(PREF)$(SUB)
|
||||
|
||||
install: cplibc
|
||||
install: cplibc cphead
|
||||
|
||||
cplibc:
|
||||
cplibc: libsrc
|
||||
make -f $(MAKEFILE) $(LIBC) $(MACHDEF) "EMHOME=`homefromsubdir $(EMHOME)`" tailcp
|
||||
|
||||
cphead: head_$(PREF).e
|
||||
make -f $(MAKEFILE) $(LIBC) $(MACHDEF) "EMHOME=$(EMHOME)" headcp
|
||||
|
||||
head_$(PREF).e: libsrc
|
||||
|
||||
libsrc: $(EMHOME)/lang/cem/libcc.ansi/libsrc .
|
||||
cp $(EMHOME)/lang/cem/libcc.ansi/libsrc .
|
||||
tar xf libsrc
|
||||
make -f $(MAKEFILE) $(LIBC) $(MACHDEF) "EMHOME=../$(EMHOME)" tailcp
|
||||
|
||||
cmp: cmplibc
|
||||
cmp: cmplibc cmphead
|
||||
-../../compare $(OLIB)
|
||||
|
||||
cmplibc:
|
||||
|
@ -22,8 +29,11 @@ cmplibc:
|
|||
tar xf libsrc
|
||||
make -f $(MAKEFILE) $(LIBC) $(MACHDEF) "EMHOME=../$(EMHOME)" tail
|
||||
|
||||
cmphead: head_$(PREF).e
|
||||
make -f $(MAKEFILE) $(LIBC) $(MACHDEF) "EMHOME=../$(EMHOME)" head
|
||||
|
||||
clean:
|
||||
rm -rf `cat LIST` LIST OLIST MakeArch Makefile make.proto libsrc
|
||||
rm -rf `cat LIST` LIST OLIST MakeArch Makefile make.proto libsrc head_$(PREF).[e$(SUF)]
|
||||
|
||||
opr:
|
||||
make pr | opr
|
||||
|
|
Loading…
Reference in a new issue