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

« back to all changes in this revision

Viewing changes to source/libs/juti/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
#___INFO__MARK_BEGIN__
 
3
##########################################################################
 
4
#
 
5
#  The Contents of this file are made available subject to the terms of
 
6
#  the Sun Industry Standards Source License Version 1.2
 
7
#
 
8
#  Sun Microsystems Inc., March, 2001
 
9
#
 
10
#
 
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
 
17
#
 
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.
 
24
#
 
25
#  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 
26
#
 
27
#  Copyright: 2001 by Sun Microsystems, Inc.
 
28
#
 
29
#  All Rights Reserved.
 
30
#
 
31
##########################################################################
 
32
#___INFO__MARK_END__
 
33
 
 
34
# Variable definitions for targets to build
 
35
 
 
36
JUTILIB_DIR   = $(SDIR)/libs/juti
 
37
 
 
38
JUTILIB       = libjuti$(SHAREDEXT)
 
39
JUTILIB_OBJS  = 
 
40
 
 
41
JUTI_ADD_SRC_NJ = juti.c
 
42
JUTI_ADD_SRC_ALL = com_sun_grid_util_SGEUtil.c juti.c
 
43
 
 
44
# This computed macro is here to allow libjuti to be built with or without
 
45
# JNI files
 
46
 
 
47
JUTI_ADD_SRC = $(JUTI_ADD_SRC_$(JNI_TARGET))
 
48
JUTI_ADD_OBJS = $(JUTI_ADD_SRC:.c=.o)
 
49
 
 
50
JUTI_DEPEND_OBJS = $(JUTI_ADD_OBJS)
 
51
 
 
52
###############################################################################
 
53
# global rules: all, clean, depend, messages
 
54
###############################################################################
 
55
juti_all: $(JUTILIB)
 
56
 
 
57
juti_clean:
 
58
        $(RM) $(JUTILIB) $(JUTI_ADD_OBJS)
 
59
 
 
60
juti_depend:
 
61
        $(DEPEND) -f$(JUTILIB_DIR)/juti_dependencies $(JUTILIB_DIR)/*.c
 
62
 
 
63
        
 
64
###############################################################################
 
65
# rules to build library
 
66
###############################################################################
 
67
 
 
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)
 
71
 
 
72
 
 
73
###############################################################################
 
74
# include dependencies for object files generated by sge_depend
 
75
###############################################################################
 
76
include $(JUTILIB_DIR)/juti_dependencies
 
77
 
 
78
###############################################################################
 
79
# rules to build object codes
 
80
###############################################################################
 
81
 
 
82
 
 
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
 
85
 
 
86
juti.o: $(JUTILIB_DIR)/juti.c
 
87
        $(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(JUTILIB_DIR)/juti.c -o juti.o
 
88