Trev wrote:
Here's a Makefile that works for vbcc:
Trev
Thanks!
I gave it a try, but...
Using vbcc makefile:
7.Work:uip/uip-1.0.vbcc/m68k-amigaos> make uip
make: *** No rule to make target `/main.o', needed by `uip'. Stop.
7.Work:uip/uip-1.0.vbcc/m68k-amigaos>
Okay, I'll give ya a rule, how about this added to Makefile:
main.o: main.c
$(CC) $(CFLAGS) main.c
7.Work:uip/uip-1.0.vbcc/m68k-amigaos> make main.o
vc -I../uip -I. -lamiga main.c
vbcc V0.8j (c) in 1995-2006 by Volker Barthelmann
vbcc code-generator for m68k/ColdFire V1.6a (c) in 1995-2005 by Volker Barth
elmann
>#include "webserver.h"
error 248 in line 156 of "uip-conf.h": file 'webserver.h' not found
1 error found!
vbccm68k failed returncode 20
vbccm68k "main.c" -o= "T:t_8_0.asm" -I../uip -I. -O=1 -Ivincludeos3: faile
d
vc failed returncode 20
make: *** [main.o] Error 20
7.Work:uip/uip-1.0.vbcc/m68k-amigaos>
Okay, who needs a webserver?
-comment out #include "webserver.h" in uip-conf.h;
7.Work:uip/uip-1.0.vbcc/m68k-amigaos> make main.o
vc -I../uip -I. -lamiga main.c
>extern u8_t uip_buf[UIP_BUFSIZE+2+15] __attribute__
warning 54 in line 423 of "uip.h": ; expected
>extern u8_t uip_buf[UIP_BUFSIZE+2+15] __attribute__ ((
error 20 in line 423 of "uip.h": no declarator and no identifier in prototyp
e
Okay, added "#define __attribute__(x) /*NOTHING*/" in uip.h;
7.Work:uip/uip-1.0.vbcc/m68k-amigaos> make main.o
vc -I../uip -I. -lamiga main.c
> uip_tcp_appstate_t
warning 56 in line 1185 of "uip.h": } expected
> uip_tcp_appstate_t appstate;
warning 54 in line 1185 of "uip.h": ; expected
> uip_tcp_appstate_t appstate;
warning 125 in line 1185 of "uip.h": no declaration-specifier, used int
>}
Okay, 'uip_tcp_appstate_t' only defined in 'hello-world.h' !?!
-referred to in comments in 'uipopt.h'
Any ideas?