ts-7000
[Top] [All Lists]

[ts-7000] [ts7800] Simple makefile for cross compilation???

To:
Subject: [ts-7000] [ts7800] Simple makefile for cross compilation???
From: "cedric_roussel" <>
Date: Thu, 09 Apr 2009 14:25:16 -0000
Hello,

I'm trying to set up a tiny makefile to cross compile through ubuntu hardy.
My problem is that I can't make it locate the required libs (here libm) to make 
it statically linked. I have no problems to make it dynamically linked..
Is there someone who had success making the same thing?

Thank you very much
Cedric.

---------------------------------------
TARGET = logSplitter
INST_PATH = /usr/local/bin/

#path of the toolchain
CCROOT=/usr/local/src/mv-kernel/arm-none-linux-gnueabi/

LIBDIR=$(CCROOT)arm-none-linux-gnueabi/sys-root/usr/lib/
CC=$(CCROOT)bin/arm-none-linux-gnueabi-gcc 
CCFLAGS = -L$(LIBDIR) -lm -Wall -O2 --save-temps -static -static-libgcc


all: $(TARGET)

$(TARGET): $(TARGET).c
        $(CC) $(CCFLAGS) $(TARGET).c -o $(TARGET)


install: $(TARGET)
        rm -f $(INST_PATH)$(TARGET)
        cp $(TARGET) $(INST_PATH)

cleanall: clean
        rm -f $(TARGET)

clean:
        rm -f *.o *.i *.s
---------------------------------------



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU