Re: [cc65] building under cygwin

From: Greg King <gngking1erols.com>
Date: 2007-06-15 13:06:11
From: MagerValp; on Tuesday, June 12, 2007; at 12:51 PM -0400
>
> I'm building the latest snapshot under Cygwin, and some stuff doesn't
> work properly:
>
>  * mkdir generates a lot of warnings from the previous installation.
>    Adding -p gets rid of them.

That option is a late addition to mkdir.  Some operating systems don't
accept it.  So, I put it in only the first command of the "install-dirs"
rule.  (Those system directories usually exist; so, it doesn't matter if
that line fails.)

  I suppose that I could write separate lines for each directory, and add a
shell test that won't run mkdir if the directory already exists.

>
>  * prefix defaults to /usr. Most users will want it to default to
>    /usr/local.

That is a problem with a tradition:  It says that we should install into
"/usr/local/" when we build a package; and, we should install into "/usr/"
(or "/opt/") when the package already was built by someone else.

Uz provides three flavors of the cc65 package:
1. RPM  (RedHat Package Manager)
2. binary
3. source
He makes the pre-built RPM package install itself into "/usr/".

Whichever flavor that you choose, cc65 should install in the same way (so
that you can switch between them easily).  Therefore, I made the top-level
makefile do the same thing that "packages/rpm/redhat/cc65.spec" does.

>
>  * make/install-sh dies with
>
>    for f in ar65 ca65 cc65 cl65 co65 da65 ld65 od65 grc; \
>          do make/install-sh -c -m 755 -s src/$f/$f /usr/local/bin ||
>          exit 1; \
>          done
>    strip: /usr/local/bin/#inst.5468#: No such file or directory
>    make: *** [install-bins] Error 1
>
>    as it doesn't take into account the .exe suffix. It works if you
>    use the standard /usr/bin/install.

I had fixed that bug months ago, but I forgot to send the patch to Uz!

The install program is like "mkdir -p", some operating systems don't have
it.  At the present time, I have taken the lazy programmer's way out:  I
force the user to deal with that problem.  In the makefile, at line 36, I
put:

# BSD-like install-script/-program
INSTALL    = make/install-sh
#INSTALL      = install

You are supposed to comment the "make/install-sh" line, and uncomment the
"install" line if your system has that program.
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Jun 15 13:12:05 2007

This archive was generated by hypermail 2.1.8 : 2007-06-15 13:12:08 CEST