mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
build: Add initial Autotools files.
This commit is contained in:
commit
9f3ffd7287
19
.gitignore
vendored
Normal file
19
.gitignore
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
aclocal.m4
|
||||
autom4te.cache
|
||||
config.log
|
||||
config.status
|
||||
configure
|
||||
libtool
|
||||
Makefile
|
||||
Makefile.in
|
||||
|
||||
vkd3d-*.tar.gz
|
||||
|
||||
*.la
|
||||
*.lo
|
||||
*.pc
|
||||
*~
|
||||
|
||||
.deps
|
||||
.dirstamp
|
||||
.libs
|
1
Makefile.am
Normal file
1
Makefile.am
Normal file
@ -0,0 +1 @@
|
||||
ACLOCAL_AMFLAGS = -I m4
|
4
autogen.sh
Executable file
4
autogen.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
autoreconf -ifv
|
||||
rm -rf autom4te.cache
|
9
bin/.gitignore
vendored
Normal file
9
bin/.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
ar-lib
|
||||
compile
|
||||
config.guess
|
||||
config.sub
|
||||
depcomp
|
||||
install-sh
|
||||
ltmain.sh
|
||||
missing
|
||||
test-driver
|
36
configure.ac
Normal file
36
configure.ac
Normal file
@ -0,0 +1,36 @@
|
||||
AC_PREREQ([2.69])
|
||||
AC_INIT([vkd3d], 0.0.0)
|
||||
|
||||
AC_CONFIG_AUX_DIR([bin])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AC_CONFIG_LIBOBJ_DIR([portable])
|
||||
AC_CONFIG_HEADERS(include/config.h)
|
||||
|
||||
dnl Check for progs
|
||||
AM_PROG_AR
|
||||
AC_PROG_CC
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_SED
|
||||
AC_PROG_MKDIR_P
|
||||
|
||||
AM_INIT_AUTOMAKE([1.11 foreign silent-rules subdir-objects -Wall -Werror])
|
||||
AM_MAINTAINER_MODE([enable])
|
||||
|
||||
LT_PREREQ([2.4.2])
|
||||
LT_INIT
|
||||
|
||||
dnl Check compiler specific flags
|
||||
AC_SUBST(VKD3D_CLFAGS, "")
|
||||
if test "x${GCC}" = "xyes"
|
||||
then
|
||||
VKD3D_CFLAGS="-Wall -pipe"
|
||||
|
||||
VKD3D_CHECK_CFLAGS([-std=c99])
|
||||
VKD3D_CHECK_CFLAGS([-Wdeclaration-after-statement])
|
||||
VKD3D_CHECK_CFLAGS([-Wmissing-prototypes])
|
||||
VKD3D_CHECK_CFLAGS([-Wunused-but-set-parameter])
|
||||
VKD3D_CHECK_CFLAGS([-Wvla])
|
||||
fi
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
3
include/.gitignore
vendored
Normal file
3
include/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
config.h
|
||||
config.h.in
|
||||
stamp-h1
|
5
m4/.gitignore
vendored
Normal file
5
m4/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
libtool.m4
|
||||
ltoptions.m4
|
||||
ltsugar.m4
|
||||
ltversion.m4
|
||||
lt~obsolete.m4
|
11
m4/check-cflags.m4
Normal file
11
m4/check-cflags.m4
Normal file
@ -0,0 +1,11 @@
|
||||
dnl VKD3D_CHECK_CFLAGS(flags)
|
||||
AC_DEFUN([VKD3D_CHECK_CFLAGS],
|
||||
[AS_VAR_PUSHDEF([ac_var], ac_cv_cflags_[[$1]])dnl
|
||||
AC_CACHE_CHECK([whether the compiler supports $1], ac_var,
|
||||
[ac_vkd3d_check_cflags_saved=$CFLAGS
|
||||
CFLAGS="$CFLAGS $1 -Werror"
|
||||
AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(int argc, char **argv) { return 0; }]])],
|
||||
[AS_VAR_SET(ac_var, yes)], [AS_VAR_SET(ac_var, no)])
|
||||
CFLAGS=$ac_vkd3d_check_cflags_saved])
|
||||
AS_VAR_IF([ac_var], [yes], [VKD3D_CFLAGS="$VKD3D_CFLAGS $1"])dnl
|
||||
AS_VAR_POPDEF([ac_var])])
|
0
portable/.gitignore
vendored
Normal file
0
portable/.gitignore
vendored
Normal file
Loading…
Reference in New Issue
Block a user