From 73e68c76833526304bb062144f62b9358f6f77e5 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 23 Jul 2005 17:20:33 +0000 Subject: Autotools build system Subversion-branch: /trunk/chocolate-doom Subversion-revision: 11 --- Makefile.am | 13 +++++++++++++ autogen.sh | 12 ++++++++++++ configure.in | 24 ++++++++++++++++++++++++ src/Makefile.am | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 Makefile.am create mode 100755 autogen.sh create mode 100644 configure.in create mode 100644 src/Makefile.am diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 00000000..f518d7ba --- /dev/null +++ b/Makefile.am @@ -0,0 +1,13 @@ +AUX_DIST_GEN = \ + $(ac_aux_dir)/config.guess \ + $(ac_aux_dir)/config.sub \ + $(ac_aux_dir)/install-sh \ + $(ac_aux_dir)/missing \ + $(ac_aux_dir)/mkinstalldirs + + +MAINTAINERCLEANFILES = $(AUX_DIST_GEN) + +docdir=$(prefix)/share/doc/@PACKAGE@ +SUBDIRS=src + diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 00000000..ee0e377d --- /dev/null +++ b/autogen.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +mkdir autotools + +aclocal +autoheader +automake -a -c +autoconf +automake + +./configure $@ + diff --git a/configure.in b/configure.in new file mode 100644 index 00000000..13734600 --- /dev/null +++ b/configure.in @@ -0,0 +1,24 @@ +AC_INIT(Chocolate Doom, 0.1, fraggle@alkali.org, chocolate-doom) +AC_CONFIG_AUX_DIR(autotools) + +AC_PROG_CC + +AC_PATH_X + +AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME,AC_PACKAGE_VERSION) + +X_CFLAGS="-I$x_includes" +X_LDFLAGS="-L$x_libraries -lX11" + +echo $X_CFLAGS + +AC_SUBST(X_CFLAGS) +AC_SUBST(X_LDFLAGS) + +AM_CONFIG_HEADER(config.h:config.hin) + +AC_OUTPUT([ +Makefile +src/Makefile +]) + diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 00000000..8713afaa --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,32 @@ + +bindir = $(prefix)/bin + +CFLAGS = @CFLAGS@ @X_CFLAGS@ -DNORMALUNIX -DLINUX +LDFLAGS = @LDFLAGS@ @X_LDFLAGS@ -lX11 -lXext + +chocolate_doom_SOURCES=\ +am_map.c d_think.h i_video.c p_floor.c p_tick.c r_things.h \ +am_map.h d_ticcmd.h i_video.h p_inter.c p_tick.h sounds.c \ +d_englsh.h f_finale.c m_argv.c p_inter.h p_user.c sounds.h \ +d_event.h f_finale.h m_argv.h p_lights.c r_bsp.c s_sound.c \ +d_french.h f_wipe.c m_bbox.c p_local.h r_bsp.h s_sound.h \ +d_items.c f_wipe.h m_bbox.h p_map.c r_data.c st_lib.c \ +d_items.h g_game.c m_cheat.c p_maputl.c r_data.h st_lib.h \ +d_main.c g_game.h m_cheat.h p_mobj.c r_defs.h st_stuff.c \ +d_main.h hu_lib.c m_fixed.c p_mobj.h r_draw.c st_stuff.h \ +d_net.c hu_lib.h m_fixed.h p_plats.c r_draw.h tables.c \ +d_net.h hu_stuff.c m_menu.c p_pspr.c r_local.h tables.h \ +doomdata.h hu_stuff.h m_menu.h p_pspr.h r_main.c v_video.c \ +doomdef.c i_main.c m_misc.c p_saveg.c r_main.h v_video.h \ +doomdef.h i_net.c m_misc.h p_saveg.h r_plane.c wi_stuff.c \ +doomstat.c i_net.h m_random.c p_setup.c r_plane.h wi_stuff.h \ +doomstat.h info.c m_random.h p_setup.h r_segs.c w_wad.c \ +doomtype.h info.h m_swap.c p_sight.c r_segs.h w_wad.h \ +d_player.h i_sound.c m_swap.h p_spec.c r_sky.c z_zone.c \ +dstrings.c i_sound.h p_ceilng.c p_spec.h r_sky.h z_zone.h \ +dstrings.h i_system.c p_doors.c p_switch.c r_state.h \ +d_textur.h i_system.h p_enemy.c p_telept.c r_things.c + +bin_PROGRAMS = chocolate-doom + + -- cgit v1.2.3