change some make varibles to be lower case and hence tied to the directory name
[libbear.git] / lib / rules.mk
1
2 # HACK install
3 install:
4         ${INSTALL} -d ${includedir}/bear
5         ${INSTALL} -t ${includedir}/bear inc/*
6         ln -sfn ${REALNAME} ${libdir}/${LINKERNAME}
7         ln -sfn ${REALNAME} ${libdir}/${SONAME}
8         ${INSTALL} -t ${libdir} ${BINDIR}${REALNAME}
9
10 # HACK uninstall
11 uninstall:
12         rm -rf /usr/include/bear
13         rm /usr/lib/${REALNAME}
14         rm /usr/lib/${LINKERNAME}
15         rm /usr/lib/${SONAME}
16
17
18 ${G_ALL_$P}:  ${TARGET_$P}
19 ${G_OBJS_$P}: ${L_OBJS_$P}
20 ${G_DEPS_$P}: ${L_DEPS_$P}
21
22
23 # how to link the main target
24 ${TARGETTMP_$P}: ${L_OBJS_$P} | $${SS_DIR}
25         ${cmd-link}
26
27 # rule to copy tmp target to working directory
28 ${TARGET_$P}: ${TARGETTMP_$P} | $${SS_DIR}
29         ${cmd-cp}
30
31 # rule to make an object file from a .cpp
32 ${OBJSDIR_$P}/%.o: ${SRCSDIR_$P}/%.cpp | $${SS_DIR} $${call SS_DEPSDIR,$P}
33         ${cmd-cpp_to_obj_and_dep}
34
35
36 T := $P
37     include ${F_CLEANRULES}
38 T :=
39