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

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

[avr-gcc-list] Makefile Procyon AVRlib vs AVR-libc and ANSI C


From: Patrick Blanchard
Subject: [avr-gcc-list] Makefile Procyon AVRlib vs AVR-libc and ANSI C
Date: Wed, 05 Oct 2005 09:13:54 -0500

Hi,

I am working through pstang's avrlib programs on Debian testing and have
a few questions:

1. How do the dependencies in the AVRlib makefile fit into the general
scheme of compiling and linking? I cannot find reference to this
'dependency' issue as incorporated into the makefile.

2. I am attempting to merge pstang's AVRlib with the makefile from AVR-
libc. What and how is the best way to proceed in your opinion?

finally,

3. Why is AVR-libc not ANSI C as far as declarations? This is a
confusing issue. Declarations appear to be asm centric, and not ANSI C
centric.

Thanks to any and all replies,
Patrick

***
See below, snips from pstang's makefile and AVR-libc makefile with
dependencies pasted in.
***

---Procyon AVRlib makefile---

...snip

# Linker flags.
#  -Wl,...:     tell GCC to pass this to linker.
#    -Map:      create map file
#    --cref:    add cross reference to  map file
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref
LDFLAGS += $(EXTMEMOPTS)
LDFLAGS += $(PRINTF_LIB) $(SCANF_LIB) $(MATH_LIB)

###### imported dependency list for AVRLIB #####
###### dependecies, add any dependencies you need here
###################
#buffer.o       : buffer.c              buffer.h
#uart2.o        : uart2.c               uart2.h                global.h
#rprintf.o      : rprintf.c             rprintf.h
#a2d.o          : a2d.c                 a2d.h
#timer128.o     : timer128.c            timer128.h              global.h
#lcd.o          : lcd.c                 lcd.h                   global.h


...snip


---AVR LIBC makefile---


...snip

#compiler flags
        CPFLAGS = -g  -Os -Wall -Wstrict-prototypes -I$(AVRLIB) -Wa,-
ahlms=$(<:.c=.lst)

#linker flags
        LDFLAGS = -Wl,-Map=$(TRG).map,--cref


########### you should not need to change the following line
#############
include $(AVRLIB)/make/avrproj_make

###### dependecies, add any dependencies you need here
###################
buffer.o        : buffer.c              buffer.h
uart2.o         : uart2.c               uart2.h                 global.h
rprintf.o       : rprintf.c             rprintf.h
a2d.o           : a2d.c                 a2d.h
timer128.o      : timer128.c            timer128.h              global.h
lcd.o           : lcd.c                 lcd.h                   global.h
i2c.o           : i2c.c                 i2c.h                   global.h

...snip





reply via email to

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