avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Adding date/version information to project??


From: Galen Seitz
Subject: Re: [avr-gcc-list] Adding date/version information to project??
Date: Mon, 28 Nov 2005 21:23:46 -0800

Here's a snippet from my Makefile.  I think this is probably close to 
meeting your needs.  I probably lifted this from somewhere off the net
but I don't recall where.  For all I know, it came from this mailing
list.

galen


OBJS= ${ASRCS:$(S)=$(O)} ${SRCS:.c=$(O)}
EXTRA_OBJS = date.o

.PHONY: all clean distclean
all: $(PROG)$(HEX)

clean:
        rm -f $(OBJS) $(EXTRA_OBJS) *.lst *.map *.elf *.hex

distclean: clean
        rm -f .*.d

date.c: $(OBJS)
        echo const char build_date[] = \"`date +'%F %R'`\"\; > date.c





reply via email to

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