1
###############################################################################
2
# Variable definitions for targets to build
3
###############################################################################
5
##########################################################################
7
# The Contents of this file are made available subject to the terms of
8
# the Sun Industry Standards Source License Version 1.2
10
# Sun Microsystems Inc., March, 2001
13
# Sun Industry Standards Source License Version 1.2
14
# =================================================
15
# The contents of this file are subject to the Sun Industry Standards
16
# Source License Version 1.2 (the "License"); You may not use this file
17
# except in compliance with the License. You may obtain a copy of the
18
# License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
20
# Software provided under this License is provided on an "AS IS" basis,
21
# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
22
# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
23
# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
24
# See the License for the specific provisions governing your rights and
25
# obligations concerning the Software.
27
# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
29
# Copyright: 2001 by Sun Microsystems, Inc.
31
# All Rights Reserved.
33
##########################################################################
35
SHEPHERD_DIR = $(SDIR)/daemons/shepherd
37
SHEPHERD_TARGETS = sge_shepherd
39
SHEPHERD_SRC = shepherd.c \
61
SHEPHERD_OBJS = $(SHEPHERD_SRC:.c=.o) sge_ijs_comm.o sge_ijs_threads.o
63
SHEPHERD_ADD_OBJS = $(SHEPHERD_ADD_SRC:.c=.o)
65
SHEPHERD_ADD_LIBS = -lgdi -lsgeobj -lsgeobjd $(KRBLIB) -lcull -lcomm_static -lcommlists -luti $(WINGRIDLIB_STATIC) -llck -lrmon $(DLLIB)
67
SHEPHERD_LIB_DEPENDS = $(GDILIB) $(SGEOBJDLIB) $(SGEOBJLIB) $(KRBLIBS) $(CULLLIB) $(COMMLIB) $(COMMLISTSLIB) $(UTILIB) $(WINGRIDLIB_DEP) $(LCKLIB) $(RMONLIB)
69
###############################################################################
70
# global rules: all, clean, depend, messages
71
###############################################################################
72
shepherd: $(SHEPHERD_TARGETS)
75
$(RM) $(SHEPHERD_TARGETS) $(SHEPHERD_OBJS)
78
$(DEPEND) -f$(SHEPHERD_DIR)/shepherd_dependencies $(SHEPHERD_DIR)/*.c
82
@for i in `ls $(SHEPHERD_DIR)/*.c`; do \
83
$(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -DEXTRACT_MESSAGES -E $$i | $(XGETTEXT) - ;\
86
###############################################################################
87
# rules to build binaries
88
###############################################################################
89
sge_shepherd: $(SHEPHERD_OBJS) $(SHEPHERD_ADD_OBJS) $(SHEPHERD_LIB_DEPENDS)
90
$(LD_WRAPPER) $(CC) -I$(SHEPHERD_DIR) $(CFLAGS) $(LFLAGS) -o $@ $(SHEPHERD_OBJS) $(SHEPHERD_ADD_OBJS) $(SHEPHERD_ADD_LIBS) $(SECLIBS_STATIC) $(SLIBS) $(LIBS)
92
###############################################################################
93
# include dependencies for object files generated by sge_depend
94
###############################################################################
95
include $(SHEPHERD_DIR)/shepherd_dependencies
97
###############################################################################
98
# rules to build object codes
99
###############################################################################
100
shepherd.o: $(SHEPHERD_DIR)/shepherd.c
101
$(CC) -I$(SHEPHERD_DIR) $(CFLAGS) $(MEMCFLAG) -c $(SHEPHERD_DIR)/shepherd.c
103
sge_starter.o: $(SHEPHERD_DIR)/sge_starter.c
104
$(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/sge_starter.c
106
builtin_starter.o: $(SHEPHERD_DIR)/builtin_starter.c
107
$(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/builtin_starter.c
109
signal_queue.o: $(SHEPHERD_DIR)/signal_queue.c
110
$(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/signal_queue.c
112
sge_shepconf.o: $(SHEPHERD_DIR)/sge_shepconf.c
113
$(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/sge_shepconf.c
115
setrlimits.o: $(SHEPHERD_DIR)/setrlimits.c
116
$(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/setrlimits.c
118
setjoblimit.o: $(SHEPHERD_DIR)/setjoblimit.c
119
$(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/setjoblimit.c
121
sge_pset.o: $(SHEPHERD_DIR)/sge_pset.c
122
$(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/sge_pset.c
124
sge_fileio.o: $(SHEPHERD_DIR)/sge_fileio.c
125
$(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/sge_fileio.c
127
sge_shepherd_ijs.o: $(SHEPHERD_DIR)/sge_shepherd_ijs.c
128
$(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/sge_shepherd_ijs.c