mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-01-25 18:10:40 +01:00
initial autoconf/automake support =)
This commit is contained in:
parent
a98cfffb0d
commit
ebfdcb7ef9
0
src/native/AUTHORS
Normal file
0
src/native/AUTHORS
Normal file
0
src/native/COPYING
Normal file
0
src/native/COPYING
Normal file
0
src/native/ChangeLog
Normal file
0
src/native/ChangeLog
Normal file
0
src/native/INSTALL
Normal file
0
src/native/INSTALL
Normal file
17
src/native/Makefile.am
Normal file
17
src/native/Makefile.am
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
SUBDIRS = common linux
|
||||
|
||||
lib_LTLIBRARIES = liblwjgl.la
|
||||
|
||||
|
||||
#liblwjgl_la_LDFLAGS = \
|
||||
# -release $(LT_RELEASE) \
|
||||
# -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
|
||||
liblwjgl_la_SOURCES = \
|
||||
dummy.c
|
||||
liblwjgl_la_CPPFLAGS = -D_DEBUG
|
||||
liblwjgl_la_LIBADD = \
|
||||
common/libcommon.la \
|
||||
linux/liblinux.la
|
||||
liblwjgl_la_DEPENDENCIES = \
|
||||
common/libcommon.la \
|
||||
linux/liblinux.la
|
||||
0
src/native/NEWS
Normal file
0
src/native/NEWS
Normal file
0
src/native/README
Normal file
0
src/native/README
Normal file
4024
src/native/acinclude.m4
Normal file
4024
src/native/acinclude.m4
Normal file
File diff suppressed because it is too large
Load diff
4037
src/native/aclocal.m4
vendored
Normal file
4037
src/native/aclocal.m4
vendored
Normal file
File diff suppressed because it is too large
Load diff
8
src/native/autogen.sh
Executable file
8
src/native/autogen.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
WANT_AUTOCONF_2_5=1
|
||||
WANT_AUTOMAKE_1_5=1
|
||||
|
||||
autoheader linux
|
||||
mv aclocal.m4 acinclude.m4
|
||||
aclocal
|
||||
automake --foreign --include-deps --add-missing --copy
|
||||
autoconf
|
||||
71
src/native/common/Makefile.am
Normal file
71
src/native/common/Makefile.am
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
noinst_LTLIBRARIES = libcommon.la
|
||||
|
||||
libcommon_la_SOURCES = $(COMMON)
|
||||
liblwjgl_la_CPPFLAGS = -D_DEBUG
|
||||
|
||||
COMMON = \
|
||||
extal.c \
|
||||
extal.h \
|
||||
extgl.c \
|
||||
extgl.h \
|
||||
org_lwjgl_Display.h \
|
||||
org_lwjgl_Sys.h \
|
||||
org_lwjgl_input_GamePad.h \
|
||||
org_lwjgl_input_Joystick.h \
|
||||
org_lwjgl_input_Keyboard.h \
|
||||
org_lwjgl_input_Mouse.h \
|
||||
MatrixOpCommon.cpp \
|
||||
MatrixOpCommon.h \
|
||||
org_lwjgl_Math.cpp \
|
||||
org_lwjgl_Math.h \
|
||||
org_lwjgl_Math_MatrixOpAdd_MatrixOpDirect.cpp \
|
||||
org_lwjgl_Math_MatrixOpAdd_MatrixOpDirect.h \
|
||||
org_lwjgl_Math_MatrixOpAdd_MatrixOpSafe.cpp \
|
||||
org_lwjgl_Math_MatrixOpAdd_MatrixOpSafe.h \
|
||||
org_lwjgl_Math_MatrixOpCopy_MatrixOpDirect.cpp \
|
||||
org_lwjgl_Math_MatrixOpCopy_MatrixOpDirect.h \
|
||||
org_lwjgl_Math_MatrixOpCopy_MatrixOpSafe.cpp \
|
||||
org_lwjgl_Math_MatrixOpCopy_MatrixOpSafe.h \
|
||||
org_lwjgl_Math_MatrixOpInvert_MatrixOpDirect.cpp \
|
||||
org_lwjgl_Math_MatrixOpInvert_MatrixOpDirect.h \
|
||||
org_lwjgl_Math_MatrixOpInvert_MatrixOpSafe.cpp \
|
||||
org_lwjgl_Math_MatrixOpInvert_MatrixOpSafe.h \
|
||||
org_lwjgl_Math_MatrixOpMultiply_MatrixOpDirect.cpp \
|
||||
org_lwjgl_Math_MatrixOpMultiply_MatrixOpDirect.h \
|
||||
org_lwjgl_Math_MatrixOpMultiply_MatrixOpSafe.cpp \
|
||||
org_lwjgl_Math_MatrixOpMultiply_MatrixOpSafe.h \
|
||||
org_lwjgl_Math_MatrixOpNegate_MatrixOpDirect.cpp \
|
||||
org_lwjgl_Math_MatrixOpNegate_MatrixOpDirect.h \
|
||||
org_lwjgl_Math_MatrixOpNegate_MatrixOpSafe.cpp \
|
||||
org_lwjgl_Math_MatrixOpNegate_MatrixOpSafe.h \
|
||||
org_lwjgl_Math_MatrixOpNormalise_MatrixOpDirect.cpp \
|
||||
org_lwjgl_Math_MatrixOpNormalise_MatrixOpDirect.h \
|
||||
org_lwjgl_Math_MatrixOpNormalise_MatrixOpSafe.cpp \
|
||||
org_lwjgl_Math_MatrixOpNormalise_MatrixOpSafe.h \
|
||||
org_lwjgl_Math_MatrixOpSubtract_MatrixOpDirect.cpp \
|
||||
org_lwjgl_Math_MatrixOpSubtract_MatrixOpDirect.h \
|
||||
org_lwjgl_Math_MatrixOpSubtract_MatrixOpSafe.cpp \
|
||||
org_lwjgl_Math_MatrixOpSubtract_MatrixOpSafe.h \
|
||||
org_lwjgl_openal_ALC.cpp \
|
||||
org_lwjgl_openal_ALC.h \
|
||||
org_lwjgl_openal_ALUT.cpp \
|
||||
org_lwjgl_openal_ALUT.h \
|
||||
org_lwjgl_openal_BaseAL.cpp \
|
||||
org_lwjgl_openal_BaseAL.h \
|
||||
org_lwjgl_openal_CoreAL.cpp \
|
||||
org_lwjgl_openal_CoreAL.h \
|
||||
org_lwjgl_openal_eax_BaseEAX.cpp \
|
||||
org_lwjgl_openal_eax_BaseEAX.h \
|
||||
org_lwjgl_openal_eax_CoreEAX.cpp \
|
||||
org_lwjgl_openal_eax_CoreEAX.h \
|
||||
org_lwjgl_openal_eax_EAXBufferProperties.cpp \
|
||||
org_lwjgl_openal_eax_EAXBufferProperties.h \
|
||||
org_lwjgl_openal_eax_EAXListenerProperties.cpp \
|
||||
org_lwjgl_openal_eax_EAXListenerProperties.h \
|
||||
org_lwjgl_opengl_CoreGL.cpp \
|
||||
org_lwjgl_opengl_CoreGL.h \
|
||||
org_lwjgl_opengl_GL.cpp \
|
||||
org_lwjgl_opengl_GL.h \
|
||||
org_lwjgl_opengl_GLU.cpp \
|
||||
org_lwjgl_opengl_GLU.h
|
||||
|
||||
73
src/native/config.h.in
Normal file
73
src/native/config.h.in
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
/* config.h.in. Generated from configure.in by autoheader. */
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#undef HAVE_DLFCN_H
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the `GL' library (-lGL). */
|
||||
#undef HAVE_LIBGL
|
||||
|
||||
/* Define to 1 if you have the `GLU' library (-lGLU). */
|
||||
#undef HAVE_LIBGLU
|
||||
|
||||
/* Define to 1 if you have the `openal' library (-lopenal). */
|
||||
#undef HAVE_LIBOPENAL
|
||||
|
||||
/* Define to 1 if you have the `X11' library (-lX11). */
|
||||
#undef HAVE_LIBX11
|
||||
|
||||
/* Define to 1 if you have the `Xext' library (-lXext). */
|
||||
#undef HAVE_LIBXEXT
|
||||
|
||||
/* Define to 1 if you have the `Xxf86vm' library (-lXxf86vm). */
|
||||
#undef HAVE_LIBXXF86VM
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
80
src/native/configure.in
Normal file
80
src/native/configure.in
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(acinclude.m4)
|
||||
|
||||
dnl These should be changed =)
|
||||
LWJGL_MAJOR_VERSION=0
|
||||
LWJGL_MINOR_VERSION=0
|
||||
LWJGL_MICRO_VERSION=0
|
||||
LWJGL_INTERFACE_AGE=1
|
||||
LWJGL_BINARY_AGE=1
|
||||
LWJGL_VERSION=$LWJGL_MAJOR_VERSION.$LWJGL_MINOR_VERSION.$LWJGL_MICRO_VERSION
|
||||
|
||||
AC_SUBST(LWJGL_MAJOR_VERSION)
|
||||
AC_SUBST(LWJGL_MINOR_VERSION)
|
||||
AC_SUBST(LWJGL_MICRO_VERSION)
|
||||
AC_SUBST(LWJGL_INTERFACE_AGE)
|
||||
AC_SUBST(LWJGL_BINARY_AGE)
|
||||
AC_SUBST(LWJGL_VERSION)
|
||||
|
||||
# libtool versioning
|
||||
LT_RELEASE=$LWJGL_MAJOR_VERSION.$LWJGL_MINOR_VERSION
|
||||
LT_CURRENT=`expr $LWJGL_MICRO_VERSION - $LWJGL_INTERFACE_AGE`
|
||||
LT_REVISION=$LWJGL_INTERFACE_AGE
|
||||
LT_AGE=`expr $LWJGL_BINARY_AGE - $LWJGL_INTERFACE_AGE`
|
||||
|
||||
AC_SUBST(LT_RELEASE)
|
||||
AC_SUBST(LT_CURRENT)
|
||||
AC_SUBST(LT_REVISION)
|
||||
AC_SUBST(LT_AGE)
|
||||
|
||||
|
||||
LIBS='-L/usr/X11R6/lib'
|
||||
|
||||
AC_CONFIG_AUX_DIR(admin)
|
||||
|
||||
AC_CONFIG_SRCDIR(common/org_lwjgl_opengl_CoreGL.cpp)
|
||||
|
||||
AM_INIT_AUTOMAKE(lwjgl, $LWJGL_VERSION)
|
||||
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
dnl Checks for programs.
|
||||
AM_PROG_LIBTOOL
|
||||
AC_PROG_MAKE_SET
|
||||
AC_PROG_CC
|
||||
AC_PROG_CPP
|
||||
AC_PROG_CXX
|
||||
AC_PROG_RANLIB
|
||||
|
||||
|
||||
AC_MSG_CHECKING(for JAVA_HOME)
|
||||
if test "x$JAVA_HOME" = x; then
|
||||
AC_MSG_ERROR([*** Please set the JAVA_HOME environment variable ])
|
||||
else
|
||||
AC_MSG_RESULT($JAVA_HOME)
|
||||
JAVA_HOME="$JAVA_HOME"
|
||||
CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
|
||||
CFLAGS="$CFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
|
||||
fi
|
||||
|
||||
dnl Checks for libraries.
|
||||
dnl Replace `main' with a function in -lGL:
|
||||
AC_CHECK_LIB(GL, main,, AC_MSG_ERROR(GL is required))
|
||||
dnl Replace `main' with a function in -lGLU:
|
||||
AC_CHECK_LIB(GLU, main,, AC_MSG_ERROR(GLU is required))
|
||||
dnl Replace `main' with a function in -lX11:
|
||||
AC_CHECK_LIB(X11, main,, AC_MSG_ERROR(X11 is required))
|
||||
dnl Replace `main' with a function in -lXext:
|
||||
AC_CHECK_LIB(Xext, main,, AC_MSG_ERROR(Xext is required))
|
||||
dnl Replace `main' with a function in -lXxf86vm:
|
||||
AC_CHECK_LIB(Xxf86vm, main,, AC_MSG_ERROR(Xxf86vm is required))
|
||||
dnl Replace `main' with a function in -lopenal:
|
||||
AC_CHECK_LIB(openal, main,, AC_MSG_ERROR(openal is required))
|
||||
|
||||
dnl Checks for header files.
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
|
||||
dnl Checks for library functions.
|
||||
|
||||
AC_OUTPUT([Makefile common/Makefile linux/Makefile])
|
||||
4
src/native/dummy.c
Normal file
4
src/native/dummy.c
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/* This is needed for automake, so that it can build an empty archive */
|
||||
|
||||
int pointless_symbol_so_the_archive_doesnt_look_empty;
|
||||
|
||||
15
src/native/linux/Makefile.am
Normal file
15
src/native/linux/Makefile.am
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
noinst_LTLIBRARIES = liblinux.la
|
||||
|
||||
liblinux_la_SOURCES = $(NATIVE)
|
||||
INCLUDES = -I../common
|
||||
|
||||
NATIVE = \
|
||||
org_lwjgl_Display.cpp \
|
||||
org_lwjgl_Sys.cpp \
|
||||
org_lwjgl_input_GamePad.cpp \
|
||||
org_lwjgl_input_Joystick.cpp \
|
||||
org_lwjgl_input_Keyboard.cpp \
|
||||
org_lwjgl_input_Mouse.cpp \
|
||||
org_lwjgl_opengl_BaseGL.cpp
|
||||
|
||||
|
||||
1
src/native/stamp-h.in
Normal file
1
src/native/stamp-h.in
Normal file
|
|
@ -0,0 +1 @@
|
|||
timestamp
|
||||
2
src/native/subdirs
Normal file
2
src/native/subdirs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
common
|
||||
linux
|
||||
Loading…
Reference in a new issue