[ECOS] Makefile correct?

Alex Bueno Guarner abg@dimat.es
Tue Apr 5 08:12:00 GMT 2005


	I'm having strange problems when compiling my program linked to the eCos 
library, and I would like to check the Makefile. The fact is that I built 
my Makefile from one I found anywhere, and I'm not clear if the 
copmpilation options are correct.

	Also I have found that if I compile a cxx file, it returns a lot of 

	Anyone could take a look at it?


PROG_NAME	= nios_lib

include $(INSTALL_DIR)/include/pkgconf/ecos.mak

XCC           = $(ECOS_COMMAND_PREFIX)gcc
XLD           = $(XCC)


all: $(PROG_NAME)

%.o: %.c
	$(XCC) -c $(CFLAGS) -o $*.o $ $<

%.o: %.cxx
	$(XCXX) -c $(CXXFLAGS) -o $*.o $<

	main.o -o $@



----------------------------------------- PLEASE NOTE -------------------------------------------
This message, along with any attachments, may be confidential or legally privileged. 
It is intended only for the named person(s), who is/are the only authorized recipients.
If this message has reached you in error, kindly destroy it without review and notify the sender immediately.
Thank you for your help.
DIMAT uses virus scanning software but excludes any liability for viruses contained in any attachment.

------------------------------------ ROGAMOS LEA ESTE TEXTO -------------------------------------
Este mensaje y sus anexos pueden contener información confidencial y/o con derecho legal. 
Está dirigido únicamente a la/s persona/s o entidad/es resenadas como único destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. Gracias por su colaboración.  
DIMAT utiliza software antivirus, pero no se hace responsable de los virus contenidos en los ficheros anexos.

Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list