[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Incorrect "make fromasm" in 68k franz 38.91



Problem:
The "make fromasm" option for franz installation on a 68k does not work
as distributed.

Diagnosis:
The assembler is used to convert *.s files into *.o.  But the output of
as defaults to "a.out" and is not overridden, so no *.o files are
produced.

Fixes:
Specify the output file in the fromasm: option in lisplib/Makefile and
liszt/68k/Makefile.

In lisplib/Makefile, and (if make copylibrary has been done) in
/usr/lib/lisp/Makefile, change

<	for i in *.s; do echo $$i; ${LibDir}/as $$i; done
----
>	for i in *.s; do echo $$i; \
>	${LibDir}/as $$i -o `basename $$i .s`.o; done

In liszt/68k/Makefile, change

<	for i in *.s; do echo $$i; as $$i; done
----
>	for i in *.s; do echo $$i; \
>	as $$i -o `basename $$i .s`.o; done

Bugs:
1.  One version specifies ${LibDir}/as, the other uses vanilla as.  I
    didn't change it, but perhaps the liszt/68k/Makefile should also
    specify ${LibDir}/as.

2.  Isn't there a cleaner way of doing this?  Can a ".s.o:" rule be
    specified?

Dan