gnupic: Debian templates for dsPIC build toolchain 2.01


Previous by date: 22 Feb 2006 22:47:53 +0000 Re: [gnupic] Debian templates -- Makefile, Jeff
Next by date: 22 Feb 2006 22:47:53 +0000 Re: [gnupic] RE: Debian templates for dsPIC build toolchain 2.01, Chen Xiao Fan
Previous in thread: 22 Feb 2006 22:47:53 +0000 Debian templates for dsPIC build toolchain 2.01, John Steele Scott
Next in thread: 22 Feb 2006 22:47:53 +0000 Re: Debian templates for dsPIC build toolchain 2.01, John Steele Scott

Subject: RE: Debian templates for dsPIC build toolchain 2.01
From: John Steele Scott ####@####.####
Date: 22 Feb 2006 22:47:53 +0000
Message-Id: <dtiplu$k2n$1@sea.gmane.org>

Chen Xiao Fan wrote:
> Thanks. The make rule file is quite nice. Slight modification will make
> it work with pic30-coff as well (just change elf to cof where applicable).
> It is also working under Windows with minor modifications...
> 
> Just one question, if the code needs to link to other libraries
> (eg: the example code CE019_PIC needs dsp library libdsp-elf.a or
> libdsp-coff.a), what should I do in the Makefile without changing
> the rule file pic30-rules.mk? Sorry I am not so good at writing
> Makefile.

Using my example from before, if you wanted to link in libdsp-coff.a, you
just need to add it to the LDLIBS variable, _after_ the rules file is
included. So the makefile becomes:

DSPIC := 30f3013
PROJECT := blinkenlight
OBJS := main.o foo.o bar.o
include /usr/share/pic30-support/pic30-rules.mk
LDLIBS += -ldsp-coff

cheers,

John


Previous by date: 22 Feb 2006 22:47:53 +0000 Re: [gnupic] Debian templates -- Makefile, Jeff
Next by date: 22 Feb 2006 22:47:53 +0000 Re: [gnupic] RE: Debian templates for dsPIC build toolchain 2.01, Chen Xiao Fan
Previous in thread: 22 Feb 2006 22:47:53 +0000 Debian templates for dsPIC build toolchain 2.01, John Steele Scott
Next in thread: 22 Feb 2006 22:47:53 +0000 Re: Debian templates for dsPIC build toolchain 2.01, John Steele Scott


Powered by ezmlm-browse 0.20.