foxygit / doom Log in
commit d4056662a4c70bf2817d470694a3506bb35f0b7f
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Fri Mar 9 22:50:48 2007 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Fri Mar 9 22:50:48 2007 +0000

    Move the pcsound library to the top level, alongside textscreen.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 849
---
 Makefile.am                              | 2 +-
 configure.in                             | 2 +-
 {src/pcsound => pcsound}/Makefile.am     | 0
 {src/pcsound => pcsound}/pcsound.c       | 0
 {src/pcsound => pcsound}/pcsound.h       | 0
 {src/pcsound => pcsound}/pcsound_sdl.c   | 0
 {src/pcsound => pcsound}/pcsound_win32.c | 0
 src/Makefile.am                          | 6 ++----
 src/i_pcsound.c                          | 2 +-
 9 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 8e2a5e39..efa6b9fa 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -39,7 +39,7 @@ EXTRA_DIST=                             \
 MAINTAINERCLEANFILES =  $(AUX_DIST_GEN)

 docdir=$(prefix)/share/doc/@PACKAGE@
-SUBDIRS=textscreen src man setup
+SUBDIRS=textscreen pcsound src man setup

 CMDLINE : src/
 	./man/docgen -p $? > $@
diff --git a/configure.in b/configure.in
index c43ab84c..2d2789ff 100644
--- a/configure.in
+++ b/configure.in
@@ -74,7 +74,7 @@ textscreen/examples/Makefile
 setup/Makefile
 man/Makefile
 src/Makefile
-src/pcsound/Makefile
+pcsound/Makefile
 src/chocolate-doom-res.rc
 setup/chocolate-setup-res.rc
 ])
diff --git a/src/pcsound/Makefile.am b/pcsound/Makefile.am
similarity index 100%
rename from src/pcsound/Makefile.am
rename to pcsound/Makefile.am
diff --git a/src/pcsound/pcsound.c b/pcsound/pcsound.c
similarity index 100%
rename from src/pcsound/pcsound.c
rename to pcsound/pcsound.c
diff --git a/src/pcsound/pcsound.h b/pcsound/pcsound.h
similarity index 100%
rename from src/pcsound/pcsound.h
rename to pcsound/pcsound.h
diff --git a/src/pcsound/pcsound_sdl.c b/pcsound/pcsound_sdl.c
similarity index 100%
rename from src/pcsound/pcsound_sdl.c
rename to pcsound/pcsound_sdl.c
diff --git a/src/pcsound/pcsound_win32.c b/pcsound/pcsound_win32.c
similarity index 100%
rename from src/pcsound/pcsound_win32.c
rename to pcsound/pcsound_win32.c
diff --git a/src/Makefile.am b/src/Makefile.am
index 53ef775c..4d694293 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,7 +3,7 @@ gamesdir = $(prefix)/games

 games_PROGRAMS = chocolate-doom chocolate-server

-AM_CFLAGS = -I../textscreen @SDL_CFLAGS@ @SDLMIXER_CFLAGS@ @SDLNET_CFLAGS@
+AM_CFLAGS = -I../textscreen -I../pcsound @SDL_CFLAGS@ @SDLMIXER_CFLAGS@ @SDLNET_CFLAGS@

 DEDSERV_FILES=\
 d_dedicated.c                              \
@@ -22,8 +22,6 @@ z_native.c           z_zone.h
 chocolate_server_SOURCES=$(DEDSERV_FILES)
 chocolate_server_LDADD = @LDFLAGS@ @SDL_LIBS@ @SDLNET_LIBS@

-SUBDIRS=pcsound
-
 SOURCE_FILES=\
 am_map.c             am_map.h              \
 deh_ammo.c                                 \
@@ -141,7 +139,7 @@ else
 chocolate_doom_SOURCES=$(SOURCE_FILES)
 endif

-chocolate_doom_LDADD = ../textscreen/libtextscreen.a pcsound/libpcsound.a @LDFLAGS@ @SDL_LIBS@ @SDLMIXER_LIBS@ @SDLNET_LIBS@
+chocolate_doom_LDADD = ../textscreen/libtextscreen.a ../pcsound/libpcsound.a @LDFLAGS@ @SDL_LIBS@ @SDLMIXER_LIBS@ @SDLNET_LIBS@

 EXTRA_DIST =                               \
         chocolate_doom_icon.c              \
diff --git a/src/i_pcsound.c b/src/i_pcsound.c
index 926e5f1d..d9b76eec 100644
--- a/src/i_pcsound.c
+++ b/src/i_pcsound.c
@@ -35,7 +35,7 @@
 #include "w_wad.h"
 #include "z_zone.h"

-#include "pcsound/pcsound.h"
+#include "pcsound.h"

 static boolean pcs_initialised = false;