english please :-)

Quoting dirac_22 <[EMAIL PROTECTED]>:

>
> salve a tutti
> ho realizzato una piccola applicazione C -> e fin qui tutto bene
>
> ho compilato con il seguente comando :
> gcc-cris -mlinux -isystem /devboard-R2_01/target/cris-axis-linux-gnu/
> -lm -o mioATTR mioATTR.c
> tutto bene l'applicazione funziona
>
> a questo punto per comodità volevo realizzare un Makefile
> ho cercato di prendere spunto dal Makefile di esempio di helloworld
> ma ottengo sempre un messaggio del tipo
>
> gcc_cris  -mlinux -mno-mul-bug-workaround
> -muclibc=/home/Pippo/devboard-R2_01/target/cris-axis-linux-gnuuclibc
> -Wall -Wshadow -O2 -g    -c -o mioATTR.o mioATTR.c
>
> quindi il targer che usa è cris-axis-linux-gnuuclibc
> io invece voglio usare -> cris-axis-linux-gnu    (kernel 2.6)
>
> confidando in una dritta ringrazio
> Fabio
>
>
> ------------------------------------------------------
> AXIS_USABLE_LIBS = UCLIBC GLIBC
> include $(AXIS_TOP_DIR)/tools/build/Rules.axis
>
> PROGS     = helloworld
>
> INSTDIR   = $(prefix)/mnt/flash/
> INSTMODE  = 0755
> INSTOWNER = root
> INSTGROUP = root
>
> OBJS = helloworld.o
>
> all: $(PROGS)
> $(PROGS): $(OBJS)
>       $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
>
> install:      $(PROGS)
> #     @echo Installing $(PROGS) in $(INSTDIR)
>       $(INSTALL) -d $(INSTDIR)
>       $(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PROGS)
> $(INSTDIR)
>
> clean:
>       rm -f $(PROGS) *.o core
> ------------------------------------
>
>
>



Reply via email to