File:  [DVB] / multiplexer / makefile
Revision 1.5: download - view: text, annotated - select for diffs
Mon May 14 19:29:17 2001 UTC (23 years, 1 month ago) by oskar
Branches: MAIN
CVS tags: HEAD
Use memmove in command processing
Add tiny tool 'repeatts' to allow sending a TS-file (containing e.g. DSMCC)
repeatedly and with a simple timing. The tool also allows changing the current
file on the fly by giving a new command to stdin. See man page for details.

# make iso 13818-1 stream multiplexer

INCLUDEDIR = /usr/local/include
SHELL = /bin/bash
BINDIR = /usr/local/bin
MANDIR = /usr/local/man/man1

CFLAGS = -O -c -Wall -mpreferred-stack-boundary=2 -I$(INCLUDEDIR)
CC = gcc

OBJS_G = dispatch.o init.o error.o crc.o input.o output.o command.o global.o descref.o splitpes.o splitps.o splitts.o splice.o
OBJ_ts = splicets.o
OBJ_ps = spliceps.o
OBJS_S = $(OBJ_ts) $(OBJ_ps)
OBJS = $(OBJS_G) $(OBJS_S)
OBJS_O = repeatts.o

TRGSTEM = iso13818
TARGETS_I = $(TRGSTEM)ts $(TRGSTEM)ps
TARGETS_O = repeatts
TARGETS = $(TARGETS_O) $(TARGETS_I)

HEADERS = dispatch.h error.h crc.h input.h output.h command.h global.h descref.h splitpes.h splitps.h splitts.h splice.h pes.h ps.h ts.h makefile

.PHONY:	all clean install

all:	$(TARGETS)

$(TARGETS_I):	$(OBJS)
	$(CC) -o $@ $(OBJS_G) $($(subst $(TRGSTEM),OBJ_,$@))

$(TARGETS_O):	$(OBJS_O)
	$(CC) -o $@ $@.o

$(OBJS_G) $(OBJS_O):	%.o:	%.c $(HEADERS)
	$(CC) $(CFLAGS) -o $@ $<

$(OBJS_S):	%.o:	%.c %.h $(HEADERS)
	$(CC) $(CFLAGS) -o $@ $<

clean:
	rm -f *.o *~ $(TARGETS)

install:
	install -d $(BINDIR) $(MANDIR)
	install -c -m 755 $(TARGETS) $(BINDIR)
	install -c -m 644 *.1 $(MANDIR)


LinuxTV legacy CVS <linuxtv.org/cvs>