File: Makefile.in

package info (click to toggle)
dv4l 1.0-5.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 560 kB
  • sloc: ansic: 7,541; makefile: 324; sh: 187
file content (93 lines) | stat: -rw-r--r-- 2,297 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Copyright (C) 2007 Free Software Foundation, Inc.
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# Author: Wolfgang Beck <bewo at users.berlios.de> 2007

VER := @PACKAGE_VERSION@
CFLAGS := -Wall -fPIC -O3 -MMD -D__KERNEL_STRICT_NAMES
LDFLAGS := -lraw1394 -liec61883 -ldv

datarootdir=@datarootdir@
bindir=@prefix@@bindir@
mandir=@prefix@@mandir@

SRC := \
normfile.c \
palettes.c \
scale.c \
util.c \
dv4l.c

INCS := \
palettes.h \
normfile.h \
scale.h \
util.h

ARCHIVE := \
CHANGES \
LICENSE \
Makefile.in \
config.h.in \
version.h.in \
configure.ac \
configure \
mkdv4lstart \
interdv4l.c \
dv4l.1 \
dv4lstart.1 \
$(SRC) \
$(INCS)

OBJ := $(SRC:.c=.o)

all: dv4l libdv4l.so dv4lstart

dv4l: $(OBJ)
	$(CC) -o $@ $(OBJ) $(LDFLAGS)

libdv4l.so: $(OBJ)
	$(CC) $(CFLAGS) -shared -fpic -Wl,-soname,$@ \
	-DDV4LLIBNAME=@prefix@@libdir@/libdv4l.so \
	$(OBJ) \
	-ldl -lraw1394 -liec61883 -ldv -o $@
	
dv4lstart:
	./mkdv4lstart @prefix@@libdir@ $(VER)

tar:
	mkdir dv4l-$(VER)
	cp $(ARCHIVE) dv4l-$(VER)
	tar cvzf dv4l-$(VER).tar.gz dv4l-$(VER)
	rm -rf dv4l-$(VER)

clean:
	rm -f *.o core dv4l dv4lstart libdv4l.so

install: dv4l dv4lstart libdv4l.so
	install -D -m 0750 -g video dv4l $(DESTDIR)$(bindir)/dv4l
	install -D -m 0644 dv4l.1 $(DESTDIR)$(mandir)/man1/dv4l.1
	install -D -m 0644 dv4lstart.1 $(DESTDIR)$(mandir)/man1/dv4lstart.1
	install -D -m 0755 libdv4l.so $(DESTDIR)@prefix@@libdir@/libdv4l.so
	install -D -m 0755 dv4lstart $(DESTDIR)@prefix@@bindir@/dv4lstart

uninstall:
	rm -f $(DESTDIR)$(bindir)/dv4l
	rm -f $(DESTDIR)$(mandir)/man1/dv4l.1
	rm -f $(DESTDIR)$(mandir)/man1/dv4lstart.1
	rm -f $(DESTDIR)@prefix@@bindir@/dv4lstart
	rm -f $(DESTDIR)@prefix@@libdir@/libdv4l.so

-include *.d