|
|
AC_CHECK_LIB(Xrandr, XRRQueryVersion,,AC_MSG_ERROR([Can't find libXrandr. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) | AC_CHECK_LIB(Xrandr, XRRQueryVersion,,AC_MSG_ERROR([Can't find libXrandr. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) |
AC_CHECK_LIB(openal, alEnable,, AC_MSG_ERROR([Can't find AL/al.h. OpenAL can be found on http://www.openal.org/])) | AC_CHECK_LIB(openal, alEnable,, AC_MSG_ERROR([Can't find AL/al.h. OpenAL can be found on http://www.openal.org/])) |
AC_CHECK_LIB(alut, alutLoadWAVFile, | AC_CHECK_LIB(alut, alutLoadWAVFile, |
LDFLAGS="$LDFLAGS -lalut", |
LIBS="$LIBS -lalut", ) |
LDFLAGS="$LDFLAGS") |
|
| |
AC_CHECK_LIB(dl, dlopen) | AC_CHECK_LIB(dl, dlopen) |
AC_CHECK_FUNC(dlopen,,AC_MSG_ERROR([Can't find dlopen function. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) | AC_CHECK_FUNC(dlopen,,AC_MSG_ERROR([Can't find dlopen function. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) |
|
|
ifdef PROGRAM | ifdef PROGRAM |
| |
${PROGRAM}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a}) | ${PROGRAM}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a}) |
${CXX} ${OBJECTS} ${LDFLAGS} ${LIBS} ${SOLIBS} ${EXT_LIBS} -o $@ |
${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} |
| |
installprogram: ${PROGRAM} | installprogram: ${PROGRAM} |
@ createdir="${INSTLIBBASE}" ; \ | @ createdir="${INSTLIBBASE}" ; \ |
|
|
ifdef LOCALTOOLS | ifdef LOCALTOOLS |
| |
${LOCALTOOLS}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a}) | ${LOCALTOOLS}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a}) |
${CXX} ${OBJECTS} ${LDFLAGS} ${LIBS} ${EXT_LIBS} ${SOLIBS} -o $@ |
${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} |
| |
endif | endif |
| |
ifdef TOOLS | ifdef TOOLS |
| |
${TOOLS}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a}) | ${TOOLS}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a}) |
${CXX} ${OBJECTS} ${LDFLAGS} ${LIBS} ${EXT_LIBS} ${SOLIBS} -o $@ |
${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} |
| |
installtools: ${TOOLS} | installtools: ${TOOLS} |
@createdir="${INSTBINBASE}/${TOOLSDIR}" ; \ | @createdir="${INSTBINBASE}/${TOOLSDIR}" ; \ |
|
|
ifdef SOLIBRARY | ifdef SOLIBRARY |
| |
${SOLIBRARY}: ${OBJECTS} | ${SOLIBRARY}: ${OBJECTS} |
${CXX} -shared -o ${SOLIBRARY} ${OBJECTS} ${LDFLAGS} ${LIBSPATH} ${LIBS} ${DEBUG_LIBS} |
${CXX} ${CXXFLAGS} ${LDFLAGS} -shared -o ${SOLIBRARY} ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} |
@D=`pwd` ; \ | @D=`pwd` ; \ |
createdir="${EXPORTBASE}/lib" ; \ | createdir="${EXPORTBASE}/lib" ; \ |
$(mkinstalldirs) $$createdir ; \ | $(mkinstalldirs) $$createdir ; \ |
|
|
ifdef MODULE | ifdef MODULE |
| |
${MODULE}: ${OBJECTS} | ${MODULE}: ${OBJECTS} |
${CXX} -shared -o ${MODULE} ${OBJECTS} ${LDFLAGS} ${LIBSPATH} ${LIBS} |
${CXX} ${CXXFLAGS} ${LDFLAGS} -shared -o ${MODULE} ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} |
@D=`pwd` ; \ | @D=`pwd` ; \ |
createdir="${EXPORTBASE}/${MODULEDIR}" ; \ | createdir="${EXPORTBASE}/${MODULEDIR}" ; \ |
$(mkinstalldirs) $$createdir ; \ | $(mkinstalldirs) $$createdir ; \ |
|
|
SOURCES = entry.cpp mainmenu.cpp splash.cpp exitmenu.cpp \ | SOURCES = entry.cpp mainmenu.cpp splash.cpp exitmenu.cpp \ |
optionmenu.cpp | optionmenu.cpp |
| |
|
SOLIBS = -lconfscreens -lraceengine |
|
|
LIBS = -lplibssg -lplibsg -lplibul | LIBS = -lplibssg -lplibsg -lplibul |
| |
EXPDIR = include | EXPDIR = include |
|
|
| |
TOOLSUBDIRS = txml | TOOLSUBDIRS = txml |
| |
SUBDIRS = confscreens racescreens robottools txml tgf tgfclient client raceengineclient learning \ |
SUBDIRS = confscreens racescreens robottools txml tgf tgfclient raceengineclient client learning \ |
portability math | portability math |
| |
PKGSUBDIRS = $(SUBDIRS) | PKGSUBDIRS = $(SUBDIRS) |
|
|
SOURCES = singleplayer.cpp raceinit.cpp racemain.cpp racemanmenu.cpp racestate.cpp racegl.cpp \ | SOURCES = singleplayer.cpp raceinit.cpp racemain.cpp racemanmenu.cpp racestate.cpp racegl.cpp \ |
raceengine.cpp raceresults.cpp | raceengine.cpp raceresults.cpp |
| |
|
SOLIBS = -lconfscreens -lrobottools -lracescreens |
|
|
EXPDIR = include | EXPDIR = include |
| |
EXPORTS = singleplayer.h raceinit.h | EXPORTS = singleplayer.h raceinit.h |
|
|
profiler.cpp \ | profiler.cpp \ |
hash.cpp | hash.cpp |
| |
|
SOLIBS = -ltxml |
| |
EXPDIR = include | EXPDIR = include |
| |