aboutsummaryrefslogtreecommitdiffstats
path: root/util/scan/Makefile
diff options
context:
space:
mode:
authoretobi <git@e-tobi.net>2013-09-03 09:48:41 +0200
committeretobi <git@e-tobi.net>2013-09-03 09:48:41 +0200
commitab959d7b4194715870128e616b8e29d4a101e488 (patch)
tree61a746231d30817be73416a7d67763fd677a1042 /util/scan/Makefile
parent6b350466c4902c5b137e0efaf1d189128a7f18f5 (diff)
downloadlinux-dvb-apps-753ce5b9809deed38d6db404dc72e1e0e8ac4b29.tar.gz
Imported Upstream version 1.1.1+rev1207upstream/1.1.1+rev1207
Diffstat (limited to 'util/scan/Makefile')
-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/