[Info-vax] xmkmf and make
GreyCloud
cumulus at mist.com
Fri Feb 4 18:27:15 EST 2011
Michael Kraemer wrote:
> GreyCloud schrieb:
>
>> Seems that the UNIX community has lost along the way the documentation
>> on how they wrote
>> the templates and definition files. Even wikipedia can't find the docs.
>
> Wikipedia is crap, at times, so if you don't find it there,
> it doesn't mean that it doesn't exist.
>
I have found that from time to time to be true.
> http://www.rahul.net/kenton/xsites.html
>
Bookmarked.
> has a collection of X related links,
> pointing e.g. to
>
> http://www.snake.net/software/imake-stuff/imake-faq.html
>
> maybe you find some useful info there.
>
I've already checked out their site.
Didn't find much there that would help.
>> It was a good concept, but nothing was passed on from the originator
>> it seems.
>
> It is a somewhat strange concept,
> but the Linux "community" has spoiled it
> and invented sth even worse: "configure".
> Apart from that, Imakefiles & Co are mostly handled like LaTeX sources
> and shell scripts:
> you never write them from scratch, but copy one that once has worked.
>
This imake file was written by Antonine Mione, author of CDE and Motif.
DEPLIBS = XmClientDepLibs
LOCAL_LIBRARIES = XmClientLibs
SRCS = abutton.c
OBJS = abutton.c
MSimpleProgramTarget(abutton)
DependTarget()
***************************************************
imake put MSimpleProgramTarget(abutton) inside the Makefile.
Make doesn't know what to do with that line so it issues a "end of line
found unexpectedly. Stop."
Which means it doesn't know what to do with the line.
So I suspect that there is a misconfigured template file or conf file.
The imake program never produces
the required compiler line to build a program.
My curiosity got peaked when I found in the Mac OSX directories that
contained X11 files and also the
xmkmf program. I downloaded the Motif 2 package for OS X and those work
fine if I just compile
cc -o prog prog.c -lXm -lXt -lX11. Then in reading to further
understand how Motif programs work
that Mione stated that all one needed to so was "xmkmf" and then make to
build the programs in
the book. Of course this never worked. So this further got my
curiosity peaked and I started to go
down the rabbit hole to find out what is going wrong.
--
"It is impossible to defeat an ignorant man in argument."
William G. McAdoo.
American Government official (1863-1941).
More information about the Info-vax
mailing list