Browse Source

Add a few more autotools rules.

legacy
Sam Hocevar sam 14 years ago
parent
commit
4f802a421d
2 changed files with 11 additions and 10 deletions
  1. +7
    -1
      configure.ac
  2. +4
    -9
      tools/Makefile.am

+ 7
- 1
configure.ac View File

@@ -34,7 +34,9 @@ fi

dnl conditional builds
AC_ARG_ENABLE(debug,
[ --enable-debug build debug versions of the library (default no)])
[ --enable-debug build debug versions of the game (default no)])
AC_ARG_ENABLE(release,
[ --enable-release build final release of the game (default no)])

AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h)

@@ -69,6 +71,10 @@ if test "${enable_debug}" = "yes"; then
AC_DEFINE(DEBUG, 1, Define to 1 to activate debug)
fi

if test "${enable_release}" = "yes"; then
AC_DEFINE(FINAL_RELEASE, 1, Define to 1 to activate final release)
fi

AC_SUBST(MATH_LIBS)

AC_CONFIG_FILES([


+ 4
- 9
tools/Makefile.am View File

@@ -1,12 +1,7 @@

all: make-font
noinst_PROGRAMS = make-font

make-font: make-font.o
g++ -g -Wall -O3 $^ -o $@ `pkg-config --libs caca`

%.o: %.cpp
g++ -g -Wall -O3 -c $^ -o $@ `pkg-config --cflags caca`

clean:
rm -f *.o make-font
make_font_SOURCES = make-font.cpp
make_font_CXXFLAGS = `pkg-config --cflags caca`
make_font_LDFLAGS = `pkg-config --libs caca`


Loading…
Cancel
Save