File: Makefile

package info (click to toggle)
jhead 1.6-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 264 kB
  • ctags: 221
  • sloc: ansic: 2,046; makefile: 73
file content (41 lines) | stat: -rw-r--r-- 811 bytes parent folder | download
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
#--------------------------------
# jhead makefile for Unix
#--------------------------------
#
# Modified on 2001-12-30 by Dave Baker <dsb3@debian.org> as part of 
# the process to turn this into a Debian package.
#

# DESTDIR allows package building in non-root location 
DESTDIR=	/
prefix=		${DESTDIR}/usr
exec_prefix=	${prefix}
install=	/usr/bin/install -c

EXE=		jhead


all: $(EXE)

objs = jhead.o exif.o

%.o:%.c
	cc -O3 -Wall -c $< -o $@

$(EXE): $(objs) jhead.h
	cc -o jhead $(objs) -lm
	strip $(EXE)

clean:
	rm -f $(objs) *~ $(EXE) $(EXE).1

install:	$(EXE) install-man
	$(install) -d ${exec_prefix}/bin
	$(install) -m 755 $(EXE) ${exec_prefix}/bin

install-man:
	$(install) -d ${prefix}/share/man/man1
	$(install) -m 644 $(EXE).1 ${prefix}/share/man/man1