On Friday 23 June 2006 09:05, Adam Dunkels wrote: (crossposted to cc65 list, note for UZ: i volunteered to handle the 2.x port of contiki for the c64, currently trying to just make it compile with cc65) > The Makefile.include currently contains a lot of gcc-isms since it has > only been used with gcc-style compilers. It would be great, however, if > it could be entirely generic and work for all C compilers and if any has > ideas on how to make things more generic, feel free to share them :-) one problem i have found is that it is assumed that the compiler understands certain options, such as -c (compile but do not link). not much of a problem with cc65 (because cl65 _does_ understand it, and cl65 pretty much resembles what the "gcc" program does) but it'll be a problem with lesser compilers (such as sdcc *shudder*). [however, maybe some custom rules in the arch specific makefile can overide this behaviour, didnt try because it doesnt bother me right now :=P] i managed to go a bit further by tweaking the c64 specific files a bit, however this is stopping me from going further: groepaz@gurke ~/contiki/contiki-2.x/examples/webserver $ make TARGET=c64 cl65 -I. -I../../cpu/6502 -I../../platform/c64/. -I../../platform/c64/apps -I../../platform/c64/ctk -I../../platform/c64/lib -I../../platform/c64/loader -I../../platform/c64/net -I../../apps/webserver -I../../core -DWITH_PETSCII -t c64 --add-source --create-dep -DCTK_HIRES -DWITH_UIP -DWITH_LOADER_ARCH -DWITH_ETHERNET -c ../../core/net/dhcpc.c -o obj_c64/dhcpc.o ../../core/sys/lc.h(123): Error: `"' or `<' expected ../../core/sys/pt.h(55): Error: Type expected ../../core/sys/pt.h(55): Error: `;' expected ../../core/sys/pt.h(55): Error: Type expected ../../core/net/dhcpc.c(254): Error: Size of data type is unknown ../../core/net/dhcpc.c(274): Warning: Function call without a prototype ../../core/net/dhcpc.c(283): Warning: Function call without a prototype ../../core/net/dhcpc.c(382): Warning: Function call without a prototype ../../core/net/dhcpc.c(382): Warning: Function call without a prototype ../../core/net/dhcpc.c(383): Warning: Parameter `data' is never used the offending code is: (somewhere in ./platform/c64/contiki-conf.h) #define LC_CONF_INCLUDE "lib/lc-cc65.h" (in ./core/sys/lc.h) #ifdef LC_CONF_INCLUDE #include LC_CONF_INCLUDE #else /* LC_CONF_INCLUDE */ #include "sys/lc-switch.h" #endif /* LC_CONF_INCLUDE */ ...is this even legal? mmmh i can see a lot of lesser compilers fail on this too... maybe some kind of configure script would do the job better than this? (although i can see other kinds of problems with that). args :/ i might try piping stuff through gccs preprocessor, but this smells very hax0r to me and shouldnt be needed :=P -- http://www.hitmen-console.org http://www.gc-linux.org/docs/yagcd.html http://www.pokefinder.org http://ftp.pokefinder.org Für das große Chaos haben wir Computer. Die übrigen Fehler machen wir von Hand. ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Fri Jun 23 13:15:18 2006
This archive was generated by hypermail 2.1.8 : 2006-06-23 13:15:21 CEST