Adding autotools stuff. Still need to write the windows Makefile.am.

This commit is contained in:
yabause 2006-04-06 20:41:56 +00:00
parent dcf1e19871
commit 363ba63dc9
5 changed files with 57 additions and 0 deletions

0
desmume/ChangeLog Normal file
View File

1
desmume/Makefile.am Normal file
View File

@ -0,0 +1 @@
SUBDIRS = src

42
desmume/configure.ac Normal file
View File

@ -0,0 +1,42 @@
AC_INIT(desmume, 0.33)
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE(desmume, 0.33)
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_LANG(C)
AC_C_BIGENDIAN
AC_PATH_PROGS(HAVE_LIBSDL, [sdl-config sdl11-config])
if test x$HAVE_LIBSDL = x ; then
AC_MSG_ERROR([You need to install SDL])
else
SDL_CFLAGS=`$HAVE_LIBSDL --cflags`
SDL_LIBS=`$HAVE_LIBSDL --libs`
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
fi
AC_CHECK_TOOL(HAVE_PKG, pkg-config)
if test ! x$HAVE_PKG = x ; then
GTK_CFLAGS=`$HAVE_PKG gtk+-2.0 --cflags`
GTK_LIBS=`$HAVE_PKG gtk+-2.0 --libs`
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
fi
AC_CONFIG_FILES([Makefile
src/Makefile
src/gtk/Makefile
])
AC_OUTPUT

10
desmume/src/Makefile.am Normal file
View File

@ -0,0 +1,10 @@
SUBDIRS = . gtk
noinst_LIBRARIES = libdesmume.a
libdesmume_a_SOURCES = \
ARM_CPU.cpp ARM_CPU.hpp \
arm_instructions.cpp arm_instructions.hpp \
bios.cpp bios.hpp CP15.cpp CP15.hpp \
Disassembler.cpp Disassembler.hpp \
GPU.cpp GPU.hpp log.cpp log.hpp \
MMU.cpp MMU.hpp NDSSystem.cpp NDSSystem.hpp \
thumb_instructions.cpp thumb_instructions.hpp

View File

@ -0,0 +1,4 @@
bin_PROGRAMS = desmume
desmume_SOURCES = main.cpp
desmume_LDADD = ../libdesmume.a $(GTK_LIBS)
desmume_CXXFLAGS = $(GTK_CFLAGS)