File: Makefile

package info (click to toggle)
exiftags 1.01-8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 564 kB
  • sloc: ansic: 7,739; makefile: 92
file content (53 lines) | stat: -rw-r--r-- 1,384 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $Id: Makefile,v 1.22 2005/01/05 00:30:32 ejohnst Exp $

#
# Add any new maker note modules here.
#
MKRS=makers.o canon.o olympus.o fuji.o nikon.o casio.o minolta.o \
	sanyo.o asahi.o leica.o panasonic.o sigma.o

#
# Or, if you don't want maker note modules...
#
NOMKRS=makers_stub.o

#
# A few parameters...
#
CC=cc

prefix=/usr/
datadir=$(DESTDIR)$(prefix)/share
bindir=$(DESTDIR)$(prefix)/bin
mandir=$(datadir)/man/man1

OBJS=exif.o tagdefs.o exifutil.o exifgps.o jpeg.o
HDRS=exif.h exifint.h jpeg.h makers.h


.SUFFIXES: .o .c
.c.o:
	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<


all: exiftags exifcom exiftime

exiftags: exiftags.o $(OBJS) $(MKRS) $(HDRS)
	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ exiftags.o $(OBJS) $(MKRS) -lm $(LDFLAGS)

exifcom: exifcom.o $(OBJS) $(NOMKRS) $(HDRS)
	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ exifcom.o $(OBJS) $(NOMKRS) -lm $(LDFLAGS)

exiftime: exiftime.o timevary.o $(OBJS) $(NOMKRS) $(HDRS)
	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ exiftime.o timevary.o $(OBJS) $(NOMKRS) -lm $(LDFLAGS)

clean:
	@rm -f $(OBJS) $(MKRS) $(NOMKRS) exiftags.o exifcom.o exiftime.o \
	timevary.o exiftags exifcom exiftime

install: all
	cp exiftags exifcom exiftime $(bindir)
	chmod 0755 $(bindir)/exiftags $(bindir)/exifcom $(bindir)/exiftime
	mkdir -p $(mandir)
	cp exiftags.1 exifcom.1 exiftime.1 $(mandir)
	chmod 0644 $(mandir)/exiftags.1 $(mandir)/exifcom.1 $(mandir)/exiftime.1