changed phony make targets for projects to be suffixies of 'all'
[physics.git] / rules.mk
CommitLineData
6d8ae407
PG
1
2# HACK
7d8057c3
PG
3.PHONY: all-physics objs-physics deps-physics
4all-physics: ${TARGET_$P} ${CFGS_$P} ${LIBSTXT_$P} ${LIBSCPY_$P} ${TXT_$P}
eebbdf80
PG
5objs-physics: ${L_OBJS_$P}
6deps-physics: ${L_DEPS_$P}
7
8# HACK
7d8057c3 9all: all-physics
6d8ae407 10
6d8ae407 11
2d2d614e 12${TARGETTMP_$D}: ${BINDIR_$P}${LIBSDIRNAME_$P}${SONAME_${G_LIB}}
c569b5d1
PG
13
14
2d2d614e
PG
15# rule to copy library lib into the working directory
16${BINDIR_$P}${LIBSDIRNAME_$P}${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${@D}
c569b5d1 17 ${cmd-cp}
6d8ae407
PG
18
19# how to link the main target
20${TARGETTMP_$P}: ${L_OBJS_$P} | $${@D}
21 ${cmd-link}
22
23# rule to copy tmp target to working directory
24${TARGET_$P}: ${TARGETTMP_$P} | $${@D}
25 ${cmd-cp}
26
6d8ae407 27# rule to copy the config files into the working directory
1c05c702 28${DSTCFGDIR_$P}%: ${SRCCFGDIR_$P}% | $${@D}
6d8ae407
PG
29 ${cmd-cp}
30
31# rule to copy the library files into the working directory
1c05c702 32${DSTLIBSDIR_$P}%: ${SRCLIBSDIR_$P}% | $${@D}
6d8ae407
PG
33 ${cmd-cp}
34
35# rule to copy the text files into the working directory
1c05c702 36${DSTTXTDIR_$P}%: ${SRCTXTDIR_$P}% | $${@D}
6d8ae407
PG
37 ${cmd-cp}
38
39# rule to make an object file from a .cpp
40${OBJSDIR_$P}%.o: ${SRCSDIR_$P}%.cpp | $${@D}
41 ${cmd-cpptoobj}
42
43# rule to make a depend file from a .cpp
44${DEPSDIR_$P}%.d: ${SRCSDIR_$P}%.cpp | $${@D}
45 ${cmd-cpptodep}
46
47
ccb31c84 48T := $P
9f459986 49 include ${F_CLEANRULES}
ccb31c84 50T :=
6d8ae407 51