* demux.c: Rebuild the PAT when changing the output configuration (DVB->non-DVB)...
[dvblast.git] / Makefile
blob77ce1ab4634c31b814d680e1d53484deaec81d26
1 # DVBlast Makefile
2 # Customise the path of your kernel
4 VERSION = 2.0.0
5 TOPDIR = `basename ${PWD}`
7 CFLAGS += -Wall -O3 -fomit-frame-pointer
8 CFLAGS += -g
9 CFLAGS += -I/usr/src/kernel/linux-2.6.29.1/include
10 LDLIBS += -lrt
11 LDLIBS_DVBLAST += -lpthread
13 OBJ_DVBLAST = dvblast.o util.o dvb.o udp.o asi.o demux.o output.o en50221.o comm.o
14 OBJ_DVBLASTCTL = util.o dvblastctl.o
16 PREFIX ?= /usr/local
17 BIN = $(DESTDIR)/$(PREFIX)/bin
18 MAN = $(DESTDIR)/$(PREFIX)/share/man/man1
20 all: dvblast dvblastctl
22 $(OBJ_DVBLAST) $(OBJ_DVBLASTCTL): Makefile dvblast.h en50221.h comm.h version.h asi.h
24 dvblast: $(OBJ_DVBLAST)
25 $(CC) -o $@ $(OBJ_DVBLAST) $(LDLIBS_DVBLAST) $(LDLIBS)
27 dvblastctl: $(OBJ_DVBLASTCTL)
29 clean:
30 @rm -f dvblast dvblastctl $(OBJ_DVBLAST) $(OBJ_DVBLASTCTL)
32 install: all
33 @install -d $(BIN)
34 @install -d $(MAN)
35 @install dvblast dvblastctl dvblast_mmi.sh $(BIN)
36 @install -m 644 dvblast.1 $(MAN)
38 uninstall:
39 @rm $(BIN)/dvblast $(BIN)/dvblastctl $(BIN)/dvblast_mmi.sh $(MAN)/dvblast.1
41 dist:
42 ( cd ../ && \
43 tar -cj --exclude-vcs --exclude $(TOPDIR)/*.tar.bz2 $(TOPDIR)/ > $(TOPDIR)/dvblast-$(VERSION).tar.bz2 )