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 | |
c569b5d1 | 5 | LIBS_$P := ${G_LIBSDL} ${G_LIBGL} |
6d8ae407 PG |
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 | |
481f4f31 | 13 | T_INCDIRS_$P := ${SRCSDIR_$P} lib/include/ |
6d8ae407 PG |
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} | |
30bdde35 | 27 | ifeq (${G_BUILD},${B_WIN32}) |
6d8ae407 PG |
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 | |
30bdde35 | 40 | ifeq (${G_BUILD},${B_WIN32}) |
6d8ae407 | 41 | LIBSCPY_$P += SDL.dll |
6d8ae407 PG |
42 | else |
43 | LIBSCPY_$P += libSDL-1.2.so.0 | |
6d8ae407 PG |
44 | endif |
45 | LIBSCPY_$P := $(addprefix ${DSTLIBSDIR_$P},${LIBSCPY_$P}) | |
46 | ||
47 | SRCTXTDIR_$P := ${CURDIR} | |
48 | DSTTXTDIR_$P := ${BINDIR_$P} | |
49 | ||
50 | TXT_$P := # := start | |
51 | TXT_$P += COPYING | |
52 | TXT_$P := $(addprefix ${DSTTXTDIR_$P},${TXT_$P}) | |
53 | ||
30bdde35 | 54 | ifeq (${G_BUILD},${B_WIN32}) |
6d8ae407 PG |
55 | TARGETNAME_$P := run_physics.exe |
56 | else | |
57 | TARGETNAME_$P := run_physics | |
58 | endif | |
59 | TARGETTMP_$P := ${OBJSDIR_$P}${TARGETNAME_$P} | |
60 | TARGET_$P := ${BINDIR_$P}${TARGETNAME_$P} |