[CMAKE]: Just convert the commands to lowercase
Its case insensitive, so why have it screaming? :) Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
a2b4f4fd6f
commit
0a65e24cae
|
@ -5,66 +5,66 @@ project(pahole)
|
|||
# the following are directories where stuff will be installed to
|
||||
set(__LIB "" CACHE STRING "Define suffix of directory name (32/64)" )
|
||||
|
||||
macro(_SET_FANCY _var _value _comment)
|
||||
macro(_set_fancy _var _value _comment)
|
||||
if (NOT DEFINED ${_var})
|
||||
set(${_var} ${_value})
|
||||
else (NOT DEFINED ${_var})
|
||||
set(${_var} "${${_var}}" CACHE PATH "${_comment}")
|
||||
endif (NOT DEFINED ${_var})
|
||||
endmacro(_SET_FANCY)
|
||||
endmacro(_set_fancy)
|
||||
|
||||
# where to look first for cmake modules,
|
||||
# before ${CMAKE_ROOT}/Modules/ is checked
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
|
||||
|
||||
SET(CMAKE_BUILD_TYPE debug)
|
||||
set(CMAKE_BUILD_TYPE debug)
|
||||
|
||||
find_package(DWARF REQUIRED)
|
||||
|
||||
_SET_FANCY(LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/usr/${__LIB}" "libdir")
|
||||
_set_fancy(LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/usr/${__LIB}" "libdir")
|
||||
|
||||
SET(dwarves_LIB_SRCS dwarves.c)
|
||||
ADD_LIBRARY(dwarves SHARED ${dwarves_LIB_SRCS})
|
||||
SET_TARGET_PROPERTIES(dwarves PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
set(dwarves_LIB_SRCS dwarves.c)
|
||||
add_library(dwarves SHARED ${dwarves_LIB_SRCS})
|
||||
set_target_properties(dwarves PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
SET(codiff_SRCS codiff.c)
|
||||
ADD_EXECUTABLE(codiff ${codiff_SRCS})
|
||||
TARGET_LINK_LIBRARIES(codiff dwarves ${DWARF_LIBRARIES})
|
||||
set(codiff_SRCS codiff.c)
|
||||
add_executable(codiff ${codiff_SRCS})
|
||||
target_link_libraries(codiff dwarves ${DWARF_LIBRARIES})
|
||||
|
||||
SET(ctracer_SRCS ctracer.c)
|
||||
ADD_EXECUTABLE(ctracer ${ctracer_SRCS})
|
||||
TARGET_LINK_LIBRARIES(ctracer dwarves ${DWARF_LIBRARIES})
|
||||
set(ctracer_SRCS ctracer.c)
|
||||
add_executable(ctracer ${ctracer_SRCS})
|
||||
target_link_libraries(ctracer dwarves ${DWARF_LIBRARIES})
|
||||
|
||||
SET(dtagnames_SRCS dtagnames.c)
|
||||
ADD_EXECUTABLE(dtagnames ${dtagnames_SRCS})
|
||||
TARGET_LINK_LIBRARIES(dtagnames dwarves ${DWARF_LIBRARIES})
|
||||
set(dtagnames_SRCS dtagnames.c)
|
||||
add_executable(dtagnames ${dtagnames_SRCS})
|
||||
target_link_libraries(dtagnames dwarves ${DWARF_LIBRARIES})
|
||||
|
||||
SET(pahole_SRCS pahole.c)
|
||||
ADD_EXECUTABLE(pahole ${pahole_SRCS})
|
||||
TARGET_LINK_LIBRARIES(pahole dwarves ${DWARF_LIBRARIES})
|
||||
set(pahole_SRCS pahole.c)
|
||||
add_executable(pahole ${pahole_SRCS})
|
||||
target_link_libraries(pahole dwarves ${DWARF_LIBRARIES})
|
||||
|
||||
SET(pdwtags_SRCS pdwtags.c)
|
||||
ADD_EXECUTABLE(pdwtags ${pdwtags_SRCS})
|
||||
TARGET_LINK_LIBRARIES(pdwtags dwarves ${DWARF_LIBRARIES})
|
||||
set(pdwtags_SRCS pdwtags.c)
|
||||
add_executable(pdwtags ${pdwtags_SRCS})
|
||||
target_link_libraries(pdwtags dwarves ${DWARF_LIBRARIES})
|
||||
|
||||
SET(pglobal_SRCS pglobal.c)
|
||||
ADD_EXECUTABLE(pglobal ${pglobal_SRCS})
|
||||
TARGET_LINK_LIBRARIES(pglobal dwarves ${DWARF_LIBRARIES})
|
||||
set(pglobal_SRCS pglobal.c)
|
||||
add_executable(pglobal ${pglobal_SRCS})
|
||||
target_link_libraries(pglobal dwarves ${DWARF_LIBRARIES})
|
||||
|
||||
SET(pfunct_SRCS pfunct.c )
|
||||
ADD_EXECUTABLE(pfunct ${pfunct_SRCS})
|
||||
TARGET_LINK_LIBRARIES(pfunct dwarves ${DWARF_LIBRARIES})
|
||||
set(pfunct_SRCS pfunct.c )
|
||||
add_executable(pfunct ${pfunct_SRCS})
|
||||
target_link_libraries(pfunct dwarves ${DWARF_LIBRARIES})
|
||||
|
||||
SET(prefcnt_SRCS prefcnt.c)
|
||||
ADD_EXECUTABLE(prefcnt ${prefcnt_SRCS})
|
||||
TARGET_LINK_LIBRARIES(prefcnt dwarves ${DWARF_LIBRARIES})
|
||||
set(prefcnt_SRCS prefcnt.c)
|
||||
add_executable(prefcnt ${prefcnt_SRCS})
|
||||
target_link_libraries(prefcnt dwarves ${DWARF_LIBRARIES})
|
||||
|
||||
INSTALL(TARGETS codiff ctracer dtagnames pahole pdwtags
|
||||
install(TARGETS codiff ctracer dtagnames pahole pdwtags
|
||||
pfunct pglobal prefcnt RUNTIME DESTINATION /usr/bin)
|
||||
INSTALL(TARGETS dwarves LIBRARY DESTINATION ${LIB_INSTALL_DIR})
|
||||
INSTALL(FILES dwarves.h DESTINATION /usr/include)
|
||||
INSTALL(FILES ostra/ostra-cg DESTINATION /usr/bin)
|
||||
INSTALL(FILES ostra/python/ostra.py DESTINATION ${LIB_INSTALL_DIR}/ctracer/python)
|
||||
INSTALL(FILES lib/Makefile lib/ctracer_jprobe.c
|
||||
install(TARGETS dwarves LIBRARY DESTINATION ${LIB_INSTALL_DIR})
|
||||
install(FILES dwarves.h DESTINATION /usr/include)
|
||||
install(FILES ostra/ostra-cg DESTINATION /usr/bin)
|
||||
install(FILES ostra/python/ostra.py DESTINATION ${LIB_INSTALL_DIR}/ctracer/python)
|
||||
install(FILES lib/Makefile lib/ctracer_jprobe.c
|
||||
lib/ctracer_relay.c lib/ctracer_relay.h
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ctracer)
|
||||
|
|
Loading…
Reference in New Issue