06 February 2021, 16:46 | #1 |
Registered User
Join Date: Jun 2020
Location: Scotland
Posts: 146
|
GNU make for M68K
Hi folks,
Just wondering what version of make people are generally running. I'd love to have my makefiles work under VBCC on both my Mac *and* my A1200 and so far I'm struggling. The Mac comes with GNU Make 3.81 from Xcode. The latest binary I can find on Aminet is 3.76 ( http://aminet.net/package/dev/c/make_bin ) which I was pretty excited about. In use though I find it's's not picking up my environment variables. make -p shows the variables are there, but they have empty values. Same makefile happily picks up the variables on the Mac. The source is available too ( https://github.com/LibreOffice/gnu-make-lo ), and though its much more recent than the aminet bin archive, it seems heavily tailored to SAS/C, which I don't have. So... 1/ Does anyone have a 68K binary of GNU Make they trust and rely on to use environment variables they can share ? 2/ If not, is there a place I can get SAS/C (happy to pay something to copyright holders) to try and get 3.76 building so I can debug my variable problem. 3/ If not, has anyone tried configuring the current GNU make (https://www.gnu.org/software/make/) to build with vbcc for 68K ? My yak shave has led me from working on an Amiga Smalltalk, to working on an AmigaGit to support that development, to figuring out how to get a working make in both places to support *that* development :-) Any suggestions appreciated. Alan p.s. make needs are not complicated - take some C and H files, an occasional lib, make a LoadSeg binary using VBCC. But the key for me right now is being able to feed in things like the NDK directory via an environment variable so I can work on Mac and A1200 as required. |
06 February 2021, 18:07 | #2 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,338
|
|
06 February 2021, 20:13 | #3 |
Registered User
Join Date: Jun 2020
Location: Scotland
Posts: 146
|
@idrougge Thanks!
|
07 February 2021, 12:23 | #4 |
Registered User
Join Date: Jun 2020
Location: Scotland
Posts: 146
|
Well I found the problem.
https://github.com/LibreOffice/gnu-m....c#L1351-L1356 All vars initialised empty and then something is supposed to happen in lookup_variable but doesnt seem to have any amiga specific code there at all. So I guess I'll maybe just rewrite the startup code to populate properly and take the slowdown :-) |
12 March 2021, 17:43 | #5 |
Registered User
Join Date: Mar 2020
Location: Boulder Creek / USA
Posts: 43
|
Most of the time when I’m using GNU stuff for 68k directly I’ll be using the ADE.zip install found on Aminet. That uses GCC 2.95.3. There were some GCC 3.x builds but the only place I’ve found that to use is with CubicIDE (pay for product).
If you need SASC ask for it and it’ll appear in the Zone. Failing that PM me. The problem with SASC, for you, is that it uses its own version of make that is likely not 100% compatible with the GNU version. Sent from my iPhone using Tapatalk |
14 April 2021, 01:11 | #6 |
Registered User
Join Date: Jun 2020
Location: Scotland
Posts: 146
|
I gave up, for the most part, and decided just to stick with cross compiling from the Mac :-)
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
trying to make m68k-amigaos-gdb on windows | jotd | Coders. C/C++ | 12 | 30 December 2020 06:09 |
gnu objectdump as disassembler | bebbo | Coders. General | 0 | 14 April 2019 17:07 |
GNU GAS Immediate data misbehaving | MintyTheCat | Coders. Asm / Hardware | 14 | 03 January 2016 16:01 |
Preparing a CF from GNU/Linux | iddqd | support.FS-UAE | 1 | 21 June 2015 10:09 |
Wow... They still make the ENTIRE m68k lineup | Madcrow | support.Hardware | 3 | 03 June 2008 18:17 |
|
|