~ubuntu-branches/ubuntu/precise/exiv2/precise

« back to all changes in this revision

Viewing changes to src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2006-12-07 18:40:10 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061207184010-0ouu8v0dr8nznob9
Tags: 0.12-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
# Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
20
20
#
21
21
# File:      Makefile
22
 
# Version:   $Rev: 805 $
 
22
# Version:   $Rev: 892 $
23
23
# Author(s): Andreas Huggel (ahu) <ahuggel@gmx.net>
24
24
# History:   10-Dec-03, ahu: created
25
25
#
47
47
# Source files
48
48
 
49
49
# Add standalone C++ header files to this list
50
 
CCHDR = exiv2_version.h       \
51
 
        exv_conf.h            \
52
 
        exv_msvc.h            \
53
 
        mn.hpp                \
54
 
        rcsid.hpp
 
50
CCHDR =  exiv2_version.h      \
 
51
         exv_conf.h           \
 
52
         exv_msvc.h           \
 
53
         mn.hpp               \
 
54
         rcsid.hpp            \
 
55
         tifffwd.hpp
55
56
 
56
57
# Add library C++ source files to this list
57
 
CCSRC = basicio.cpp           \
58
 
        canonmn.cpp           \
59
 
        crwimage.cpp          \
60
 
        datasets.cpp          \
61
 
        error.cpp             \
62
 
        exif.cpp              \
63
 
        futils.cpp            \
64
 
        fujimn.cpp            \
65
 
        ifd.cpp               \
66
 
        image.cpp             \
67
 
        imgreg.cpp            \
68
 
        iptc.cpp              \
69
 
        jpgimage.cpp          \
70
 
        makernote.cpp         \
71
 
        makernote2.cpp        \
72
 
        metadatum.cpp         \
73
 
        minoltamn.cpp         \
74
 
        mrwimage.cpp          \
75
 
        nikonmn.cpp           \
76
 
        olympusmn.cpp         \
77
 
        panasonicmn.cpp       \
78
 
        sigmamn.cpp           \
79
 
        sonymn.cpp            \
80
 
        tags.cpp              \
81
 
        tiffcomposite.cpp     \
82
 
        tiffimage.cpp         \
83
 
        tiffparser.cpp        \
84
 
        tiffvisitor.cpp       \
85
 
        types.cpp             \
86
 
        value.cpp
 
58
CCSRC =  basicio.cpp          \
 
59
         canonmn.cpp          \
 
60
         cr2image.cpp         \
 
61
         crwimage.cpp         \
 
62
         datasets.cpp         \
 
63
         error.cpp            \
 
64
         exif.cpp             \
 
65
         futils.cpp           \
 
66
         fujimn.cpp           \
 
67
         ifd.cpp              \
 
68
         image.cpp            \
 
69
         imgreg.cpp           \
 
70
         iptc.cpp             \
 
71
         jpgimage.cpp         \
 
72
         makernote.cpp        \
 
73
         makernote2.cpp       \
 
74
         metadatum.cpp        \
 
75
         minoltamn.cpp        \
 
76
         mrwimage.cpp         \
 
77
         nikonmn.cpp          \
 
78
         olympusmn.cpp        \
 
79
         panasonicmn.cpp
 
80
ifdef HAVE_LIBZ
 
81
CCSRC += pngimage.cpp         \
 
82
         pngchunk.cpp
 
83
endif
 
84
CCSRC += sigmamn.cpp          \
 
85
         sonymn.cpp           \
 
86
         tags.cpp             \
 
87
         tiffcomposite.cpp    \
 
88
         tiffimage.cpp        \
 
89
         tiffparser.cpp       \
 
90
         tiffvisitor.cpp      \
 
91
         types.cpp            \
 
92
         value.cpp
87
93
 
88
94
# Add library C source files to this list
89
95
ifndef HAVE_TIMEGM
104
110
         iptcprint.cpp        \
105
111
         iptctest.cpp         \
106
112
         key-test.cpp         \
 
113
         largeiptc-test.cpp   \
107
114
         makernote-test.cpp   \
108
115
         taglist.cpp          \
109
116
         write-test.cpp       \
127
134
 
128
135
# ******************************************************************************
129
136
# Library
130
 
 
131
137
LIBRARY = libexiv2.la
132
138
 
133
139
# ******************************************************************************
134
 
# Defines, Includes and Libraries
135
 
CXXDEFS = $(DEFS)
136
 
CXXINCS = $(INCS)
137
 
LDLIBS  = $(LIBS) $(LIBRARY)
138
 
 
139
 
# ******************************************************************************
140
 
# ==============================================================================
141
 
# ******************************************************************************
142
 
 
143
140
# Initialisations
144
141
SHELL = /bin/sh
145
142
 
191
188
endif
192
189
 
193
190
# Compilation shortcuts
194
 
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CXXDEFS) $(CXXINCS) -c
195
 
COMPILE.c = $(CC) $(CFLAGS) $(DEFS) $(INCS) -c
196
 
LINK.cc = $(CXX) $(CXXFLAGS) $(LDLIBS) $(LDFLAGS) -rpath $(libdir)
 
191
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c
 
192
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c
 
193
# LINK.cc does not need $(LIBS), libtool's dark magic takes care of that
 
194
LINK.cc = $(CXX) $(CXXFLAGS) $(LIBRARY) $(LDFLAGS) -rpath $(libdir)
197
195
 
198
196
# ******************************************************************************
199
197
# Rules
219
217
 
220
218
%.ii: %.cpp
221
219
        set -e; \
222
 
        $(CXXCPP) $(CPPFLAGS) $(CXXDEFS) $(CXXINCS) $< | sed '/^[       ]*$$/d' > $@
 
220
        $(CXXCPP) $(CPPFLAGS) $< | sed '/^[     ]*$$/d' > $@
223
221
 
224
222
# ******************************************************************************
225
223
# Targets
244
242
bin: lib $(BINARY) $(EXIV2BIN) $(MCBIN) path-test
245
243
 
246
244
lib: $(OBJ)
247
 
        $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) $(LOBJ) -o $(LIBRARY) -rpath $(libdir) -release $(EXIV2_VERSION)
 
245
        $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) $(LOBJ) -o $(LIBRARY) -rpath $(libdir) -release $(EXIV2_VERSION) $(LIBS)
248
246
        @touch lib
249
247
 
250
248
path-test: path-test.o utils.o