renamed update to update_ceg, fixed create_ofiles to make sure that the

.c files are detectably newer
This commit is contained in:
ceriel 1988-09-08 11:43:03 +00:00
parent 5c126dd968
commit 291b607f4e
4 changed files with 36 additions and 4 deletions

View file

@ -3,5 +3,5 @@ install_ceg
make_as
make_obj
make_own
update
update_ceg
Makefile

View file

@ -1,7 +1,7 @@
EM = ../../..
CEGLIB = $(EM)/lib/ceg
UTIL = $(CEGLIB)/util
UtilList = create_ofiles make_as make_obj make_own update
UtilList = create_ofiles make_as make_obj make_own update_ceg
all:
@ -9,7 +9,7 @@ install:
-mkdir $(CEGLIB)
-mkdir $(UTIL)
cp $(UtilList) $(UTIL)
cp install_ceg $(EM)/bin
cp install_ceg update_ceg $(EM)/bin
cmp:
for i in $(UtilList) ; do cmp $$i $(UTIL)/$$i ; done

View file

@ -1,9 +1,13 @@
list=
for i in *.c
do
b=`basename $i .c`
if test ! -f $b.o
then
>$b.o
touch $i
list="$list $i"
fi
done
: my SUN is too fast ...
sleep 2
touch $list

28
util/ceg/util/update_ceg Executable file
View file

@ -0,0 +1,28 @@
make -f ce_makefile ceg/ceg
for i
do
case $i in
ALL) make -f ce_makefile EM_instr ce.a;
exit 0;;
*.o) make -f ce_makefile ce/$i;
ar r ce.a $i;;
*..) ( cd ce; ../../../../lib/cpp ../EM_table| sed "/^#/d"| ../ceg/ceg -c $i);
F=`basename $i ..`;
U="_dnam"
V="_dlb"
make -f ce_makefile ce/$F.o ce/$F$U.o ce/"$F$V.o";
echo ar r ce.a ce/$F.o ce/"$F$U.o" ce/"$F$V.o";
ar r ce.a ce/$F.o ce/$F$U.o ce/"$F$U.o";;
*) ( cd ce; ../../../../lib/cpp ../EM_table| sed "/^#/d"| ../ceg/ceg -c $i);
make -f ce_makefile ce/$i.o;
echo ar r ce.a ce/$i.o;
ar r ce.a ce/$i.o;;
esac
done
echo ranlib ce.a
ranlib ce.a