DIRNAME := ${T_DIRNAME}
D := ${DIRNAME}
P := ${DIRNAME}
-CURDIR := ${DIRNAME}/
+CURDIR := ${DIRNAME}
T_DIRNAME :=
-include ${CURDIR}${G_VARSMK}
+include ${CURDIR}/${G_VARSMK}
-include ${CURDIR}${G_LISTSMK}
+include ${CURDIR}/${G_LISTSMK}
-include ${SRCSDIR_$P}${G_DIRMK}
+include ${SRCSDIR_$P}/${G_DIRMK}
-include ${CURDIR}${G_TVARSMK}
+include ${CURDIR}/${G_TVARSMK}
-include ${CURDIR}${G_RULESMK}
+include ${CURDIR}/${G_RULESMK}
L_BLDDIRS_$P += ${DSTCFGDIR_$P}
L_BLDDIRS_$P += ${DSTLIBSDIR_$P}
${G_DEPS_PHYSICS}: ${L_DEPS_$P}
-${TARGETTMP_$D}: ${BINDIR_$P}${LIBSDIRNAME_$P}${SONAME_${G_LIB}}
+${TARGETTMP_$D}: ${BINDIR_$P}/${LIBSDIRNAME_$P}/${SONAME_${G_LIB}}
# rule to copy library lib into the working directory
-${BINDIR_$P}${LIBSDIRNAME_$P}${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${@D}
+${BINDIR_$P}/${LIBSDIRNAME_$P}/${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${@D}
${cmd-cp}
# how to link the main target
T_DIRNAME :=
-include ${CURDIR}${G_FILESMK}
-include $(addsuffix ${G_DIRMK},${NEWDIRS})
+include ${CURDIR}/${G_FILESMK}
+include $(addsuffix /${G_DIRMK},${NEWDIRS})
include ${F_STACKPOP}
################################################################################
-NEWSRCS := $(addprefix ${CURDIR},${NEWSRCS})
-NEWDIRS := $(addprefix ${CURDIR},${NEWDIRS})
+NEWSRCS := $(addprefix ${CURDIR}/,${NEWSRCS})
+NEWDIRS := $(addprefix ${CURDIR}/,${NEWDIRS})
# Append to lists
T_DIRNAME :=
-include ${CURDIR}${G_FILESMK}
-include $(addsuffix ${G_DIRMK},${NEWDIRS})
+include ${CURDIR}/${G_FILESMK}
+include $(addsuffix /${G_DIRMK},${NEWDIRS})
include ${F_STACKPOP}
################################################################################
-NEWSRCS := $(addprefix ${CURDIR},${NEWSRCS})
-NEWDIRS := $(addprefix ${CURDIR},${NEWDIRS})
+NEWSRCS := $(addprefix ${CURDIR}/,${NEWSRCS})
+NEWDIRS := $(addprefix ${CURDIR}/,${NEWDIRS})
# Append to lists
T_DIRNAME :=
-include ${CURDIR}${G_FILESMK}
-include $(addsuffix ${G_DIRMK},${NEWDIRS})
+include ${CURDIR}/${G_FILESMK}
+include $(addsuffix /${G_DIRMK},${NEWDIRS})
include ${F_STACKPOP}
################################################################################
-NEWSRCS := $(addprefix ${CURDIR},${NEWSRCS})
-NEWDIRS := $(addprefix ${CURDIR},${NEWDIRS})
+NEWSRCS := $(addprefix ${CURDIR}/,${NEWSRCS})
+NEWDIRS := $(addprefix ${CURDIR}/,${NEWDIRS})
# Append to lists
T_DIRNAME :=
-include ${CURDIR}${G_FILESMK}
-include $(addsuffix ${G_DIRMK},${NEWDIRS})
+include ${CURDIR}/${G_FILESMK}
+include $(addsuffix /${G_DIRMK},${NEWDIRS})
include ${F_STACKPOP}
################################################################################
-NEWSRCS := $(addprefix ${CURDIR},${NEWSRCS})
-NEWDIRS := $(addprefix ${CURDIR},${NEWDIRS})
+NEWSRCS := $(addprefix ${CURDIR}/,${NEWSRCS})
+NEWDIRS := $(addprefix ${CURDIR}/,${NEWDIRS})
# Append to lists
T_DIRNAME :=
-include ${CURDIR}${G_FILESMK}
-include $(addsuffix ${G_DIRMK},${NEWDIRS})
+include ${CURDIR}/${G_FILESMK}
+include $(addsuffix /${G_DIRMK},${NEWDIRS})
include ${F_STACKPOP}
NEWDIRS := # := start; empty
-NEWDIRS += Entities/
-NEWDIRS += GameStates/
-NEWDIRS += Effects/
-NEWDIRS += config/
-NEWDIRS += input/
-NEWDIRS += graphics/
+NEWDIRS += Entities
+NEWDIRS += GameStates
+NEWDIRS += Effects
+NEWDIRS += config
+NEWDIRS += input
+NEWDIRS += graphics
################################################################################
-NEWSRCS := $(addprefix ${CURDIR},${NEWSRCS})
-NEWDIRS := $(addprefix ${CURDIR},${NEWDIRS})
+NEWSRCS := $(addprefix ${CURDIR}/,${NEWSRCS})
+NEWDIRS := $(addprefix ${CURDIR}/,${NEWDIRS})
# Append to lists
T_DIRNAME :=
-include ${CURDIR}${G_FILESMK}
-include $(addsuffix ${G_DIRMK},${NEWDIRS})
+include ${CURDIR}/${G_FILESMK}
+include $(addsuffix /${G_DIRMK},${NEWDIRS})
include ${F_STACKPOP}
################################################################################
-NEWSRCS := $(addprefix ${CURDIR},${NEWSRCS})
-NEWDIRS := $(addprefix ${CURDIR},${NEWDIRS})
+NEWSRCS := $(addprefix ${CURDIR}/,${NEWSRCS})
+NEWDIRS := $(addprefix ${CURDIR}/,${NEWDIRS})
# Append to lists
T_DIRNAME :=
-include ${CURDIR}${G_FILESMK}
-include $(addsuffix ${G_DIRMK},${NEWDIRS})
+include ${CURDIR}/${G_FILESMK}
+include $(addsuffix /${G_DIRMK},${NEWDIRS})
include ${F_STACKPOP}
################################################################################
-NEWSRCS := $(addprefix ${CURDIR},${NEWSRCS})
-NEWDIRS := $(addprefix ${CURDIR},${NEWDIRS})
+NEWSRCS := $(addprefix ${CURDIR}/,${NEWSRCS})
+NEWDIRS := $(addprefix ${CURDIR}/,${NEWDIRS})
# Append to lists
LNKFLAGS_$P := ${G_LNKFLAGS} -Wl,-rpath,libs/ -rdynamic
LIBS_$P := ${G_LIBSDL} ${G_LIBGL}
-SRCSDIR_$P := ${CURDIR}${G_SRCSDIR}
-DEPSDIR_$P := ${CURDIR}${G_DEPSDIR}
-OBJSDIR_$P := ${CURDIR}${G_OBJSDIR}
-BINDIR_$P := ${CURDIR}${G_BINDIR}
+SRCSDIR_$P := ${CURDIR}/${G_SRCSDIR}
+DEPSDIR_$P := ${CURDIR}/${G_DEPSDIR}
+OBJSDIR_$P := ${CURDIR}/${G_OBJSDIR}
+BINDIR_$P := ${CURDIR}/${G_BINDIR}
# HACK
-T_INCDIRS_$P := ${SRCSDIR_$P} lib/include/
+T_INCDIRS_$P := ${SRCSDIR_$P} lib/include
INCFLAGS_$P := $(addprefix -I, ${T_INCDIRS_$P})
T_INCDIRS_$P := # empty
-CFGDIRNAME_$P := configs/
-SRCCFGDIR_$P := ${CURDIR}${CFGDIRNAME_$P}
-DSTCFGDIR_$P := ${BINDIR_$P}${CFGDIRNAME_$P}
+CFGDIRNAME_$P := configs
+SRCCFGDIR_$P := ${CURDIR}/${CFGDIRNAME_$P}
+DSTCFGDIR_$P := ${BINDIR_$P}/${CFGDIRNAME_$P}
CFGS_$P := # := start
CFGS_$P += keys.cfg
-CFGS_$P := $(addprefix ${DSTCFGDIR_$P},${CFGS_$P})
+CFGS_$P := $(addprefix ${DSTCFGDIR_$P}/,${CFGS_$P})
-LIBSDIRNAME_$P := libs/
-SRCLIBSDIR_$P := ${CURDIR}${LIBSDIRNAME_$P}
+LIBSDIRNAME_$P := libs
+SRCLIBSDIR_$P := ${CURDIR}/${LIBSDIRNAME_$P}
ifeq (${G_BUILD},${B_WIN32})
DSTLIBSDIR_$P := ${BINDIR_$P}
else
- DSTLIBSDIR_$P := ${BINDIR_$P}${LIBSDIRNAME_$P}
+ DSTLIBSDIR_$P := ${BINDIR_$P}/${LIBSDIRNAME_$P}
endif
LIBSTXT_$P := # := start
LIBSTXT_$P += COPYING-SDL
LIBSTXT_$P += README-SDL
LIBSTXT_$P += VERSION-SDL
-LIBSTXT_$P := $(addprefix ${DSTLIBSDIR_$P},${LIBSTXT_$P})
+LIBSTXT_$P := $(addprefix ${DSTLIBSDIR_$P}/,${LIBSTXT_$P})
LIBSCPY_$P := # := start
ifeq (${G_BUILD},${B_WIN32})
else
LIBSCPY_$P += libSDL-1.2.so.0
endif
-LIBSCPY_$P := $(addprefix ${DSTLIBSDIR_$P},${LIBSCPY_$P})
+LIBSCPY_$P := $(addprefix ${DSTLIBSDIR_$P}/,${LIBSCPY_$P})
SRCTXTDIR_$P := ${CURDIR}
DSTTXTDIR_$P := ${BINDIR_$P}
TXT_$P := # := start
TXT_$P += COPYING
-TXT_$P := $(addprefix ${DSTTXTDIR_$P},${TXT_$P})
+TXT_$P := $(addprefix ${DSTTXTDIR_$P}/,${TXT_$P})
ifeq (${G_BUILD},${B_WIN32})
TARGETNAME_$P := run_physics.exe
else
TARGETNAME_$P := run_physics
endif
-TARGETTMP_$P := ${OBJSDIR_$P}${TARGETNAME_$P}
-TARGET_$P := ${BINDIR_$P}${TARGETNAME_$P}
+TARGETTMP_$P := ${OBJSDIR_$P}/${TARGETNAME_$P}
+TARGET_$P := ${BINDIR_$P}/${TARGETNAME_$P}