aboutsummaryrefslogtreecommitdiffstats
path: root/util/scan/Makefile
diff options
context:
space:
mode:
authorMark Purcell <msp@debian.org>2008-06-22 11:00:40 +1000
committeretobi <git@e-tobi.net>2013-09-03 09:48:42 +0200
commit891c51ff368ed700dec6025eeb47ce4d96f76418 (patch)
tree3729664829e4faa691d403274f38eb10890b533c /util/scan/Makefile
parent1c6e1f28f54ec2606c23936c1d8689f2be55a86c (diff)
parentab959d7b4194715870128e616b8e29d4a101e488 (diff)
downloadlinux-dvb-apps-debian/1.1.1+rev1207-1.tar.gz
Imported Debian patch 1.1.1+rev1207-1debian/1.1.1+rev1207-1
Diffstat (limited to '')
-rw-r--r--util/scan/Makefile46
1 files changed, 33 insertions, 13 deletions
diff --git a/util/scan/Makefile b/util/scan/Makefile
index 4b29842..32d1f1c 100644
--- a/util/scan/Makefile
+++ b/util/scan/Makefile
@@ -1,21 +1,41 @@
+# Makefile for linuxtv.org dvb-apps/util/scan
-CC = gcc
-CFLAGS = -MD -g -Wall -O2 -I../../include
-LFLAGS = -g -Wall
+objects = atsc_psip_section.o \
+ diseqc.o \
+ dump-vdr.o \
+ dump-zap.o \
+ lnb.o \
+ scan.o \
+ section.o
-OBJS = diseqc.o dump-zap.o dump-vdr.o scan.o lnb.o section.o atsc_psip_section.o
-SRCS = $(OBJS:.o=.c)
+binaries = scan
-TARGET = scan
+inst_bin = $(binaries)
-$(TARGET): $(OBJS)
- $(CC) $(LFLAGS) -o $(TARGET) $(OBJS)
+removing = atsc_psip_section.c atsc_psip_section.h
-.c.o:
- $(CC) $(CFLAGS) -c $< -o $@
+CPPFLAGS += -DDATADIR=\"$(prefix)/share\"
-clean:
- $(RM) *.o *.d $(TARGET)
+.PHONY: all
--include $(wildcard *.d) dummy
+all: $(binaries)
+$(binaries): $(objects)
+
+$(objects): atsc_psip_section.c atsc_psip_section.h
+
+atsc_psip_section.c atsc_psip_section.h:
+ perl section_generate.pl atsc_psip_section.pl
+
+include ../../Make.rules
+
+install::
+ @echo installing scan files
+ @mkdir -p $(DESTDIR)$(sharedir)/dvb/atsc
+ @mkdir -p $(DESTDIR)$(sharedir)/dvb/dvb-c
+ @mkdir -p $(DESTDIR)$(sharedir)/dvb/dvb-s
+ @mkdir -p $(DESTDIR)$(sharedir)/dvb/dvb-t
+ @install -m 664 atsc/* $(DESTDIR)$(sharedir)/dvb/atsc/
+ @install -m 664 dvb-c/* $(DESTDIR)$(sharedir)/dvb/dvb-c/
+ @install -m 664 dvb-s/* $(DESTDIR)$(sharedir)/dvb/dvb-s/
+ @install -m 664 dvb-t/* $(DESTDIR)$(sharedir)/dvb/dvb-t/