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