Source Cleanup

origin
stpohle 22 years ago
parent 19d3603c55
commit c30c022f37

@ -3,7 +3,7 @@
## If you don't want it to overwrite it, ## If you don't want it to overwrite it,
## Please disable it in the Anjuta project configuration ## Please disable it in the Anjuta project configuration
SUBDIRS = src data SUBDIRS = include src data
bomberclonedocdir = ${prefix}/doc/bomberclone bomberclonedocdir = ${prefix}/doc/bomberclone
bomberclonedoc_DATA = \ bomberclonedoc_DATA = \

@ -55,7 +55,7 @@ project.excluded.modules=intl
project.config.extra.modules.before= project.config.extra.modules.before=
project.config.extra.modules.after= project.config.extra.modules.after=
project.config.blocked=0 project.config.blocked=0
project.config.disable.overwriting=1 1 1 0 0 0 1 0 0 project.config.disable.overwriting=1 1 1 1 1 1 1 1 1
project.menu.entry=bomberclone project.menu.entry=bomberclone
project.menu.group=Games project.menu.group=Games
@ -80,53 +80,53 @@ preferences.help.browser=devhelp -s '$(current.file.selection)'
module.include.name=include module.include.name=include
module.include.type= module.include.type=
module.include.expanded=0 module.include.expanded=1
module.include.files= module.include.files=\
basic.h\
bomberclone.h\
chat.h\
gamesrv.h\
font.h\
gfx.h\
keybinput.h\
map.h\
network.h\
packets.h\
sound.h\
sysfunc.h
module.source.name=src module.source.name=src
module.source.type= module.source.type=
module.source.expanded=1 module.source.expanded=1
module.source.files=\ module.source.files=\
main.c\ sysfunc.c\
bomb.c\ udp.c\
bomberclone.h\ tileset.c\
special.c\
sound.c\
configuration.c\
chat.c\
debug.c\ debug.c\
packets.c\ field.c\
font.c\ font.c\
gfx.c\ bomb.c\
player.c\
packets.h\
game.c\ game.c\
netmenu.c\
network.c\
menu.c\
field.c\
network.h\
configuration.c\
udp.c\
sysfunc.c\
pkgcache.c\
gamesrv.h\
gamesrv.c\ gamesrv.c\
gfx.h\ gfx.c\
basic.h\ gfxengine.c\
chat.c\ gfxpixelimage.c\
multiwait.c\
chat.h\
keybinput.c\ keybinput.c\
keybinput.h\ main.c\
single.c\
sysfunc.h\
mapmenu.c\
special.c\
sound.h\
sound.c\
font.h\
map.c\ map.c\
tileset.c\ mapmenu.c\
map.h\ menu.c\
gfxpixelimage.c\ multiwait.c\
gfxengine.c netmenu.c\
network.c\
packets.c\
pkgcache.c\
player.c\
single.c
module.pixmap.name=pixmaps module.pixmap.name=pixmaps
module.pixmap.type= module.pixmap.type=

@ -43,15 +43,67 @@ case "$target" in
*cygwin* | *mingw32* | *mingw32msvc* ) *cygwin* | *mingw32* | *mingw32msvc* )
CFLAGS="$CFLAGS" CFLAGS="$CFLAGS"
LIBS="$LIBS -liberty -lwsock32" LIBS="$LIBS -liberty -lwsock32"
MATHLIB=""
SYS_GL_LIBS="-lopengl32 -lglu32"
;; ;;
*solaris* ) *solaris* )
CFLAGS="$CFLAGS" CFLAGS="$CFLAGS"
LIBS="$LIBS -lsocket -lnsl -lm" LIBS="$LIBS -lsocket -lnsl -lm"
;; MATHLIB="-lm"
AC_PATH_X
AC_PATH_XTRA
if test x$have_x = xyes; then
CFLAGS="$CFLAGS $X_CFLAGS"
SYS_GL_LIBS="$X_LIBS -lGL -lGLU"
else
SYS_GL_LIBS="-lGL -lGLU"
fi
;;
*)
MATHLIB="-lm"
AC_PATH_X
AC_PATH_XTRA
if test x$have_x = xyes; then
CFLAGS="$CFLAGS $X_CFLAGS"
SYS_GL_LIBS="$X_LIBS -lGL -lGLU"
else
SYS_GL_LIBS="-lGL -lGLU"
fi
;;
esac esac
CFLAGS="$CFLAGS -Wall" CFLAGS="$CFLAGS -Wall"
AC_SUBST(MATHLIB)
dnl Check for OpenGL ***********************+
AC_MSG_CHECKING(for OpenGL support)
have_opengl=no
AC_TRY_COMPILE([
#if defined(__APPLE__) && defined(__MACH__)
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>
#endif
],[
],[
have_opengl=yes
])
AC_MSG_RESULT($have_opengl)
if test x$have_opengl = xyes; then
CFLAGS="$CFLAGS"
LIBS="$LIBS $SYS_GL_LIBS"
AC_DEFINE(HAVE_OPENGL, [1], [OpenGL Headers found])
else
AC_MSG_WARN(Unable to find OpenGL headers and libraries)
fi
dnl SDL_mixer ********************************** dnl SDL_mixer **********************************
AC_ARG_WITH(sdlmixer-prefix, [ --with-sdlmixer-prefix=PFX prefix where SDL_mixer library is installed], sdlmixer_prefix="$withval", sdlmixer_prefix="") AC_ARG_WITH(sdlmixer-prefix, [ --with-sdlmixer-prefix=PFX prefix where SDL_mixer library is installed], sdlmixer_prefix="$withval", sdlmixer_prefix="")
@ -139,5 +191,6 @@ AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}")
AC_OUTPUT([ AC_OUTPUT([
Makefile Makefile
src/Makefile src/Makefile
include/Makefile
data/Makefile data/Makefile
]) ])

@ -0,0 +1,22 @@
## Process this file with automake to produce Makefile.in
## Created by Anjuta - will be overwritten
## If you don't want it to overwrite it,
## Please disable it in the Anjuta project configuration
bomberclone_includedir = $(pkgincludedir)
bomberclone_include_DATA = \
basic.h \
bomberclone.h \
chat.h \
font.h \
gamesrv.h \
gfx.h \
keybinput.h \
map.h \
network.h \
packets.h \
sysfunc.h
EXTRA_DIST = $(bomberclone_include_DATA)

@ -1,4 +1,4 @@
/* $Id: basic.h,v 1.53 2003/09/10 22:21:18 stpohle Exp $ */ /* $Id: basic.h,v 1.1 2003/09/21 20:15:28 stpohle Exp $ */
/* basic types which we need everywhere */ /* basic types which we need everywhere */
#ifndef _BC_BASIC_H_ #ifndef _BC_BASIC_H_

@ -1,4 +1,4 @@
/* $Id: bomberclone.h,v 1.54 2003/08/29 23:50:39 stpohle Exp $ */ /* $Id: bomberclone.h,v 1.1 2003/09/21 20:15:28 stpohle Exp $ */
/* bomberclone.h */ /* bomberclone.h */
#ifndef _BOMBERCLONE_H_ #ifndef _BOMBERCLONE_H_

@ -1,4 +1,4 @@
/* $Id: gfx.h,v 1.18 2003/07/25 12:28:50 stpohle Exp $ */ /* $Id: gfx.h,v 1.1 2003/09/21 20:15:28 stpohle Exp $ */
#ifndef _GFX_H_ #ifndef _GFX_H_
#define _GFX_H_ #define _GFX_H_

@ -1,4 +1,4 @@
/* $Id: map.h,v 1.6 2003/09/10 21:32:22 stpohle Exp $ */ /* $Id: map.h,v 1.1 2003/09/21 20:15:28 stpohle Exp $ */
/* map.h */ /* map.h */
#ifndef _MAP_H_ #ifndef _MAP_H_

@ -1,4 +1,4 @@
/* $Id: sound.h,v 1.3 2003/08/06 19:29:10 stpohle Exp $ */ /* $Id: sound.h,v 1.1 2003/09/21 20:15:28 stpohle Exp $ */
/* include file for the sound */ /* include file for the sound */
#ifndef _SOUND_H_ #ifndef _SOUND_H_

@ -1,4 +1,4 @@
/* $Id: sysfunc.h,v 1.8 2003/09/10 21:32:22 stpohle Exp $ */ /* $Id: sysfunc.h,v 1.1 2003/09/21 20:15:28 stpohle Exp $ */
/* include some system near functions */ /* include some system near functions */
#ifndef _SYSFUNC_H_ #ifndef _SYSFUNC_H_

@ -1,48 +1,36 @@
INCLUDES = INCLUDES = -I../include
bin_PROGRAMS = bomberclone bin_PROGRAMS = bomberclone
bomberclone_SOURCES = \ bomberclone_SOURCES = \
basic.h\
main.c\ main.c\
bomb.c\ bomb.c\
bomberclone.h\
debug.c\ debug.c\
packets.c\ packets.c\
font.c\ font.c\
font.h\
gfx.h\
gfx.c\ gfx.c\
gfxengine.c\ gfxengine.c\
gfxpixelimage.c\ gfxpixelimage.c\
player.c\ player.c\
packets.h\
game.c\ game.c\
netmenu.c\ netmenu.c\
network.c\ network.c\
udp.c\ udp.c\
menu.c\ menu.c\
map.c\ map.c\
map.h\
mapmenu.c\ mapmenu.c\
tileset.c\ tileset.c\
field.c\ field.c\
network.h\
sysfunc.h\
sysfunc.c\ sysfunc.c\
configuration.c\ configuration.c\
pkgcache.c\ pkgcache.c\
gamesrv.h\
gamesrv.c \ gamesrv.c \
chat.c \ chat.c \
multiwait.c \ multiwait.c \
chat.h \
keybinput.h \
keybinput.c \ keybinput.c \
single.c \ single.c \
special.c \ special.c \
sound.h \
sound.c sound.c
## bomberclone_LDADD = ## bomberclone_LDADD =

Loading…
Cancel
Save