File:  [DVB] / multiplexer / makefile
Revision 1.1: download - view: text, annotated - select for diffs
Mon Mar 19 20:52:34 2001 UTC (23 years, 3 months ago) by oskar
Branches: MAIN
CVS tags: HEAD
Multiplexer, first archived version.
New feature: --badtiming (see --help)

# make iso 13818-1 stream multiplexer

INCLUDEDIR = /usr/include

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
OBJ_ts = splicets.o
OBJ_ps = spliceps.o
OBJS = $(OBJS_G) $(OBJ_ts) $(OBJ_ps)

TRGSTEM = iso13818
TARGETS = $(TRGSTEM)ps $(TRGSTEM)ts

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

.PHONY:	all install clean

all:	$(TARGETS)

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

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

install:
	install -d /usr/bin
	install -c -m 755 $(TRGSTEM)?? /usr/bin
	install -c -m 644 $(TRGSTEM)??.1 /usr/man/man1

clean:
	rm -f *.o *~ core $(TRGSTEM)??


LinuxTV legacy CVS <linuxtv.org/cvs>