Section One BBS

Welcome, Guest.


Subject: The MakeNl makefile for Amiga -- yes, it still exists! Date: Sun Nov 30 2014 11:12 pm
From: andrew clarke To: Björn Felten

30 Nov 14 11:38, you wrote to me:

 ac>> At first glance I don't see any Amiga-specific code in there
 ac>> though.

 BF>    I have this in osamiga.h:

Ah I remember now. The osxxx.h/osxxx.c stuff became unmaintainable and was all
merged into two files - os.h & os.c - but the Amiga code got left out because I 
had no way to build/test it.

Earlier this evening I had a bit of a play with the UAE Amiga emulator and had
a crash course in how to use AmigaShell. I've only used a real Amiga a couple
of times 20+ years ago.

I managed to get Aztec C running in the emulator but couldn't find anywhere to
download SASC let alone install it.

Anyway, this section needs to be put into os.h:

 BF> #include <sys/types.h>
 BF> #include <stdlib.h>
 BF> #include <sys/dir.h>

 BF> #define STR_DIRSEPARATOR "/"
 BF> #define UNREFERENCED(x) x=x;

 BF> #define MYMAXFILE  64
 BF> #define MYMAXDIR   1024
 BF> #define MYMAXPATH  1088
 BF> #define MYMAXEXT   12
 BF> #define MYMAXDRIVE 3

 BF> #define filecmp    strcmp
 BF> #define strcasecmp stricmp
 BF> #define filenodir(x) (strchr(x,'/') == NULL)

And the contents of the osami*.c files appended to os.c:

 BF> /* Needed definitions */
 BF> #define OSFND "osamifnd.c"
 BF> #define OSFUL "osamiful.c"

 BF> /* Overrides over defaults */

 BF> #undef OSDSL
 BF> #define OSDSL "osamidsl.c"
 BF> #undef OSRMS
 BF> #define OSRMS "osamirms.c"

... with the correct #ifdef compiler/platform guards.

I don't know what SASC uses as a compiler #define. __SASC__ maybe?

You'll also need to #define CC_NAME and OS_NAME in the right places.

--- GoldED+/BSD 1.1.5-b20130910
 * Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)

Previous Message       Next Message
In Reply To: The MakeNl makefile for Amiga -- yes, it still exists! (Bj”rn Felten)
Replies: The MakeNl makefile for Amiga -- yes, it still exists! (Bj”rn Felten)The MakeNl makefile for Amiga -- yes, it still exists! (andrew clarke)