Makefile and sdl-config problem

I am tring to compile sdl in linux. i have my .c file an my makefile…
in my makefle i have-----------------------

all: prueba

prueba: prueba.o
gcc ‘sdl-config --libs’ prueba.o -o prueba

prueba.o:
gcc -c ‘sdl-config --cflags’ prueba.c


and in my .c file


#include “SDL/SDL.h”

main()
{
//Aqui va el cuerpo del programa
return 0;
}


and when i try to compile it

[user at maquina prueba]$ make
gcc ‘sdl-config --libs’ prueba.o -o prueba
gcc: sdl-config --libs: No existe el fichero o el directorio (file or
directory does not exist)
make: *** [prueba] Error 1

but if i execute

[user at maquina prueba]$ sdl-config --cflags
-I/usr/include/SDL -D_REENTRANT

[user at maquina prueba]$ sdl-config --libs
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread

what is the problem?
thanks

Fede!


AtaqueCacerola.com.ar

Federico wrote:

I am tring to compile sdl in linux. i have my .c file an my makefile…
in my makefle i have


all: prueba

prueba: prueba.o
gcc ‘sdl-config --libs’ prueba.o -o prueba

prueba.o:
gcc -c ‘sdl-config --cflags’ prueba.c

Those should be backquotes (`) and not quotes (’)

Stephane

The problem I think is that you are using the single quote rather than the character under the ~ (on my keyboard). So it should be ` not ’ as you are using.

RafikOn 07 Aug 2003 18:21:31 -0300 Federico wrote:

I am tring to compile sdl in linux. i have my .c file an my makefile…
in my makefle i have


all: prueba

prueba: prueba.o
gcc ‘sdl-config --libs’ prueba.o -o prueba

prueba.o:
gcc -c ‘sdl-config --cflags’ prueba.c


and in my .c file


#include “SDL/SDL.h”

main()
{
//Aqui va el cuerpo del programa
return 0;
}


and when i try to compile it

[user at maquina prueba]$ make
gcc ‘sdl-config --libs’ prueba.o -o prueba
gcc: sdl-config --libs: No existe el fichero o el directorio (file or
directory does not exist)
make: *** [prueba] Error 1

but if i execute

[user at maquina prueba]$ sdl-config --cflags
-I/usr/include/SDL -D_REENTRANT

[user at maquina prueba]$ sdl-config --libs
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread

what is the problem?
thanks

Fede!


AtaqueCacerola.com.ar


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

that was the problem…! thanks!

El jue, 07 de 08 de 2003 a las 18:57, Stephane Marchesin escribi?:> Federico wrote:

I am tring to compile sdl in linux. i have my .c file an my makefile…
in my makefle i have


all: prueba

prueba: prueba.o
gcc ‘sdl-config --libs’ prueba.o -o prueba

prueba.o:
gcc -c ‘sdl-config --cflags’ prueba.c

Those should be backquotes (`) and not quotes (’)

Stephane


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl