|
Lines 1-21
Link Here
|
| 1 |
# This Makefile is a modified version of the one from the dcraw Debian package |
1 |
# This Makefile is a modified version of the one from the dcraw Debian package |
| 2 |
|
2 |
|
| 3 |
CC = gcc |
3 |
CC += gcc |
| 4 |
INSTALL = /usr/bin/install |
4 |
INSTALL = /usr/bin/install |
| 5 |
CFLAGS = -O3 -g -Wall -I/usr/include -I/usr/include/lcms |
5 |
CFLAGS += -g -Wall -I/usr/include -I/usr/include/lcms |
| 6 |
|
6 |
|
| 7 |
default: dcraw parse |
7 |
default: dcraw dcparse |
| 8 |
|
8 |
|
| 9 |
dcraw: |
9 |
dcraw: |
| 10 |
$(CC) $(CFLAGS) -lm -ljpeg -llcms -o $@ $@.c |
10 |
$(CC) $(CFLAGS) -lm -ljpeg -llcms -o $@ $@.c |
| 11 |
|
11 |
|
| 12 |
parse: |
12 |
dcparse: |
| 13 |
$(CC) $(CFLAGS) -o dc$@ $@.c |
13 |
$(CC) $(CFLAGS) -o $@ parse.c |
| 14 |
|
14 |
|
| 15 |
clean: |
15 |
clean: |
| 16 |
rm -f core *.o dcraw dcparse clean_crw |
16 |
rm -f core *.o dcraw dcparse clean_crw |
| 17 |
|
17 |
|
| 18 |
install: dcraw parse |
18 |
install: dcraw dcparse |
| 19 |
$(INSTALL) -d $(DESTDIR)/usr/bin |
19 |
$(INSTALL) -d $(DESTDIR)/usr/bin |
| 20 |
$(INSTALL) dcraw $(DESTDIR)/usr/bin |
20 |
$(INSTALL) dcraw $(DESTDIR)/usr/bin |
| 21 |
$(INSTALL) dcparse $(DESTDIR)/usr/bin |
21 |
$(INSTALL) dcparse $(DESTDIR)/usr/bin |