Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
5355a74f
Commit
5355a74f
authored
11 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
rmc/CMakeLists.txt now builds and installs all of the rmc directory
Improved CMakeLists.txt comments
parent
b84f61e3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rmc/CMakeLists.txt
+32
-0
32 additions, 0 deletions
rmc/CMakeLists.txt
tape/CMakeLists.txt
+11
-11
11 additions, 11 deletions
tape/CMakeLists.txt
with
43 additions
and
11 deletions
rmc/CMakeLists.txt
+
32
−
0
View file @
5355a74f
...
...
@@ -25,6 +25,9 @@ cmake_minimum_required (VERSION 2.6)
include_directories
(
".."
)
include_directories
(
"../h"
)
################################################################################
# Rules to build and install libcastorrmc.so
################################################################################
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
)
...
...
@@ -33,3 +36,32 @@ set_target_properties (castorrmc
PROPERTIES SOVERSION
${
MAJOR_CASTOR_VERSION
}
)
target_link_libraries
(
castorrmc castorcommon
)
install
(
TARGETS castorrmc DESTINATION
${
CASTOR_DEST_LIB_DIR
}
)
CastorInstallLibManPage
(
rmc_dismount
)
CastorInstallLibManPage
(
rmc_export
)
CastorInstallLibManPage
(
rmc_find_cartridge
)
CastorInstallLibManPage
(
rmc_get_geometry
)
CastorInstallLibManPage
(
rmc_import
)
CastorInstallLibManPage
(
rmc_mount
)
CastorInstallLibManPage
(
rmc_read_elem_status
)
CastorInstallLibManPage
(
rmc_seterrbuf
)
################################################################################
# Rules to build and install rmcd
################################################################################
set
(
RMCD_SRC_FILES rmc_serv.c rmc_procreq.c rmc_logit.c rmc_logreq.c
rmc_marshall_element.c rmc_sendrep.c rmc_smcsubr.c rmc_send_scsi_cmd.c
)
add_executable
(
rmcd
${
RMCD_SRC_FILES
}
)
target_link_libraries
(
rmcd castorcommon castorupv
)
install
(
TARGETS rmcd DESTINATION
${
CASTOR_DEST_LIB_DIR
}
)
CastorInstallAdmManPage
(
rmcd
)
CastorInstallLogrotate
(
castor-rmc-server
)
CastorInstallSysconfig
(
rmcd
)
CastorInstallInitScript
(
rmcd
)
################################################################################
# Rules to build and install smc
################################################################################
add_executable
(
smc smc.c
)
target_link_libraries
(
smc castorcommon castorrmc
)
install
(
TARGETS smc DESTINATION
${
CASTOR_DEST_LIB_DIR
}
)
CastorInstallExeManPage
(
smc
)
This diff is collapsed.
Click to expand it.
tape/CMakeLists.txt
+
11
−
11
View file @
5355a74f
...
...
@@ -51,7 +51,7 @@ foreach (SRC_FILE locate.c readlbl.c rwndtape.c skiptape.c tperror.c usrmsg.c
endforeach
()
################################################################################
# Rules to build libcastortape.so
# Rules to build
and install
libcastortape.so
################################################################################
set
(
TAPE_LIB_SRC_FILES Ctape_config.c Ctape_devinfo.c Ctape_dmpfil.c
Ctape_errmsg.c Ctape_info.c Ctape_kill.c Ctape_label.c Ctape_mount.c
...
...
@@ -70,21 +70,21 @@ foreach (MAN_PAGE ${TAPE_LIB_MAN_PAGES})
endforeach
()
################################################################################
# Rules to build tpconfig
# Rules to build
and install
tpconfig
################################################################################
add_executable
(
tpconfig tpconfig.c
)
target_link_libraries
(
tpconfig castorcommon castortape
)
CastorInstallExeManPage
(
tpconfig
)
################################################################################
# Rules to build tpstat
# Rules to build
and install
tpstat
################################################################################
add_executable
(
tpstat tpstat.c
)
target_link_libraries
(
tpstat castortape
)
CastorInstallExeManPage
(
tpstat
)
################################################################################
# Rules to build taped
# Rules to build
and install
taped
################################################################################
set
(
TAPED_SRC_FILES tpdaemon.c checkjobdied.c cvtden.c sendrep.c tplogit.c
usrmsg.c
)
...
...
@@ -98,7 +98,7 @@ CastorInstallInitScript(taped)
CastorInstallConfigFile
(
TP
)
################################################################################
# Rules to build confdrive
# Rules to build
and install
confdrive
################################################################################
set
(
CONFDRIVE_SRC_FILES confdrive.c sendrep.c tplogit.c
)
add_executable
(
confdrive
${
CONFDRIVE_SRC_FILES
}
)
...
...
@@ -106,7 +106,7 @@ target_link_libraries(confdrive castorcommon castortape castorvdqm)
install
(
TARGETS confdrive DESTINATION
${
CASTOR_DEST_BIN_DIR
}
)
################################################################################
# Rules to build posovl
# Rules to build
and install
posovl
################################################################################
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
...
...
@@ -116,7 +116,7 @@ target_link_libraries(posovl castorcommon castortape)
install
(
TARGETS posovl DESTINATION
${
CASTOR_DEST_BIN_DIR
}
)
################################################################################
# Rules to build
tplabel
and install
its man page
# Rules to build and install
tplabel
################################################################################
add_executable
(
tplabel tplabel.c
)
target_link_libraries
(
tplabel castorcommon castortape
)
...
...
@@ -124,7 +124,7 @@ install (TARGETS tplabel DESTINATION ${CASTOR_DEST_BIN_DIR})
CastorInstallExeManPage
(
tplabel
)
################################################################################
# Rules to build mounttape-nostk
# Rules to build
and install
mounttape-nostk
################################################################################
set
(
MOUNTTAPE_NOSTK_SRC_FILES mounttape.c asc2ebc.c buildhdrlbl.c
buildvollbl.c ebc2asc.c getdrvstatus.c inquiry.c rbtsubr.c readlbl.c
...
...
@@ -136,7 +136,7 @@ target_link_libraries(mounttape-nostk castorcommon castorrmc castortape
install
(
TARGETS mounttape-nostk DESTINATION
${
CASTOR_DEST_BIN_DIR
}
)
################################################################################
# Rules to build rlstape-nostk
# Rules to build
and install
rlstape-nostk
################################################################################
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
)
...
...
@@ -190,7 +190,7 @@ if (STK_API_LIB AND STK_UTL_LIB AND STK_IPC_LIB AND STK_CL_LIB)
endforeach
()
##############################################################################
# Rules to build mounttape
# Rules to build
and install
mounttape
##############################################################################
message
(
STATUS
"Adding the mounttape target"
)
set
(
MOUNTTAPE_SRC_FILES mounttape-stk.c asc2ebc.c buildhdrlbl.c
...
...
@@ -203,7 +203,7 @@ if (STK_API_LIB AND STK_UTL_LIB AND STK_IPC_LIB AND STK_CL_LIB)
install
(
TARGETS mounttape DESTINATION
${
CASTOR_DEST_BIN_DIR
}
)
##############################################################################
# Rules to build rlstape
# Rules to build
and install
rlstape
##############################################################################
message
(
STATUS
"Adding the rlstape target"
)
set
(
RLSTAPE_SRC_FILES rlstape.c getdrvstatus.c rbtsubr-stk.c send2tpd.c
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment