Skip to content
Snippets Groups Projects
Commit b7fdc390 authored by Mark Grondona's avatar Mark Grondona
Browse files

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
# 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 $@ $<
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment