finished changes to deps directory building
[physics.git] / rules.mk
CommitLineData
6d8ae407 1
6f4fcfee
PG
2${G_ALL_PHYSICS}: ${TARGET_$P} ${CFGS_$P} ${LIBSTXT_$P} ${LIBSCPY_$P} ${TXT_$P}
3${G_OBJS_PHYSICS}: ${L_OBJS_$P}
4${G_DEPS_PHYSICS}: ${L_DEPS_$P}
6d8ae407 5
6d8ae407 6
5dc2e2fa 7${TARGETTMP_$D}: ${BINDIR_$P}/${LIBSDIRNAME_$P}/${SONAME_${G_LIB}}
c569b5d1
PG
8
9
2d2d614e 10# rule to copy library lib into the working directory
389bf8fd 11${BINDIR_$P}/${LIBSDIRNAME_$P}/${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${SS_DIR}
c569b5d1 12 ${cmd-cp}
6d8ae407
PG
13
14# how to link the main target
389bf8fd 15${TARGETTMP_$P}: ${L_OBJS_$P} | $${SS_DIR}
6d8ae407
PG
16 ${cmd-link}
17
18# rule to copy tmp target to working directory
389bf8fd 19${TARGET_$P}: ${TARGETTMP_$P} | $${SS_DIR}
6d8ae407
PG
20 ${cmd-cp}
21
6d8ae407 22# rule to copy the config files into the working directory
389bf8fd 23${DSTCFGDIR_$P}/%: ${SRCCFGDIR_$P}/% | $${SS_DIR}
6d8ae407
PG
24 ${cmd-cp}
25
26# rule to copy the library files into the working directory
389bf8fd 27${DSTLIBSDIR_$P}/%: ${SRCLIBSDIR_$P}/% | $${SS_DIR}
6d8ae407
PG
28 ${cmd-cp}
29
30# rule to copy the text files into the working directory
389bf8fd 31${DSTTXTDIR_$P}/%: ${SRCTXTDIR_$P}/% | $${SS_DIR}
6d8ae407
PG
32 ${cmd-cp}
33
34# rule to make an object file from a .cpp
389bf8fd
PG
35${OBJSDIR_$P}/%.o: ${SRCSDIR_$P}/%.cpp | $${SS_DIR} $${call SS_DEPSDIR,$P}
36 ${cmd-cpp_to_obj_and_dep}
6d8ae407
PG
37
38
ccb31c84 39T := $P
9f459986 40 include ${F_CLEANRULES}
ccb31c84 41T :=
6d8ae407 42