removed srcpath
[libbear.git] / vars.mk
CommitLineData
6d8ae407
PG
1
2CXX_$P := ${G_CXX}
3CXXFLAGS_$P := ${G_CXXFLAGS}
4LNKFLAGS_$P := ${G_LNKFLAGS} -Wl,-rpath,libs/ -rdynamic
5LIBS_$P := ${G_LIBSDL} ${G_LIBGL} -lbear
6
7SRCSDIR_$P := ${CURDIR}${G_SRCSDIR}
8DEPSDIR_$P := ${CURDIR}${G_DEPSDIR}
9OBJSDIR_$P := ${CURDIR}${G_OBJSDIR}
10BINDIR_$P := ${CURDIR}${G_BINDIR}
11
12# HACK
13T_INCDIRS_$P := ${SRCSDIR_$P} # lib/inc/
14 INCFLAGS_$P := $(addprefix -I, ${T_INCDIRS_$P})
15T_INCDIRS_$P := # empty
16
17CFGDIRNAME_$P := configs/
18SRCCFGDIR_$P := ${CURDIR}${CFGDIRNAME_$P}
19DSTCFGDIR_$P := ${BINDIR_$P}${CFGDIRNAME_$P}
20
21CFGS_$P := # := start
22CFGS_$P += keys.cfg
23CFGS_$P := $(addprefix ${DSTCFGDIR_$P},${CFGS_$P})
24
25LIBSDIRNAME_$P := libs/
26SRCLIBSDIR_$P := ${CURDIR}${LIBSDIRNAME_$P}
27ifeq (${BUILD},WIN32)
28 DSTLIBSDIR_$P := ${BINDIR_$P}
29else
30 DSTLIBSDIR_$P := ${BINDIR_$P}${LIBSDIRNAME_$P}
31endif
32
33LIBSTXT_$P := # := start
34LIBSTXT_$P += COPYING-SDL
35LIBSTXT_$P += README-SDL
36LIBSTXT_$P += VERSION-SDL
37LIBSTXT_$P := $(addprefix ${DSTLIBSDIR_$P},${LIBSTXT_$P})
38
39LIBSCPY_$P := # := start
40ifeq (${BUILD},WIN32)
41 LIBSCPY_$P += SDL.dll
42 LIBSCPY_$P += bear.dll
43else
44 LIBSCPY_$P += libSDL-1.2.so.0
45 LIBSCPY_$P += libbear.so.0
46endif
47LIBSCPY_$P := $(addprefix ${DSTLIBSDIR_$P},${LIBSCPY_$P})
48
49SRCTXTDIR_$P := ${CURDIR}
50DSTTXTDIR_$P := ${BINDIR_$P}
51
52TXT_$P := # := start
53TXT_$P += COPYING
54TXT_$P := $(addprefix ${DSTTXTDIR_$P},${TXT_$P})
55
56ifeq (${BUILD},WIN32)
57 TARGETNAME_$P := run_physics.exe
58else
59 TARGETNAME_$P := run_physics
60endif
61TARGETTMP_$P := ${OBJSDIR_$P}${TARGETNAME_$P}
62TARGET_$P := ${BINDIR_$P}${TARGETNAME_$P}