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

« back to all changes in this revision

Viewing changes to source/common/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
#___INFO__MARK_BEGIN__
 
2
##########################################################################
 
3
#
 
4
#  The Contents of this file are made available subject to the terms of
 
5
#  the Sun Industry Standards Source License Version 1.2
 
6
#
 
7
#  Sun Microsystems Inc., March, 2001
 
8
#
 
9
#
 
10
#  Sun Industry Standards Source License Version 1.2
 
11
#  =================================================
 
12
#  The contents of this file are subject to the Sun Industry Standards
 
13
#  Source License Version 1.2 (the "License"); You may not use this file
 
14
#  except in compliance with the License. You may obtain a copy of the
 
15
#  License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
 
16
#
 
17
#  Software provided under this License is provided on an "AS IS" basis,
 
18
#  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
 
19
#  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 
20
#  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 
21
#  See the License for the specific provisions governing your rights and
 
22
#  obligations concerning the Software.
 
23
#
 
24
#  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 
25
#
 
26
#  Copyright: 2001 by Sun Microsystems, Inc.
 
27
#
 
28
#  All Rights Reserved.
 
29
#
 
30
##########################################################################
 
31
#___INFO__MARK_END__
 
32
common: $(COMMON_OBJS)
 
33
 
 
34
common_clean:
 
35
        $(RM) $(COMMON_OBJS)
 
36
 
 
37
common_depend:
 
38
        $(DEPEND) -f$(COMMON_DIR)/common_dependencies $(COMMON_DIR)/*.c
 
39
 
 
40
common_messages:
 
41
        @$(RM) $(MESSAGES); touch $(MESSAGES)
 
42
        @echo Creating $@
 
43
        @for i in `ls $(COMMON_DIR)/*.c`; do \
 
44
                $(CC) $(CFLAGS) -DEXTRACT_MESSAGES -E $$i | $(XGETTEXT) - ; \
 
45
        done
 
46
 
 
47
 
 
48
###############################################################################
 
49
# Variable definitions for targets to build
 
50
###############################################################################
 
51
COMMON_DIR = $(SDIR)/common
 
52
 
 
53
COMMON_SRC = \
 
54
            sge_options.c \
 
55
            execution_states.c \
 
56
            parse_job_cull.c \
 
57
            parse_qsub.c \
 
58
            sig_handlers.c \
 
59
            usage.c \
 
60
            sge_mt_init.c \
 
61
            sge_ijs_comm.c \
 
62
            sge_ijs_threads.c
 
63
 
 
64
COMMON_OBJS = $(COMMON_SRC:.c=.o)
 
65
 
 
66
###############################################################################
 
67
# include dependencies for object files generated by sge_depend
 
68
###############################################################################
 
69
include $(COMMON_DIR)/common_dependencies
 
70
 
 
71
###############################################################################
 
72
# rules to build object codes
 
73
###############################################################################
 
74
sge_options.o:  $(COMMON_DIR)/sge_options.c
 
75
                $(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(COMMON_DIR)/sge_options.c
 
76
 
 
77
execution_states.o: $(COMMON_DIR)/execution_states.c
 
78
                $(CC) $(CFLAGS) -c $(COMMON_DIR)/execution_states.c
 
79
 
 
80
parse_job_cull.o    : $(COMMON_DIR)/parse_job_cull.c
 
81
                $(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(COMMON_DIR)/parse_job_cull.c
 
82
 
 
83
parse_qsub.o:   $(COMMON_DIR)/parse_qsub.c
 
84
                $(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(COMMON_DIR)/parse_qsub.c
 
85
 
 
86
sig_handlers.o   : $(COMMON_DIR)/sig_handlers.c
 
87
                $(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(COMMON_DIR)/sig_handlers.c
 
88
 
 
89
usage.o:        $(COMMON_DIR)/usage.c
 
90
                $(CC) $(CFLAGS) -c $(COMMON_DIR)/usage.c
 
91
 
 
92
sge_mt_init.o:  $(COMMON_DIR)/sge_mt_init.c
 
93
                $(CC) $(CFLAGS) -c $(COMMON_DIR)/sge_mt_init.c
 
94
 
 
95
sge_ijs_comm.o: $(COMMON_DIR)/sge_ijs_comm.c 
 
96
                $(CC) $(CFLAGS) -c $(COMMON_DIR)/sge_ijs_comm.c
 
97
 
 
98
sge_ijs_threads.o:      $(COMMON_DIR)/sge_ijs_threads.c 
 
99
                $(CC) $(CFLAGS) -c $(COMMON_DIR)/sge_ijs_threads.c