Re[4]: [cc65] Compile problem

Date view Thread view Subject view

From: groepaz (groepaz_at_gmx.net)
Date: 2001-12-10 20:03:48


Hello Adam,

Monday, December 10, 2001, 7:11:16 PM, you wrote:

AD> Being able to type "make" in an arbitrary directory and hope to rebuild the
AD> right files for the right just doesn't work. If you use GNU make, you can 
AD> specify a working directory, however, with "gmake -C /adam/project". Perhaps 
AD> this is the closest thing to your needs?

no, using -C isnt exactly the solution either (it would require
entering another path specific to your local machine)

AD> I think that the behavour that ca65/cc65 exhibits is the more common
AD> behaviour. I haven't come across any compilers that lets you specify "include 
AD> file relative to where this file lives" (but then I haven't come across very 
AD> many compilers).  The common behaviour is that #include files are searched 
AD> relative to all -I paths and some default paths (., /usr/include and friends 
AD> as well as a few others).

eh? just try this... create 2 .h files in the same directory, let one
of them include the other using its filename ONLY. now create a .c
file somewhere else in your filesystem and include the previous .h
file (the one that includes the other that is ;=)) using a relative
path.

try compiling the latter file - this works for me on a dozen of
compilers (well all i have currently installed, except turbo-c (and
cc65 obviously) ;D)

however, i was referring to the ca65 assembler alone anyway (dunno if
that makes any difference though)

AD> CFLAGS = -I../src/include -I../src/arch/cc65/include -I../src/include/ipv4

AD> This way, all includes are kept in diffrent directories and the paths are 
AD> relative to the makefile and not to the root of the filesystem.

this makes another assumption though...that is cc65 beeing installed
at a specific location. mmmmh

however, trying relative paths in the -I line might be a working
solution for what i want to do... didnt think of that :o)

-- 
Best regards,
 groepaz                            mailto:groepaz_at_gmx.net


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:44 CET