suzy Posted May 23, 2008 at 08:59 AM Report Share #186867 Posted May 23, 2008 at 08:59 AM caros, vou começar a fazer um programa em c, mas no linux, mais concretamente no ubuntu. tenho uma pequena duvida em relação aos header files. imaginemos que tenho os seguintes ficheiros main.c soma.h principal.h em relação ao makefile que eu sei como criar as dependencias. o codigo do makefile vai ficar num ficheiro, tal e qual como os ficheiros acima descritos?? tipo make.c?? muito obrigada 😛 Link to comment Share on other sites More sharing options...
Rui Carlos Posted May 23, 2008 at 11:44 AM Report Share #186886 Posted May 23, 2008 at 11:44 AM O código do makefile deve ficar num ficheiro com o nome 'GNUmakefile', 'makefile', ou 'Makefile', pois é estes que o comando make vai procurar. Caso contrário, terá de indicar o nome do ficheiro manualmente. Já agora, as makefiles não têm "nada" a ver com headers files... Rui Carlos Gonçalves Link to comment Share on other sites More sharing options...
pedrotuga Posted May 23, 2008 at 01:15 PM Report Share #186890 Posted May 23, 2008 at 01:15 PM Rui, se bem não estou em erro acho que eras tu que tinhas um bom tutorial sobre o gnubuild. Podias afxar aí o link, se for possível.... Link to comment Share on other sites More sharing options...
Rui Carlos Posted May 23, 2008 at 01:28 PM Report Share #186895 Posted May 23, 2008 at 01:28 PM Penso que te referes a isto: http://rcg-pt.net/docs/dsg.pdf Isto é para utilizar o automake para gerar automaticamente makefiles adaptadas à plataforma em que queremos compilar um software. Para compilar programas simples, numa máquina específica, usar o automake não se justificará muito. Rui Carlos Gonçalves Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now