[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Makefiles, $(AS) $(ASFLAGS) - simple-minded question

From: Dave N6NZ
Subject: [avr-gcc-list] Makefiles, $(AS) $(ASFLAGS) - simple-minded question
Date: Fri, 22 Feb 2008 23:16:32 -0800
User-agent: Thunderbird 1.5 (X11/20051201)

I'm working on a new generic Makefile for my projects, and am contemplating the most sensible way to define .S handling.

The first thought that popped to mind is:
(lots of unrelated stuff omitted)
AS = avr-as
ASFLAGS = -mmcu=$(MCU)
%o: %.S $(HEADERS)
        $(AS) $(ASFLAGS) -o $@ $<

(All untested code, as of yet, BTW....)

So, I starting wondering... does the avr-gcc driver pick up $(ASFLAGS) for .s files, so will my setting of ASFLAGS interact with avr-gcc?

Maybe it makes more sense for me to pick on a non-standard variable name?

Anything else silly about the above rules?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]