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

« back to all changes in this revision

Viewing changes to source/3rdparty/snprintf/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
DEPEND = ../3rdparty/sge_depend/$(COMPILE_ARCH)/sge_depend -l -S -Y $(DEPEND_FLAGS)
 
2
 
 
3
SNPRINTF_DIR = ../3rdparty/snprintf
 
4
 
 
5
SNPRINTF_LIB = libsnprintf.a
 
6
 
 
7
SNPRINTF_SRC = snprintf.c
 
8
 
 
9
SNPRINTF_OBJS = $(SNPRINTF_SRC:.c=.o)
 
10
 
 
11
###############################################################################
 
12
# global rules: all, clean, depend, messages
 
13
###############################################################################
 
14
all: $(SNPRINTF_LIB)
 
15
 
 
16
clean:
 
17
        $(RM) $(SNPRINTF_OBJS) libsnprintf.a
 
18
 
 
19
depend:
 
20
        $(DEPEND) -f$(SNPRINTF_DIR)/snprintf_dependencies $(SNPRINTF_DIR)/*.c
 
21
 
 
22
###############################################################################
 
23
# rules to build library
 
24
###############################################################################
 
25
libsnprintf.a:       $(SNPRINTF_OBJS)
 
26
        $(AR) $(ARFLAGS) $(SNPRINTF_LIB) $(SNPRINTF_OBJS)
 
27
        $(RANLIB)  $(SNPRINTF_LIB) 
 
28
 
 
29
###############################################################################
 
30
# include dependencies for object files generated by sge_depend
 
31
###############################################################################
 
32
include $(SNPRINTF_DIR)/snprintf_dependencies
 
33
 
 
34
###############################################################################
 
35
# rules to build object codes
 
36
###############################################################################
 
37
 
 
38
snprintf.o:     $(SNPRINTF_DIR)/snprintf.c
 
39
        $(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(SNPRINTF_DIR)/snprintf.c
 
40