Changeset 623
- Timestamp:
- Feb 9, 2011, 3:20:07 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r421 r623 23 23 AC_C_INLINE 24 24 25 dnl Ensure an error is thrown if pkg-config M4 files are not found. 26 m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) 27 m4_pattern_forbid([^PKG_CHECK_MODULES$]) 28 m4_pattern_forbid([^PKG_PROG_PKG_CONFIG$]) 29 30 dnl Do not use PKG_CONFIG_LIBDIR when cross-compiling. 31 if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then 32 export PKG_CONFIG_LIBDIR=/dev/null 33 fi 34 25 35 dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right 26 36 dnl now otherwise it might be set in an obscure if statement. Same thing for … … 28 38 AC_EGREP_CPP(yes, foo) 29 39 PKG_PROG_PKG_CONFIG() 30 m4_pattern_allow([^PKG_CONFIG_LIBDIR$])31 if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then32 export PKG_CONFIG_LIBDIR=/dev/null33 fi34 40 35 41 dnl conditional builds … … 74 80 75 81 76 #Use libcaca? (required for font generation)82 dnl Use libcaca? (required for font generation) 77 83 ac_cv_my_have_caca="no" 78 84 PKG_CHECK_MODULES(CACA, caca >= 0.99.beta17, [ac_cv_my_have_caca="yes"], [:]) … … 83 89 84 90 85 #Use libpipi? (required for video recording)91 dnl Use libpipi? (required for video recording) 86 92 ac_cv_my_have_pipi="no" 87 93 PKG_CHECK_MODULES(PIPI, pipi, [ac_cv_my_have_pipi="yes"], [:]) … … 92 98 93 99 100 dnl Use GTK+? (required for the deushax editor) 101 GTK_CFLAGS="$GTK_CFLAGS `pkg-config --cflags gtk+-2.0 gtkgl-2.0`" 102 GTK_LIBS="$GTK_LIBS `pkg-config --libs gtk+-2.0 gtkgl-2.0`" 103 94 104 # How to use the Lol Engine inside this tree 95 LOL_CFLAGS=" -I \$(top_srcdir)/src `pkg-config --cflags sdl gl SDL_image`"96 LOL_LIBS=" `pkg-config --libs sdl gl SDL_image` -lSDL_mixer"105 LOL_CFLAGS="$LOL_CFLAGS -I \$(top_srcdir)/src `pkg-config --cflags sdl gl SDL_image`" 106 LOL_LIBS="$LOL_LIBS `pkg-config --libs sdl gl SDL_image` -lSDL_mixer" 97 107 98 108 if test "${enable_release}" = "yes"; then … … 101 111 102 112 AC_SUBST(MATH_LIBS) 113 AC_SUBST(GTK_CFLAGS) 114 AC_SUBST(GTK_LIBS) 103 115 AC_SUBST(LOL_CFLAGS) 104 116 AC_SUBST(LOL_LIBS) -
trunk/deushax/Makefile.am
r221 r623 4 4 deushax_SOURCES = deushax.cpp game.cpp game.h debugsprite.cpp debugsprite.h 5 5 deushax_CXXFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@ 6 deushax_LDADD = $(top_builddir)/src/liblol.a7 deushax_LDFLAGS = @LOL_LIBS@ @PIPI_LIBS@6 deushax_LDADD = 7 deushax_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@ 8 8 9 9 editor_SOURCES = gtk/editor.cpp gtk/glmapview.cpp gtk/glmapview.h \ 10 10 mapviewer.cpp mapviewer.h 11 editor_CXXFLAGS = @ LOL_CFLAGS@ `pkg-config --cflags gtk+-2.0 gtkgl-2.0`12 editor_LDADD = $(top_builddir)/src/liblol.a13 editor_LDFLAGS = @LOL_LIBS@ `pkg-config --libs gtk+-2.0 gtkgl-2.0`11 editor_CXXFLAGS = @GTK_CFLAGS@ @LOL_CFLAGS@ 12 editor_LDADD = 13 editor_LDFLAGS = $(top_builddir)/src/liblol.a @GTK_LIBS@ @LOL_LIBS@ 14 14 EXTRA_DIST = gtk/editor.xml 15 15 -
trunk/monsterz/Makefile.am
r424 r623 6 6 board.cpp board.h piece.cpp piece.h mash.cpp mash.h thumbs.cpp thumbs.h 7 7 monsterz_CXXFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@ 8 monsterz_LDADD = $(top_builddir)/src/liblol.a9 monsterz_LDFLAGS = @LOL_LIBS@ @PIPI_LIBS@8 monsterz_LDADD = 9 monsterz_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@ 10 10 11 11 EXTRA_DIST = $(PNG) $(WAV) -
trunk/src/Makefile.am
r312 r623 15 15 debugfps.cpp debugfps.h debugsphere.cpp debugsphere.h \ 16 16 debugrecord.cpp debugrecord.h debugstats.cpp debugstats.h 17 liblol_a_CXXFLAGS = `pkg-config --cflags sdl gl SDL_image`17 liblol_a_CXXFLAGS = @LOL_CFLAGS@ 18 18
Note: See TracChangeset
for help on using the changeset viewer.