Modification Makefile

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
torcs-ng 2008-09-14 23:32:07 +00:00
parent 8fb0873710
commit c76a2a1e5a
46 changed files with 57 additions and 57 deletions

View File

@ -18,29 +18,29 @@
# #### The Open Racing Car Simulator ####
ifndef TORCS_BASE
ifndef TORCS-NG_BASE
TORCS_BASE = $(shell pwd)
MAKE_DEFAULT = ${TORCS_BASE}/Make-default.mk
TORCS_RC = ${TORCS_BASE}/.torcs.rc
MAKE_DEFAULT = ${TORCS-NG_BASE}/Make-default.mk
TORCS_RC = ${TORCS-NG_BASE}/.torcs-ng.rc
-include Make-config
restart:
@echo "TORCS_BASE = ${TORCS_BASE}" > ${TORCS_RC}
@echo "MAKE_DEFAULT = ${MAKE_DEFAULT}" >> ${TORCS_RC}
${MAKE} TORCS_BASE=${TORCS_BASE} MAKE_DEFAULT=${MAKE_DEFAULT}
@echo "TORCS-NG_BASE = ${TORCS-NG_BASE}" > ${TORCS-NG_RC}
@echo "MAKE_DEFAULT = ${MAKE_DEFAULT}" >> ${TORCS-NG_RC}
${MAKE} TORCS_BASE=${TORCS-NG_BASE} MAKE_DEFAULT=${MAKE_DEFAULT}
endif
ifndef MAKE_DEFAULT
MAKE_DEFAULT = ${TORCS_BASE}/Make-default.mk
MAKE_DEFAULT = ${TORCS-NG_BASE}/Make-default.mk
-include Make-config
restart2:
${MAKE} TORCS_BASE=${TORCS_BASE} MAKE_DEFAULT=${MAKE_DEFAULT}
${MAKE} TORCS_BASE=${TORCS-NG_BASE} MAKE_DEFAULT=${MAKE_DEFAULT}
endif
@ -115,11 +115,11 @@ doc:
doxygen ${SOURCEBASE}/doc/torcsdoc.conf
tags:
rm -f ${TORCS_BASE}/TAGS
find ${TORCS_BASE}/src -name '*.h' -exec etags -a {} \;
rm -f ${TORCS-NG_BASE}/TAGS
find ${TORCS-NG_BASE}/src -name '*.h' -exec etags -a {} \;
find /usr/include/plib -name '*.h' -exec etags -a {} \;
find ${TORCS_BASE}/src -name '*.cpp' -exec etags -a {} \;
find ${TORCS_BASE}/src -name '*.c' -exec etags -a {} \;
find ${TORCS-NG_BASE}/src -name '*.cpp' -exec etags -a {} \;
find ${TORCS-NG_BASE}/src -name '*.c' -exec etags -a {} \;
setup_linux.sh: linuxsetup
@chmod +x setup_linux.sh

View File

@ -33,7 +33,7 @@ PKGSUBDIRS = interfaces libs linux modules windows tools drivers doc raceman
src_PKGFILES = Makefile
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -17,7 +17,7 @@
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -23,7 +23,7 @@ PKGSUBDIRS = $(SUBDIRS)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -21,7 +21,7 @@ EXPORTS = $(shell find * -maxdepth 0 -name '*.h' -print)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -30,7 +30,7 @@ PKGSUBDIRS = $(SUBDIRS)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -31,7 +31,7 @@ EXPORTS = client.h exitmenu.h
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -30,7 +30,7 @@ EXPORTS = confscreens.h driverconfig.h joystickconfig.h mouseconfig.h controlc
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -28,7 +28,7 @@ EXPDIR = include/learning
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -28,7 +28,7 @@ EXPDIR = include/tmath
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -28,7 +28,7 @@ EXPDIR = include
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -38,7 +38,7 @@ CONFIG = $(SHIP)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -28,7 +28,7 @@ EXPORTS = racescreens.h
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -28,7 +28,7 @@ EXPORTS = robottools.h
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -40,7 +40,7 @@ SHIP = params.dtd
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -53,7 +53,7 @@ CONFIG = screen.xml
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -34,7 +34,7 @@ PKGSUBDIRS = gennmtab
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -26,7 +26,7 @@ SOURCES = gennmtab.c
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -25,7 +25,7 @@ PKGSUBDIRS = track simu graphic telemetry
src_PKGFILES = Makefile
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -26,7 +26,7 @@ PKGSUBDIRS = $(SUBDIRS)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -36,7 +36,7 @@ CONFIG = $(SHIP)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -27,6 +27,6 @@ PKGSUBDIRS = $(SUBDIRS)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -45,7 +45,7 @@ PKGSUBDIRS = $(SUBDIRS)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -25,7 +25,7 @@ PKGSUBDIRS = $(SUBDIRS) $(EXPINCDIRS)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -23,7 +23,7 @@ EXPDIR = include/3D
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -23,7 +23,7 @@ PKGSUBDIRS = $(EXPINCDIRS)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -23,7 +23,7 @@ EXPDIR = include/SOLID
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -29,7 +29,7 @@ COMPILFLAGS = -DNDEBUG -Wno-deprecated
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -40,7 +40,7 @@ LIBS = -lplibsg -lplibul -L${EXPORTBASE}/lib -lsolid
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -28,7 +28,7 @@ SHIP = telemetry.sh
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -24,7 +24,7 @@ SOURCES = track.cpp trackitf.cpp trackutil.cpp track3.cpp track4.cpp
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -28,7 +28,7 @@ CONFIG = ${SHIP}
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))

View File

@ -25,7 +25,7 @@ PKGSUBDIRS = $(SUBDIRS)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -33,7 +33,7 @@ SOLIBS = -ltgf -lplibssg -lplibsg -lplibul -ltxml
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -24,7 +24,7 @@ SOURCES = mainnfs2ac.cpp
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -28,7 +28,7 @@ SOLIBS = -ltgf -ltxml
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -22,7 +22,7 @@ PKGSUBDIRS = $(SUBDIRS)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -28,6 +28,6 @@ SOLIBS = -lplibssg -lplibsg -lplibul -ltgf -ltgfclient -ltxml -lpng
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -33,7 +33,7 @@ SOLIBS = -ltgf -ltgfclient -lplibssg -lplibsg -lplibul -lrobottools -ltxm
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -20,7 +20,7 @@ PKGSUBDIRS = $(shell find * -maxdepth 0 -type d -print | grep -v CVS)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -19,7 +19,7 @@
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -18,7 +18,7 @@
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -18,7 +18,7 @@
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -20,7 +20,7 @@ PKGSUBDIRS = $(shell find * -maxdepth 0 -type d -print | grep -v CVS)
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -18,7 +18,7 @@
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}

View File

@ -19,7 +19,7 @@
src_PKGFILES = $(shell find * -maxdepth 0 -type f -print)
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS_BASE},,$(shell pwd))
src_PKGDIR = ${PACKAGE}-${VERSION}/$(subst ${TORCS-NG_BASE},,$(shell pwd))
include ${MAKE_DEFAULT}