1############################################################################## 2# 3# file : Makefile 4# created : Mon Dec 11 22:30:53 CET 2000 5# copyright : (C) 2000 by Eric Espié 6# email : Eric.Espie@torcs.org 7# version : $Id: Makefile,v 1.29.2.1 2008/09/03 21:49:41 berniw Exp $ 8# 9############################################################################## 10# 11# This program is free software; you can redistribute it and/or modify 12# it under the terms of the GNU General Public License as published by 13# the Free Software Foundation; either version 2 of the License, or 14# (at your option) any later version. 15# 16############################################################################## 17 18 19# #### The Open Racing Car Simulator #### 20 21ifndef TORCS_BASE 22 23TORCS_BASE = $(shell pwd) 24MAKE_DEFAULT = ${TORCS_BASE}/Make-default.mk 25TORCS_RC = ${TORCS_BASE}/.torcs.rc 26 27-include Make-config 28 29restart: 30 @echo "TORCS_BASE = ${TORCS_BASE}" > ${TORCS_RC} 31 @echo "MAKE_DEFAULT = ${MAKE_DEFAULT}" >> ${TORCS_RC} 32 ${MAKE} TORCS_BASE=${TORCS_BASE} MAKE_DEFAULT=${MAKE_DEFAULT} 33 34endif 35 36ifndef MAKE_DEFAULT 37 38MAKE_DEFAULT = ${TORCS_BASE}/Make-default.mk 39 40-include Make-config 41 42restart2: 43 ${MAKE} TORCS_BASE=${TORCS_BASE} MAKE_DEFAULT=${MAKE_DEFAULT} 44 45endif 46 47PKGLIST = src \ 48 src-robots-base \ 49 data \ 50 data-cars-extra \ 51 data-cars-Patwo-Design \ 52 data-cars-kcendra-gt \ 53 data-cars-kcendra-sport \ 54 data-cars-kcendra-roadsters \ 55 data-tracks-road \ 56 data-tracks-oval \ 57 data-tracks-dirt \ 58 data-devel 59 60DATASUBDIRS = data 61 62SHIPSUBDIRS = src 63 64SHIPEXECSUBDIRS = src 65 66EXPINCDIRS = src 67 68TOOLSUBDIRS = src 69 70SUBDIRS = src 71 72DATADIR = . 73 74DATA = Ticon.png Ticon.ico tux.png logo-skinner.png 75 76SHIPEXECDIR = . 77 78SHIPEXEC = setup_linux.sh 79 80PKGSUBDIRS = src data 81 82src_PKGFILES = $(shell find * -maxdepth 0 -type f -print | grep -v TAGS | grep -v torcstune.jar) 83 84src_PKGDIR = ${PACKAGE}-${VERSION} 85 86-include ${MAKE_DEFAULT} 87 88Make-config: configure Make-config.in 89 rm -f config.status config.log config.cache 90 ./configure 91 rm -f config.status config.log config.cache 92 93configure: configure.in config.h.in aclocal.m4 94 rm -f config.status config.log config.cache 95 autoheader 96 autoconf 97 98aclocal.m4: acinclude.m4 99 aclocal 100 101distclean: clean 102 rm -f config.status config.log config.cache 103 rm -f setup_linux.sh 104 rm -rf ${EXPORTBASE} 105 rm -rf ${PACKAGESBASE}/* 106 rm -rf ${SPECFILESBASE}/* 107 108cleanconfig: clean 109 rm -f config.status config.log config.cache 110 rm -f Make-config configure aclocal.m4 111 112doc: 113 rm -rf ${DOCBASE}/manual/api/*.html 114 mkdir -p ${DOCBASE}/manual/api 115 doxygen ${SOURCEBASE}/doc/torcsdoc.conf 116 117tags: 118 rm -f ${TORCS_BASE}/TAGS 119 find ${TORCS_BASE}/src -name '*.h' -exec etags -a {} \; 120 find /usr/include/plib -name '*.h' -exec etags -a {} \; 121 find ${TORCS_BASE}/src -name '*.cpp' -exec etags -a {} \; 122 find ${TORCS_BASE}/src -name '*.c' -exec etags -a {} \; 123 124setup_linux.sh: linuxsetup 125 @chmod +x setup_linux.sh 126