2
##########################################################################
4
# The Contents of this file are made available subject to the terms of
5
# the Sun Industry Standards Source License Version 1.2
7
# Sun Microsystems Inc., March, 2001
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
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.
24
# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
26
# Copyright: 2001 by Sun Microsystems, Inc.
28
# All Rights Reserved.
30
##########################################################################
32
common: $(COMMON_OBJS)
38
$(DEPEND) -f$(COMMON_DIR)/common_dependencies $(COMMON_DIR)/*.c
41
@$(RM) $(MESSAGES); touch $(MESSAGES)
43
@for i in `ls $(COMMON_DIR)/*.c`; do \
44
$(CC) $(CFLAGS) -DEXTRACT_MESSAGES -E $$i | $(XGETTEXT) - ; \
48
###############################################################################
49
# Variable definitions for targets to build
50
###############################################################################
51
COMMON_DIR = $(SDIR)/common
64
COMMON_OBJS = $(COMMON_SRC:.c=.o)
66
###############################################################################
67
# include dependencies for object files generated by sge_depend
68
###############################################################################
69
include $(COMMON_DIR)/common_dependencies
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
77
execution_states.o: $(COMMON_DIR)/execution_states.c
78
$(CC) $(CFLAGS) -c $(COMMON_DIR)/execution_states.c
80
parse_job_cull.o : $(COMMON_DIR)/parse_job_cull.c
81
$(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(COMMON_DIR)/parse_job_cull.c
83
parse_qsub.o: $(COMMON_DIR)/parse_qsub.c
84
$(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(COMMON_DIR)/parse_qsub.c
86
sig_handlers.o : $(COMMON_DIR)/sig_handlers.c
87
$(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(COMMON_DIR)/sig_handlers.c
89
usage.o: $(COMMON_DIR)/usage.c
90
$(CC) $(CFLAGS) -c $(COMMON_DIR)/usage.c
92
sge_mt_init.o: $(COMMON_DIR)/sge_mt_init.c
93
$(CC) $(CFLAGS) -c $(COMMON_DIR)/sge_mt_init.c
95
sge_ijs_comm.o: $(COMMON_DIR)/sge_ijs_comm.c
96
$(CC) $(CFLAGS) -c $(COMMON_DIR)/sge_ijs_comm.c
98
sge_ijs_threads.o: $(COMMON_DIR)/sge_ijs_threads.c
99
$(CC) $(CFLAGS) -c $(COMMON_DIR)/sge_ijs_threads.c