File: Makefile

package info (click to toggle)
dcraw 7.02-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 212 kB
  • ctags: 260
  • sloc: ansic: 5,370; makefile: 71; sh: 22
file content (36 lines) | stat: -rw-r--r-- 656 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
# Executables
CC     = gcc
INSTALL= /usr/bin/install

# Flags
CFLAGS = -I. -O3 -g -Wall

SRC = dcraw.c parse.c fixdates.c
OBJ = dcraw.o parse.o fixdates.o

# Targets
default: dcraw dcparse dcfixdates

dcraw: dcraw.o
	$(CC) -s -o $@ dcraw.o -lm -ljpeg

dcparse: parse.o
	$(CC) -s -o $@ parse.o

dcfixdates: fixdates.o
	$(CC) -s -o $@ fixdates.o

clean:
	rm -f core *.o dcraw dcparse dcfixdates

dcraw.o: dcraw.c

parse.o: parse.c

fixdates.o: fixdates.c

install: dcraw dcparse dcfixdates
	$(INSTALL) dcraw $(DESTDIR)/usr/bin
	$(INSTALL) dcraw.1 $(DESTDIR)/usr/share/man/man1
	$(INSTALL) dcparse $(DESTDIR)/usr/bin
	$(INSTALL) dcfixdates $(DESTDIR)/usr/bin