English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. C/C++ (https://eab.abime.net/forumdisplay.php?f=118)
-   -   GNU make for M68K (https://eab.abime.net/showthread.php?t=105699)

alancfrancis 06 February 2021 16:46

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.

idrougge 06 February 2021 18:07

http://eab.abime.net/showpost.php?p=798692&postcount=31

alancfrancis 06 February 2021 20:13

@idrougge Thanks!

alancfrancis 07 February 2021 12:23

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 :-)

nyteshade 12 March 2021 17: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

alancfrancis 14 April 2021 01:11

I gave up, for the most part, and decided just to stick with cross compiling from the Mac :-)


All times are GMT +2. The time now is 20:42.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04141 seconds with 11 queries