1 2 SUBDIRS = 3 4 if BUILD_JVMTI_AGENT 5 SUBDIRS += jvmti 6 endif 7 8 if BUILD_JVMPI_AGENT 9 SUBDIRS += jvmpi 10 endif 11 12 INSTALL_EXEC_HOOK = 13 14 if CHECK_ACCOUNT 15 INSTALL_EXEC_HOOK += __install-exec-hook 16 endif 17 18 __install-exec-hook: 19 @getent passwd oprofile >/dev/null || ( \ 20 echo "****************************************************************" ; \ 21 echo "* WARNING:" ; \ 22 echo "* Create the 'oprofile' user account to enable profiling of JITed code." ; \ 23 echo "****************************************************************") ; 24 @getent group oprofile >/dev/null || ( \ 25 echo "****************************************************************" ; \ 26 echo "* WARNING:" ; \ 27 echo "* Create the 'oprofile' group to enable profiling of JITed code." ; \ 28 echo "****************************************************************") ; 29 @test -z `id -gn oprofile 2>/dev/null` || \ 30 test `id -gn oprofile 2>/dev/null` = "oprofile" || ( \ 31 echo "****************************************************************" ; \ 32 echo "* WARNING:" ; \ 33 echo "* The special user 'oprofile' must have the default group set to 'oprofile'." ; \ 34 echo "****************************************************************") ; 35 36 install-exec-hook: $(INSTALL_EXEC_HOOK) 37