Debian Codegraph @

Makefile

raw ◀ ▶
Source reconstructed at patch state 1 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
1 # -----------------------------------------------------------------------------
2 # MetaCam - Extract EXIF information from digital camera files, with
3 # support for Vendor specific blocks.
4 # Copyright (C) 2000 Daniel Stephens ([email protected])
5 #
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; either version 2
9 # of the License, or (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 # -----------------------------------------------------------------------------
20 #
21 # $Id: Makefile,v 1.12 2002/09/02 20:28:46 daniel Exp $
22
23 # Some operating-system dependent choices for compile-time flags. Uncomment
24 # whichever is most appropriate
25 # -- g++ on linux
26 OSCXXFLAGS=-ansi -pedantic
27 # -- Cygwin under Windows 2000
28 #OSCXXFLAGS=
29
30 CXX=g++
31 INCLUDES=
32
33 CXXFLAGS+=-Wall $(OSCXXFLAGS) -D_GNU_SOURCE -O2 $(INCLUDES)
34
35 LIBOBJS=rationals.o exiftags.o \
36 nikontags.o olympustags.o canontags.o casiotags.o dpyfuncs.o \
37 metatiff.o filetiff.o tiffdata.o dataifd.o dataifdentry.o editifd.o \
38 ocontext.o lookups.o
39 EXEOBJS=metacam.o
40 HDRS=metacam.h dpyfuncs.h metatiff.h filetiff.h datatiff.h edittiff.h \
41 odrivers.h
42
43 DEPS=$(LIBOBJS:.o=.dep) $(EXEOBJS:.o=.dep)
44
45 ##### TARGETS ######
46
47 default: metacam
48
49 clean:
50 -rm -f *.o *~ *-
51
52 tags:
53 etags *.cc *.h
54
55 realclean:
56 -rm -f metacam
57 -rm -f *.o *~ *-
58 -rm -f *.dep
59 -rm -f dependencies
60 -rm -f TAGS
61
62 libmetacam.a: $(LIBOBJS)
63 rm -f libmetacam.a
64 ar rsc libmetacam.a- $(LIBOBJS)
65 mv -f libmetacam.a- libmetacam.a
66
67 metacam: $(EXEOBJS) libmetacam.a
68 $(CXX) $(CXXFLAGS) $(LDFLAGS) $(EXEOBJS) -o metacam -lm -L. -lmetacam
69
70 # Dependency rules
71 dependencies: Makefile $(DEPS)
72 cat $(DEPS) > dependencies-
73 mv -f dependencies- dependencies
74
75 # Each .dep file will hold dependencies for both the .o file, and an identical
76 # list to determine when the .dep file needs rebuilding. Clever eh?
77 %.dep: %.cc $(HDRS)
78 $(CXX) $(CFLAGS) $(INCS) -M -E -c $*.cc > $*.dep-
79 sed -e 's/[.]o:/.dep:/' $*.dep- > $*.dep--
80 cat $*.dep-- >> $*.dep-
81 rm -f $*.dep--
82 mv -f $*.dep- $*.dep
83
84 tar:
85 -rm -f files.tar
86 tar -cvf files.tar $(LIBOBJS:.o=.cc) $(EXEOBJS:.o=.cc) $(HDRS) Makefile THANKS $(wildcard README.*) LICENSE.TXT BUGS
87
88 include dependencies
89