56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
AC_INIT([HelloWorld], [0.1], [your-email@example.com])
|
|
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
|
|
AC_PROG_CC
|
|
AX_CHECK_COMPILE_FLAG([-std=c11], [CFLAGS="$CFLAGS -std=c11"])
|
|
|
|
AC_CHECK_HEADERS(
|
|
[raylib.h],
|
|
,
|
|
AC_MSG_ERROR([raylib.h not found please install raylib])
|
|
)
|
|
|
|
AC_CHECK_LIB(
|
|
[raylib],
|
|
[InitWindow],
|
|
[RAYLIB_LIBS="-lraylib"],
|
|
AC_MSG_ERROR([libraylib not found please install raylib])
|
|
)
|
|
|
|
preserved_CFLAGS="$CFLAGS"
|
|
CFLAGS="$CFLAGS -I$srcdir/external/unity/src"
|
|
AC_CHECK_HEADERS(
|
|
[unity.h],
|
|
UNITY_INCLUDES="-I$srcdir/external/unity/src",
|
|
AC_MSG_ERROR([unity.h not found please initialize submodules with `git submodule update --init --recursive`])
|
|
)
|
|
CFLAGS="$preserved_CFLAGS"
|
|
|
|
preserved_CFLAGS="$CFLAGS"
|
|
CFLAGS="$CFLAGS -I$srcdir/external/cexception/lib"
|
|
AC_CHECK_HEADERS(
|
|
[CException.h],
|
|
CEXCEPTION_INCLUDES="-I$srcdir/external/cexception/lib",
|
|
AC_MSG_ERROR([CException.h not found please initialize submodules with `git submodule update --init --recursive`])
|
|
)
|
|
CFLAGS="$preserved_CFLAGS"
|
|
|
|
AC_SUBST(RAYLIB_LIBS)
|
|
AC_SUBST(UNITY_INCLUDES)
|
|
AC_SUBST(CEXCEPTION_INCLUDES)
|
|
|
|
AC_PROG_RANLIB
|
|
AM_PROG_AR
|
|
|
|
DX_HTML_FEATURE(ON)
|
|
DX_DOT_FEATURE(ON)
|
|
DX_PDF_FEATURE(ON)
|
|
DX_PS_FEATURE(OFF)
|
|
DX_INIT_DOXYGEN(cnpemu, Doxyfile)
|
|
|
|
AC_CONFIG_LINKS([6502_functional_test.bin:external/6502_65C02_functional_tests/bin_files/6502_functional_test.bin])
|
|
|
|
AC_CONFIG_SRCDIR([src])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
AC_CONFIG_FILES([Makefile Doxyfile])
|
|
AC_OUTPUT
|