forked from fabiensanglard/chocolate_duke3D
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request fabiensanglard#32 from darealshinji/automake-2
Use GNU automake build system
- Loading branch information
Showing
19 changed files
with
121 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
noinst_LIBRARIES = libEngine.a | ||
libEngine_a_SOURCES = cache.c display.c draw.c dummy_multi.c engine.c filesystem.c fixedPoint_math.c mmulti.c network.c tiles.c | ||
libEngine_a_CFLAGS = -I$(top_srcdir)/Game/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if WITH_WIN_ICON | ||
chocolateDukeResources.o: chocolateDukeResources.rc | ||
@WINDRES@ $^ -o $@ | ||
endif |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
SUBDIRS = audiolib midi | ||
|
||
noinst_LIBRARIES = libGame.a | ||
|
||
libGame_a_SOURCES = \ | ||
actors.c animlib.c config.c console.c control.c cvar_defs.c cvars.c dummy_audiolib.c game.c \ | ||
gamedef.c global.c keyboard.c menues.c player.c rts.c scriplib.c sector.c sounds.c | ||
libGame_a_LIBADD = premap.o | ||
libGame_a_CFLAGS = -I$(top_srcdir)/Engine/src | ||
|
||
# Starting a new game will lead to a crash if premap.o was built with -O1/-O2/-O3, | ||
# that's why we're compiling it seperately with -O0 | ||
premap.o: premap.c | ||
$(AM_V_CC)$(CC) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -I$(top_srcdir)/Engine/src -O0 -c $^ -o $@ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
noinst_LIBRARIES = libaudio.a | ||
libaudio_a_SOURCES = fx_man.c dsl.c ll_man.c multivoc.c mv_mix.c mvreverb.c nodpmi.c pitch.c user.c usrhooks.c | ||
|
||
AM_CFLAGS = -I$(top_srcdir)/Engine/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
noinst_LIBRARIES = libmidi.a | ||
libmidi_a_SOURCES = sdl_midi.c | ||
libmidi_a_CFLAGS = -I$(top_srcdir)/Engine/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
SUBDIRS = Game/src Engine/src Game | ||
|
||
bin_PROGRAMS = chocolate-duke3d | ||
chocolate_duke3d_SOURCES = | ||
chocolate_duke3d_LDADD = \ | ||
Game/src/libGame.a \ | ||
Game/src/audiolib/libaudio.a \ | ||
Game/src/midi/libmidi.a \ | ||
Engine/src/libEngine.a \ | ||
$(SDL_LIBS) $(SDL_MIXER_LIBS) | ||
if WITH_WIN_ICON | ||
chocolate_duke3d_LDADD += Game/chocolateDukeResources.o | ||
endif | ||
|
||
doc_DATA = README.md | ||
|
||
pixmapdir = $(datadir)/pixmaps | ||
pixmap_DATA = Game/duke_icon.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
rm -rf autom4te.cache build-aux aclocal.m4 | ||
autoreconf -ivf | ||
rm -rf autom4te.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# -*- Autoconf -*- | ||
# Process this file with autoconf to produce a configure script. | ||
|
||
AC_INIT([Chocolate Duke3D], | ||
[1.0], | ||
[https://github.com/fabiensanglard/chocolate_duke3D/issues]) | ||
AC_CONFIG_SRCDIR([.]) | ||
|
||
AC_CONFIG_AUX_DIR([build-aux]) | ||
AM_INIT_AUTOMAKE([foreign]) | ||
AM_SILENT_RULES([yes]) | ||
|
||
# Checks for programs. | ||
AC_PROG_CC | ||
AC_PROG_RANLIB | ||
case "$host" in | ||
*cygwin*|*mingw*) | ||
AC_CHECK_TOOL([WINDRES], [windres], []) | ||
;; | ||
esac | ||
AM_CONDITIONAL([WITH_WIN_ICON], [test "$WINDRES" != ""]) | ||
|
||
# Checks for libraries. | ||
PKG_CHECK_MODULES([SDL], [sdl], [], [ | ||
AC_CHECK_LIB([SDL], [main], [], [exit 1]) | ||
]) | ||
PKG_CHECK_MODULES([SDL_MIXER], [SDL_mixer], [], [ | ||
AC_CHECK_LIB([SDL_mixer], [main], [], [exit 1]) | ||
]) | ||
|
||
dnl Compiler flags | ||
CFLAGS_WARNINGS="-Wall -Wno-pointer-sign -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast \ | ||
-Wno-parentheses -Wno-maybe-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-result" | ||
CFLAGS="${CFLAGS_WARNINGS} -fno-strict-aliasing -fno-aggressive-loop-optimizations -DPLATFORM_UNIX $(pkg-config --cflags SDL_mixer) ${CFLAGS}" | ||
LDFLAGS="$(pkg-config --libs sdl) $(pkg-config --libs SDL_mixer) ${LDFLAGS}" | ||
|
||
# Checks for header files. | ||
AC_CHECK_HEADERS([assert.h enet/enet.h]) | ||
|
||
AC_CONFIG_FILES([Engine/src/Makefile | ||
Game/src/Makefile | ||
Game/src/audiolib/Makefile | ||
Game/src/midi/Makefile | ||
Game/Makefile | ||
Makefile]) | ||
AC_OUTPUT |