2 # Customise the path of your kernel
5 TOPDIR
= `basename ${PWD}`
7 CFLAGS
+= -Wall
-O3
-fomit-frame-pointer
9 CFLAGS
+= -I
/usr
/src
/kernel
/linux-2.6
.29.1/include
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
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
)
30 @
rm -f dvblast dvblastctl
$(OBJ_DVBLAST
) $(OBJ_DVBLASTCTL
)
35 @
install dvblast dvblastctl dvblast_mmi.sh
$(BIN
)
36 @
install -m
644 dvblast
.1 $(MAN
)
39 @
rm $(BIN
)/dvblast
$(BIN
)/dvblastctl
$(BIN
)/dvblast_mmi.sh
$(MAN
)/dvblast
.1
43 tar -cj
--exclude-vcs
--exclude
$(TOPDIR
)/*.
tar.bz2
$(TOPDIR
)/ > $(TOPDIR
)/dvblast-
$(VERSION
).
tar.bz2
)