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

« back to all changes in this revision

Viewing changes to source/3rdparty/strptime/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
#
 
3
# The 3rdparty/strptime directory contains a derivative of
 
4
# the BSD strptime() function which is not available on
 
5
# certain architectures such as the NEC SX-6.
 
6
#
 
7
 
 
8
DEPEND = ../3rdparty/sge_depend/$(COMPILE_ARCH)/sge_depend -l -S -Y $(DEPEND_FLAGS)
 
9
 
 
10
STRPTIME_DIR = ../3rdparty/strptime
 
11
 
 
12
STRPTIME = libstrptime.a
 
13
 
 
14
STRPTIME_SRC = strptime.c
 
15
 
 
16
STRPTIME_OBJS = $(STRPTIME_SRC:.c=.o)
 
17
 
 
18
###############################################################################
 
19
# global rules: all, clean, depend, messages
 
20
###############################################################################
 
21
all: $(STRPTIME)
 
22
 
 
23
strptime_clean:
 
24
        $(RM) $(STRPTIME_OBJS) libstrptime.a
 
25
 
 
26
depend:
 
27
        $(DEPEND) -f$(STRPTIME_DIR)/strptime_dependencies $(STRPTIME_DIR)/*.c
 
28
 
 
29
###############################################################################
 
30
# rules to build library
 
31
###############################################################################
 
32
libstrptime.a:       $(STRPTIME_OBJS)
 
33
        $(AR) $(ARFLAGS) libstrptime.a $(STRPTIME_OBJS)
 
34
        $(RANLIB) libstrptime.a
 
35
 
 
36
###############################################################################
 
37
# include dependencies for object files generated by sge_depend
 
38
###############################################################################
 
39
include $(STRPTIME_DIR)/strptime_dependencies
 
40
 
 
41
###############################################################################
 
42
# rules to build object codes
 
43
###############################################################################
 
44
 
 
45
strptime.o:     $(STRPTIME_DIR)/strptime.c
 
46
        $(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(STRPTIME_DIR)/strptime.c
 
47