[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to link special libraries while cross compiling



hi all,

I am using some graphics libraries in my C code. How
to link these libraries while cross compiling for Axis
Developer board.

what are changes to be made for Makefile, which is
provided with example program (helloworld!)

******************************************************
AXIS_USABLE_LIBS = GLIBC UCLIBC
include $(APPS)/Rules.elinux

PROGS     = hello

INSTDIR   = $(prefix)/bin/
INSTMODE  = 0755
INSTOWNER = root
INSTGROUP = root

OBJS = hello.o

all: $(PROGS)

$(PROGS): $(OBJS)
	$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@

install:	$(PROGS)
	$(INSTALL) -d $(INSTDIR)
	$(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g
$(INSTGROUP) $(PROGS) $(INSTDIR)

clean:
	rm -f $(PROGS) *.o core

*****************************************************

thanks in advance


Regards
Ranganadh


________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
       visit http://in.tv.yahoo.com