~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/daemons/shepherd/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
###############################################################################
 
2
# Variable definitions for targets to build
 
3
###############################################################################
 
4
#___INFO__MARK_BEGIN__
 
5
##########################################################################
 
6
#
 
7
#  The Contents of this file are made available subject to the terms of
 
8
#  the Sun Industry Standards Source License Version 1.2
 
9
#
 
10
#  Sun Microsystems Inc., March, 2001
 
11
#
 
12
#
 
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
 
19
#
 
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.
 
26
#
 
27
#  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 
28
#
 
29
#  Copyright: 2001 by Sun Microsystems, Inc.
 
30
#
 
31
#  All Rights Reserved.
 
32
#
 
33
##########################################################################
 
34
#___INFO__MARK_END__
 
35
SHEPHERD_DIR = $(SDIR)/daemons/shepherd
 
36
 
 
37
SHEPHERD_TARGETS = sge_shepherd
 
38
 
 
39
SHEPHERD_SRC = shepherd.c \
 
40
           builtin_starter.c \
 
41
           setrlimits.c \
 
42
           signal_queue.c \
 
43
           sge_shepconf.c \
 
44
           setjoblimit.c \
 
45
           sge_pset.c \
 
46
           sge_fileio.c \
 
47
           sge_shepherd_ijs.c
 
48
 
 
49
SHEPHERD_ADD_SRC = \
 
50
           config_file.c \
 
51
           err_trace.c \
 
52
           execution_states.c \
 
53
           qlogin_starter.c \
 
54
           setosjobid.c \
 
55
           sge_parse_num_par.c \
 
56
           pdc.c \
 
57
           procfs.c \
 
58
           sge_mt_init.c \
 
59
           sge_processes_irix.c
 
60
 
 
61
SHEPHERD_OBJS = $(SHEPHERD_SRC:.c=.o) sge_ijs_comm.o sge_ijs_threads.o
 
62
 
 
63
SHEPHERD_ADD_OBJS = $(SHEPHERD_ADD_SRC:.c=.o) 
 
64
 
 
65
SHEPHERD_ADD_LIBS = -lgdi -lsgeobj -lsgeobjd $(KRBLIB) -lcull -lcomm_static -lcommlists -luti $(WINGRIDLIB_STATIC) -llck -lrmon $(DLLIB)
 
66
 
 
67
SHEPHERD_LIB_DEPENDS = $(GDILIB) $(SGEOBJDLIB) $(SGEOBJLIB) $(KRBLIBS) $(CULLLIB) $(COMMLIB) $(COMMLISTSLIB) $(UTILIB) $(WINGRIDLIB_DEP) $(LCKLIB) $(RMONLIB)
 
68
 
 
69
###############################################################################
 
70
# global rules: all, clean, depend, messages
 
71
###############################################################################
 
72
shepherd: $(SHEPHERD_TARGETS)
 
73
        
 
74
shepherd_clean:
 
75
                $(RM) $(SHEPHERD_TARGETS) $(SHEPHERD_OBJS)
 
76
 
 
77
shepherd_depend:
 
78
                $(DEPEND) -f$(SHEPHERD_DIR)/shepherd_dependencies $(SHEPHERD_DIR)/*.c
 
79
 
 
80
shepherd_messages:
 
81
        @echo Creating $@
 
82
        @for i in `ls $(SHEPHERD_DIR)/*.c`; do \
 
83
           $(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -DEXTRACT_MESSAGES -E $$i | $(XGETTEXT) - ;\
 
84
        done
 
85
 
 
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)
 
91
 
 
92
###############################################################################
 
93
# include dependencies for object files generated by sge_depend
 
94
###############################################################################
 
95
include $(SHEPHERD_DIR)/shepherd_dependencies
 
96
 
 
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
 
102
 
 
103
sge_starter.o:  $(SHEPHERD_DIR)/sge_starter.c
 
104
                $(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/sge_starter.c
 
105
 
 
106
builtin_starter.o:      $(SHEPHERD_DIR)/builtin_starter.c
 
107
                $(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/builtin_starter.c
 
108
 
 
109
signal_queue.o: $(SHEPHERD_DIR)/signal_queue.c
 
110
                $(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/signal_queue.c
 
111
 
 
112
sge_shepconf.o: $(SHEPHERD_DIR)/sge_shepconf.c
 
113
                $(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/sge_shepconf.c
 
114
 
 
115
setrlimits.o:   $(SHEPHERD_DIR)/setrlimits.c
 
116
                $(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/setrlimits.c
 
117
 
 
118
setjoblimit.o: $(SHEPHERD_DIR)/setjoblimit.c
 
119
                $(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/setjoblimit.c
 
120
 
 
121
sge_pset.o: $(SHEPHERD_DIR)/sge_pset.c
 
122
                $(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/sge_pset.c
 
123
 
 
124
sge_fileio.o: $(SHEPHERD_DIR)/sge_fileio.c
 
125
                $(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/sge_fileio.c
 
126
 
 
127
sge_shepherd_ijs.o: $(SHEPHERD_DIR)/sge_shepherd_ijs.c
 
128
                $(CC) -I$(SHEPHERD_DIR) $(CFLAGS) -c $(SHEPHERD_DIR)/sge_shepherd_ijs.c