~ubuntu-branches/ubuntu/vivid/cctools/vivid

« back to all changes in this revision

Viewing changes to s3tools/src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2011-05-07 09:05:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110507090500-lqpmdtwndor6e7os
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include ../../Makefile.config
 
2
include ../../Makefile.rules
 
3
 
 
4
SOURCES = s3c_file.c s3c_acl.c s3c_bucket.c s3c_util.c
 
5
LOCAL_LDFLAGS = -lm -ldttools ${CCTOOLS_INTERNAL_LDFLAGS}
 
6
 
 
7
OBJECTS = ${SOURCES:%.c=%.o}
 
8
HEADERS = ${SOURCES:%.c=%.h} ${EXTRA_HEADERS}
 
9
LIBRARIES = libs3client.a
 
10
PROGRAMS = s3put s3get s3stat s3rm s3mkdir s3rmdir s3ls s3getacl s3setacl
 
11
 
 
12
PROGRAM_SOURCES = ${PROGRAMS:%=%.c}
 
13
 
 
14
OBJECTS = ${LIBRARY_SOURCES:%.c=%.o}
 
15
 
 
16
LOCAL_LDFLAGS = -ls3client -lm -ldttools ${CCTOOLS_INTERNAL_LDFLAGS}
 
17
 
 
18
all: ${LIBRARIES} ${PROGRAMS}
 
19
 
 
20
s3put: s3put.o libs3client.a 
 
21
        ${CCTOOLS_LD} -o $@ $^ ${LOCAL_LDFLAGS}
 
22
s3get: s3get.o libs3client.a 
 
23
        ${CCTOOLS_LD} -o $@ $^ ${LOCAL_LDFLAGS}
 
24
s3stat: s3stat.o libs3client.a 
 
25
        ${CCTOOLS_LD} -o $@ $^ ${LOCAL_LDFLAGS}
 
26
s3rm: s3rm.o libs3client.a 
 
27
        ${CCTOOLS_LD} -o $@ $^ ${LOCAL_LDFLAGS}
 
28
s3mkdir: s3mkdir.o libs3client.a 
 
29
        ${CCTOOLS_LD} -o $@ $^ ${LOCAL_LDFLAGS}
 
30
s3rmdir: s3rmdir.o libs3client.a 
 
31
        ${CCTOOLS_LD} -o $@ $^ ${LOCAL_LDFLAGS}
 
32
s3ls: s3ls.o libs3client.a
 
33
        ${CCTOOLS_LD} -o $@ $^ ${LOCAL_LDFLAGS}
 
34
s3getacl: s3getacl.o libs3client.a 
 
35
        ${CCTOOLS_LD} -o $@ $^ ${LOCAL_LDFLAGS}
 
36
s3setacl: s3setacl.o libs3client.a 
 
37
        ${CCTOOLS_LD} -o $@ $^ ${LOCAL_LDFLAGS}
 
38
 
 
39
libs3client.a: s3common.o s3c_util.o s3c_file.o s3c_bucket.o s3c_acl.o
 
40
        ${CCTOOLS_AR} rv $@ $^
 
41
        ranlib $@
 
42
 
 
43
install:
 
44
 
 
45
clean:
 
46
        rm -f core *~ *.o *.os *.so libs3client.a $(PROGRAMS)
 
47
 
 
48
test:
 
49