Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
b7fdc390
Commit
b7fdc390
authored
23 years ago
by
Mark Grondona
Browse files
Options
Downloads
Patches
Plain Diff
o incorporate changes to allow compilation of separate debug modules
(automake < v1.5 only, automake 1.5 will complain (see comments))
parent
2f7fc059
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/slurmctld/Makefile.am
+47
-4
47 additions, 4 deletions
src/slurmctld/Makefile.am
with
47 additions
and
4 deletions
src/slurmctld/Makefile.am
+
47
−
4
View file @
b7fdc390
# Makefile for slurmctld
# Makefile for slurmctld
INCLUDES
=
@CPPFLAGS@
-I
$(
top_srcdir
)
/src/common
AUTOMAKE_OPTIONS
=
foreign
INCLUDES
=
-I
$(
top_srcdir
)
/src/common
# should we build individual modules?
# (--enable-debug)
#
if
DEBUG_MODULES
test_modules
=
Controller Node_Mgr Partition_Mgr Read_Config
else
test_modules
=
endif
bin_PROGRAMS
=
slurmctld
bin_PROGRAMS
=
slurmctld
slurmctld_SOURCES
=
Controller.c Mach_Stat_Mgr.c Partition_Mgr.c Read_Config.c
noinst_PROGRAMS
=
$(
test_modules
)
LDADD
=
$(
top_srcdir
)
/src/common/libcommon.a
slurmctld_SOURCES
=
Controller.c
\
Mach_Stat_Mgr.c
\
Partition_Mgr.c
\
Read_Config.c
# target specific CFLAGS do not work until automake 1.5, use explicit rules
# for now. If we ever move to 1.5, the CFLAGS defs below should work in
# place of the rules that follow.
#Controller_CFLAGS = -DDEBUG_MODULE $(AM_CFLAGS)
#Mach_Stat_Mgr_CFLAGS = -DDEBUG_MODULE $(AM_CFLAGS)
#Partition_Mgr_CFLAGS = -DDEBUG_MODULE $(AM_CFLAGS)
#Read_Config_CFLAGS = -DDEBUG_MODULE $(AM_CFLAGS)
#Read_Proc_CFLAGS = -DDEBUG_MODULE $(AM_CFLAGS)
# debug modules to built as binaries:
#
# need to create a rule to build each binary from an object file with _d suffix
# as these will have been compiled with -DDEBUG_MODULE
#
# Note: automake 1.5 will complain about these...
#
Read_Config
:
Read_Config_d.o
Controller
:
Controller_d.o
Node_Mgr
:
Node_Mgr_d.o
Partition_Mgr
:
Partition_Mgr_d.o
%
:
%_d.o
$(
LINK
)
$(
LDFLAGS
)
$<
$(
LDADD
)
slurmctld_LDFLAGS
=
%_d.o
:
%.c
slurmctld_LDADD
=
-L
$(
top_srcdir
)
/src/libcommon.a
$(
COMPILE
)
-DDEBUG_MODULE
-c
-o
$@
$<
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