z88dk forums

z80 Development Kit

You are not logged in.

#1 2012-04-16 22:11:04

wintermute
Member
From: Cyberspace
Registered: 2011-02-24
Posts: 14

Ease compilation of the SP1 library

Hi,

Could this be added to /build.sh script?:

Code:

make -e
make -C `pwd`/libsrc
# make -C `pwd`/libsrc sp1-spectrum
make -C `pwd`/libsrc install

I mean: the line commented to compile SP1 library.

It won't affect the common build.sh usage, but it can ease people who want to compile and install de SP1 library (by just uncommenting the line and running sh build.sh) along the whole z88dk compiler.

Thanks again mates!

Offline

 

#2 2012-04-17 04:27:20

alvin
Administrator
Registered: 2007-07-16
Posts: 338

Re: Ease compilation of the SP1 library

wintermute wrote:

Hi,

Could this be added to /build.sh script?:

Code:

make -e
make -C `pwd`/libsrc
# make -C `pwd`/libsrc sp1-spectrum
make -C `pwd`/libsrc install

I mean: the line commented to compile SP1 library.

It won't affect the common build.sh usage, but it can ease people who want to compile and install de SP1 library (by just uncommenting the line and running sh build.sh) along the whole z88dk compiler.

Thanks again mates!

sp1 is available for multiple target machines but only one version can exist at a time and that is why it is not included as part of the default make.

But there is a make rule to build it in there.  Just change directory into libsrc and type 'make sp1' for instructions.

Offline

 

#3 2012-04-17 12:47:57

wintermute
Member
From: Cyberspace
Registered: 2011-02-24
Posts: 14

Re: Ease compilation of the SP1 library

Hi Alvin,

You're right. smile My request is more a suggestion. By just uncommenting that line you can get everythin compiled in one go, suppossing Spectrum is the main target.

But yes, as SP1 supports more than one target, maybe is not a good idea to polute the main build.sh with that too specific line.

As my main target is the Spectrum, I found that adding that line make compilation more confortable for me.

Nevertheless, thanks again and sorry for the incoveniences. wink

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson