Skip to content
Snippets Groups Projects
Commit f64a8253 authored by Steven Murray's avatar Steven Murray
Browse files

Added build rules for tplabel

Added the build rules for libcastorrmc.so
Added the build rules for mounttape-nostk
Added the build rules for rlstape-nostk
parent 470e6de7
Branches
Tags
No related merge requests found
......@@ -73,6 +73,7 @@ set_property ( DIRECTORY PROPERTY COMPILE_DEFINITIONS _LARGEFILE64_SOURCE)
add_subdirectory (common)
add_subdirectory (dlf)
add_subdirectory (rmc)
add_subdirectory (tape)
add_subdirectory (upv)
add_subdirectory (vdqm)
......
#
# rmc/CMakeLists.txt
#
# This file is part of the Castor project.
# See http://castor.web.cern.ch/castor
#
# Copyright (C) 2003 CERN
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#
# Steven.Murray@cern.ch
#
cmake_minimum_required (VERSION 2.6)
include_directories ("..")
include_directories ("../h")
set (RMC_LIB_SRC_FILES rmc_dismount.c rmc_errmsg.c rmc_export.c
rmc_find_cartridge.c rmc_get_geometry.c rmc_import.c rmc_mount.c
rmc_read_elem_status.c send2rmc.c)
add_library (castorrmc SHARED ${RMC_LIB_SRC_FILES})
set_target_properties (castorrmc
PROPERTIES SOVERSION ${MAJOR_CASTOR_VERSION})
target_link_libraries (castorrmc castorcommon)
install (TARGETS castorrmc DESTINATION ${CASTOR_DEST_LIB_DIR})
......@@ -66,8 +66,29 @@ target_link_libraries(confdrive castorcommon castortape castorvdqm)
install (TARGETS confdrive DESTINATION ${CASTOR_DEST_BIN_DIR})
set (POSOVL_SRC_FILES posovl.c buildhdrlbl.c builduhl.c buildvollbl.c
ebc2asc.c getdrvstatus.c inquiry.c locate.c posittape.c readlbl.c rwndtape.c
send2tpd.c sendrep.c skiptape.c tperror.c tplogit.c usrmsg.c)
ebc2asc.c getdrvstatus.c inquiry.c locate.c posittape.c readlbl.c rwndtape.c
send2tpd.c sendrep.c skiptape.c tperror.c tplogit.c usrmsg.c)
add_executable(posovl ${POSOVL_SRC_FILES})
target_link_libraries(posovl castorcommon castortape)
install (TARGETS posovl DESTINATION ${CASTOR_DEST_BIN_DIR})
set (TPLABEL_SRC_FILES tplabel.c)
add_executable(tplabel ${TPLABEL_SRC_FILES})
target_link_libraries(tplabel castorcommon castortape)
install (TARGETS tplabel DESTINATION ${CASTOR_DEST_BIN_DIR})
set (MOUNTTAPE_NOSTK_SRC_FILES mounttape.c asc2ebc.c buildhdrlbl.c
buildvollbl.c ebc2asc.c getdrvstatus.c inquiry.c rbtsubr.c readlbl.c
rwndtape.c send2tpd.c sendrep.c setCompression.c skiptape.c tperror.c
tplogit.c unldtape.c usrmsg.c writelbl.c wrttpmrk.c mircheck.c)
add_executable(mounttape-nostk ${MOUNTTAPE_NOSTK_SRC_FILES})
target_link_libraries(mounttape-nostk castorcommon castorrmc castortape
castorvdqm)
install (TARGETS mounttape-nostk DESTINATION ${CASTOR_DEST_BIN_DIR})
set (RLSTAPE_NOSTK_SRC_FILES rlstape.c getdrvstatus.c rbtsubr.c send2tpd.c
sendrep.c tperror.c tplogit.c usrmsg.c unldtape.c tapealertcheck.c)
add_executable(rlstape-nostk ${RLSTAPE_NOSTK_SRC_FILES})
target_link_libraries(rlstape-nostk castorcommon castorrmc castortape
castorvdqm)
install (TARGETS rlstape-nostk DESTINATION ${CASTOR_DEST_BIN_DIR})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment