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