Command like this will work:
(LD) $(LDFLAGS) -o reip.app newlib/crt0.o reip.o renetif.o fs.o httpd.o liblwip.a newlib/libc.a
But if I place *.a before *.o files - it will be not able to find functions from libs.
I've searched through some old projects and found in makefiles lines like these:
$(CC) $(LIBS) -o $(TARGET) JukeboxMain.o JukeboxPlayer.o ...
which doesn't work either until I move $(LIBS) to the end of line. But I remember it was working for me long time ago. Could someone please answer what changed and why it doesn't work anymore ) P.S. I'm not a big fan of playing with compilers, linkers and other tools - I mostly prefer to create something ;)