start using macros the clean up the mess

This commit is contained in:
Bill Currie 2002-08-02 19:03:16 +00:00
parent 97d6f46f75
commit 96f81b69b8
2 changed files with 34 additions and 33 deletions

View file

@ -1105,3 +1105,12 @@ else
fi fi
]) ])
AC_DEFUN(QF_DEPS, [
$1_INCS='$2'
$1_DEPS='$3'
$1_LIBS='$3 $4 '
AC_SUBST($1_INCS)
AC_SUBST($1_DEPS)
AC_SUBST($1_LIBS)
])

View file

@ -1926,40 +1926,32 @@ AC_SUBST(VID_TARGETS)
AC_SUBST(plugin_ldflags) AC_SUBST(plugin_ldflags)
AC_SUBST(plugin_libadd) AC_SUBST(plugin_libadd)
QFCC_DEPS='$(top_builddir)/libs/gamecode/engine/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la' QF_DEPS(QFCC,
QFCC_LIBS="${QFCC_DEPS} "'$(WIN32_LIBS)' [-I$(top_srcdir)/tools/qfcc/include],
QFCC_INCS='-I$(top_srcdir)/tools/qfcc/include' [$(top_builddir)/libs/gamecode/engine/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la],
AC_SUBST(QFCC_LIBS) [$(WIN32_LIBS)],
AC_SUBST(QFCC_DEPS) )
AC_SUBST(QFCC_INCS) QF_DEPS(QFPROGS,
[-I$(top_srcdir)/tools/qfprogs/include],
QFPROGS_DEPS='$(top_builddir)/libs/gamecode/engine/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la' [$(top_builddir)/libs/gamecode/engine/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la],
QFPROGS_LIBS="${QFPROGS_DEPS} "'$(WIN32_LIBS)' [$(WIN32_LIBS)],
QFPROGS_INCS='-I$(top_srcdir)/tools/qfprogs/include' )
AC_SUBST(QFPROGS_LIBS) QF_DEPS(QWAQ,
AC_SUBST(QFPROGS_DEPS) [],
AC_SUBST(QFPROGS_INCS) [$(top_builddir)/libs/gamecode/engine/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la],
[$(WIN32_LIBS)],
QWAQ_DEPS='$(top_builddir)/libs/gamecode/engine/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la' )
QWAQ_LIBS="${QWAQ_DEPS} "'$(WIN32_LIBS)' QF_DEPS(PAK,
QWAQ_INCS='' [],
AC_SUBST(QWAQ_LIBS) [$(top_builddir)/libs/util/libQFutil.la],
AC_SUBST(QWAQ_DEPS) [$(WIN32_LIBS)],
AC_SUBST(QWAQ_INCS) )
QF_DEPS(WAV,
PAK_DEPS='$(top_builddir)/libs/util/libQFutil.la' [],
PAK_LIBS="${PAK_DEPS} "'$(WIN32_LIBS)' [$(top_builddir)/libs/util/libQFutil.la],
PAK_INCS="" [$(WIN32_LIBS)],
AC_SUBST(PAK_LIBS) )
AC_SUBST(PAK_DEPS)
AC_SUBST(PAK_INCS)
WAV_DEPS='$(top_builddir)/libs/util/libQFutil.la'
WAV_LIBS="${WAV_DEPS} "'$(WIN32_LIBS)'
WAV_INCS="" WAV_INCS=""
AC_SUBST(WAV_LIBS)
AC_SUBST(WAV_DEPS)
AC_SUBST(WAV_INCS)
AC_DEFINE_UNQUOTED(PATH_SEPARATOR, '/', [Define this to your operating system's path separator character]) AC_DEFINE_UNQUOTED(PATH_SEPARATOR, '/', [Define this to your operating system's path separator character])
AC_DEFINE_UNQUOTED(CPP_NAME, "$CPP_NAME", [Define this to the command line for the C preprocessor]) AC_DEFINE_UNQUOTED(CPP_NAME, "$CPP_NAME", [Define this to the command line for the C preprocessor])