configure fix
This commit is contained in:
parent
078b7aefa0
commit
1be9e98235
1
Makefile
1
Makefile
|
@ -11,6 +11,7 @@ clean:
|
||||||
@for dir in $(SUBDIRS); do \
|
@for dir in $(SUBDIRS); do \
|
||||||
$(MAKE) clean -C $$dir $(@) || exit 1; \
|
$(MAKE) clean -C $$dir $(@) || exit 1; \
|
||||||
done;
|
done;
|
||||||
|
echo "# you can define own flags here" > config.make
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
ifeq ($(SYSTEMSETUP), yes)
|
ifeq ($(SYSTEMSETUP), yes)
|
||||||
|
|
|
@ -1,4 +1 @@
|
||||||
LUA_CFLAGS=$(shell pkg-config --cflags lua)
|
# you can define own flags here
|
||||||
LUA_LFLAGS=$(shell pkg-config --libs lua)
|
|
||||||
SDL_CFLAGS=$(shell sdl-config --cflags)
|
|
||||||
SDL_LFLAGS=$(shell sdl-config --libs) -lSDL_ttf -lSDL_mixer -lSDL_image
|
|
||||||
|
|
|
@ -74,7 +74,8 @@ fi
|
||||||
echo ") ok"
|
echo ") ok"
|
||||||
rm /tmp/sdl-test.c
|
rm /tmp/sdl-test.c
|
||||||
echo -n "Generating config.make..."
|
echo -n "Generating config.make..."
|
||||||
echo "LUA_CFLAGS=\$(shell $lua_cflags)" > config.make
|
echo "# autamatically generated by configure.sh" >config.make
|
||||||
|
echo "LUA_CFLAGS=\$(shell $lua_cflags)" >> config.make
|
||||||
echo "LUA_LFLAGS=\$(shell $lua_libs)" >> config.make
|
echo "LUA_LFLAGS=\$(shell $lua_libs)" >> config.make
|
||||||
echo "SDL_CFLAGS=\$(shell sdl-config --cflags)" >> config.make
|
echo "SDL_CFLAGS=\$(shell sdl-config --cflags)" >> config.make
|
||||||
echo "SDL_LFLAGS=\$(shell sdl-config --libs) -lSDL_ttf -lSDL_mixer -lSDL_image" >> config.make
|
echo "SDL_LFLAGS=\$(shell sdl-config --libs) -lSDL_ttf -lSDL_mixer -lSDL_image" >> config.make
|
||||||
|
|
Loading…
Reference in a new issue