File: Makefile.am

package info (click to toggle)
zapping 0.10~cvs6-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 9,828 kB
  • ctags: 11,841
  • sloc: ansic: 111,154; asm: 11,770; sh: 9,816; xml: 2,742; makefile: 1,282; perl: 488
file content (70 lines) | stat: -rw-r--r-- 1,975 bytes parent folder | download | duplicates (6)
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
## Process this file with automake to produce Makefile.in
## Note $(DESTDIR)$(sbindir) also encoded in src/Makefile.am

bin_PROGRAMS = zapping_setup_fb

EXTRA_DIST = \
	zapping_setup_fb.pam

AM_CFLAGS = @DEFAULT_CFLAGS@

INCLUDES = \
	-I$(top_srcdir) \
	@COMMON_INCLUDES@

zapping_setup_fb_SOURCES = \
	zapping_setup_fb.c zapping_setup_fb.h \
	v4l.c \
	v4l2.c \
	v4l25.c

zapping_setup_fb_LDADD = \
	$(top_builddir)/libtv/libtv.la \
	@X_LIBS@ \
	-lX11 \
	-lXext \
	$(X_XINERAMA_LIBS) \
	$(X_XF86DGA_LIBS) \
	$(X_EXTRA_LIBS)

zsfb.capps:
	echo USER=root >$@
	echo SESSION=TRUE >>$@
	echo PROGRAM=$(sbindir)/zapping_setup_fb >>$@

DISTCLEANFILES = zsfb.capps

install-binPROGRAMS: $(bin_PROGRAMS) zsfb.capps
if SUID_ZSFB
	$(mkinstalldirs) $(DESTDIR)$(bindir)
	$(mkinstalldirs) $(DESTDIR)$(sbindir)
	$(INSTALL) -m4755 -o $(ZSFB_OWNER) -g $(ZSFB_GROUP) \
	  zapping_setup_fb $(DESTDIR)$(sbindir)
	ln -sf $(DESTDIR)$(sbindir)/zapping_setup_fb \
	  $(DESTDIR)$(bindir)/zapping_setup_fb
else
	$(mkinstalldirs) $(DESTDIR)$(bindir)
	$(mkinstalldirs) $(DESTDIR)$(sbindir)
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/pam.d
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/security/console.apps
	$(INSTALL) zapping_setup_fb $(DESTDIR)$(sbindir)
	ln -sf $(CONSOLEHELPER_LOCATION) $(DESTDIR)$(bindir)/zapping_setup_fb
	if ! test -e $(DESTDIR)$(sysconfdir)/pam.d/zapping_setup_fb ; then \
	  $(INSTALL_DATA) $(top_srcdir)/zapping_setup_fb/zapping_setup_fb.pam \
	    $(DESTDIR)$(sysconfdir)/pam.d/zapping_setup_fb; \
	fi
	cp zsfb.capps \
	  $(DESTDIR)$(sysconfdir)/security/console.apps/zapping_setup_fb
endif

uninstall-binPROGRAMS:
if SUID_ZSFB
	rm -f $(DESTDIR)$(bindir)/zapping_setup_fb
else
	rm -f $(DESTDIR)$(sbindir)/zapping_setup_fb
	rm -f $(DESTDIR)$(bindir)/zapping_setup_fb
	rm -f $(DESTDIR)$(sysconfdir)/security/console.apps/zapping_setup_fb
## Should we really remove this file? The administrator might have
## changed it...
	rm -f $(DESTDIR)$(sysconfdir)/pam.d/zapping_setup_fb
endif