OS X missing makefile

Go To Last Post
15 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Good day,
I have downloaded AVRA 1.3.0 from sourceforge. There is no bin folder, and the OS X makefile is empty. How can I create an OS X executable?
Thanks,
Bob

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You might want to have a look at the Atmel Toolchains.

Greg Muth

Portland, OR, US

Xplained/Pro/Mini Boards mostly

 

Make Xmega Great Again!

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

CC=gcc
ARCH=-arch i386 -arch x86_64 -arch ppc
SOURCE=args.c \
        avra.c \
        coff.c \
        device.c \
        directiv.c \
        expr.c \
        file.c \
        macro.c \
        map.c \
        mnemonic.c \
        parser.c \
        stdextra.c

all:
    $(CC) $(ARCH) -o avra $(SOURCE)

This is what I found in the Makefile OS X. I was hoping to find an executable. I'm not sure how to use it. Any tips?

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Robert Dunn wrote:
How can I create an OS X executable?
AVRA is in Homebrew.

https://formulae.brew.sh/formula/avra

and Nix

https://nixos.org/nixos/packages.html#avra

https://nixos.org/nixpkgs/

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The makefile are BUILDING instructions. If you run "make" it should read that recipe, execute those compilation commands and finally produce an executable. But I'd take the earlier advice. Get avr-gcc for OSX then just learn to use avr-as as your assembler. Either that or run Windows and install AS7 which I know is what a number of other Mac users on Freaks do.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@Robert Dunn wrote:

 I was hoping to find an executable.

 

I don't know what you downloaded, but there is OSX and/or Darwin package with the following:

 

 

toolchain

Greg Muth

Portland, OR, US

Xplained/Pro/Mini Boards mostly

 

Make Xmega Great Again!

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Greg that isn't avra. avra was a clone of Atmel Asm2 written to be available on non-Windows systems. Your list above does have avr-as which is the GNU assembler for AVR.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@clawson wrote:

Greg that isn't avra.

Oh.  Never mind. 

Greg Muth

Portland, OR, US

Xplained/Pro/Mini Boards mostly

 

Make Xmega Great Again!

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Good day,
I have decided to abandon avra for several reasons which don't really need mentioning.
This is my first project, a tachometer for my lathe and milling machine. The learning curve is huge.
Should I start a new thread for help with that? I need to know where to get software in the public domain, and a little bit about how to use it. I have a Mac with Windows on it.
Would this sub forum be the place to post it?
Thanks,
Bob

Last Edited: Thu. Jun 21, 2018 - 02:38 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Should I start a new thread for help with that?

Yes please.

Would this sub forum be the place to post it?

Are you using an AVR or a different chip? I don't quite understand, you seem to be talking about an OS X executable.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I was first planning on an AT89S51, but I since have decided on an ATmega238.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You should be able to run AS7 under "wine"?? on your Mac, someone will tell us more on what to do.

 

Then you have a choice of Assembler, C or C++, don't know which one you prefer.

 

The best place for your questions/ thread then would be the megaAVR and tinyAVR forum.
 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
You should be able to run AS7 under "wine"?? on your Mac, ...
Wine 3 is still a no-go for Microsoft Visual Studio; Atmel Studio is similar.

Some (a few?) here have Atmel Studio in a VM.

Visual Studio is also in a VM for macOS.

 

https://appdb.winehq.org/objectManager.php?sClass=application&iId=892 (Visual Studio)

https://appdb.winehq.org/objectManager.php?sClass=application&iId=402 (AVR Studio / Atmel Studio)

https://developer.microsoft.com/en-us/windows/downloads/virtual-machines

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Robert Dunn wrote:
This is my first project, a tachometer for my lathe and milling machine. The learning curve is huge.

Then Arduino should be a good starting place, cheap standard hardware, and LOTS of example code and hardware shields to learn from and copy.

The Arduino uno with plugable shields will get you started, then move to Arduino nano to build your own compact tach.

 

 

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for all the help here. I have made a new thread on the megaAvr and tinyAvr forum (as suggested by js). See you all there!
Bob