1
###############################################################################
3
##########################################################################
5
# The Contents of this file are made available subject to the terms of
6
# the Sun Industry Standards Source License Version 1.2
8
# Sun Microsystems Inc., March, 2001
11
# Sun Industry Standards Source License Version 1.2
12
# =================================================
13
# The contents of this file are subject to the Sun Industry Standards
14
# Source License Version 1.2 (the "License"); You may not use this file
15
# except in compliance with the License. You may obtain a copy of the
16
# License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
18
# Software provided under this License is provided on an "AS IS" basis,
19
# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
20
# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
21
# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
22
# See the License for the specific provisions governing your rights and
23
# obligations concerning the Software.
25
# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
27
# Copyright: 2001 by Sun Microsystems, Inc.
29
# All Rights Reserved.
31
##########################################################################
34
# Variable definitions for targets to build
36
JUTILIB_DIR = $(SDIR)/libs/juti
38
JUTILIB = libjuti$(SHAREDEXT)
41
JUTI_ADD_SRC_NJ = juti.c
42
JUTI_ADD_SRC_ALL = com_sun_grid_util_SGEUtil.c juti.c
44
# This computed macro is here to allow libjuti to be built with or without
47
JUTI_ADD_SRC = $(JUTI_ADD_SRC_$(JNI_TARGET))
48
JUTI_ADD_OBJS = $(JUTI_ADD_SRC:.c=.o)
50
JUTI_DEPEND_OBJS = $(JUTI_ADD_OBJS)
52
###############################################################################
53
# global rules: all, clean, depend, messages
54
###############################################################################
58
$(RM) $(JUTILIB) $(JUTI_ADD_OBJS)
61
$(DEPEND) -f$(JUTILIB_DIR)/juti_dependencies $(JUTILIB_DIR)/*.c
64
###############################################################################
65
# rules to build library
66
###############################################################################
68
$(JUTILIB): $(JUTI_OBJS) $(JUTI_ADD_OBJS)
69
$(SHAREDLD) $(SHARED_LFLAGS) -o libjuti$(SHAREDEXT) $(JUTI_OBJS) $(JUTI_ADD_OBJS) $(SLIBs) $(LIBS)
70
../scripts/link_jnilib.sh libjuti $(SHAREDEXT) $(JAVA_SHAREDEXT)
73
###############################################################################
74
# include dependencies for object files generated by sge_depend
75
###############################################################################
76
include $(JUTILIB_DIR)/juti_dependencies
78
###############################################################################
79
# rules to build object codes
80
###############################################################################
83
com_sun_grid_util_SGEUtil.o: $(JUTILIB_DIR)/com_sun_grid_util_SGEUtil.c
84
$(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(JUTILIB_DIR)/com_sun_grid_util_SGEUtil.c -o com_sun_grid_util_SGEUtil.o
86
juti.o: $(JUTILIB_DIR)/juti.c
87
$(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(JUTILIB_DIR)/juti.c -o juti.o