File:  [DVB] / multiplexer / makefile
Revision 1.3: download - view: text, annotated - select for diffs
Mon Apr 9 16:07:56 2001 UTC (23 years, 2 months ago) by oskar
Branches: MAIN
CVS tags: HEAD
Bug fixes on commands 'append' and 'cut'.\nUse PCR as OPCR if no OPCR was present on source\nCorrection on time handling for poll\nKeep SID more stable across mplex

# make iso 13818-1 stream multiplexer

INCLUDEDIR = /usr/include
SHELL = /bin/bash
BINDIR = /usr/bin
MANDIR = /usr/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)

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

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 clean install

all:	$(TARGETS)

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

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

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

clean:
	rm -f *.o *~ $(TRGSTEM)*[[:alnum:]]?

install:
	install -d $(BINDIR) $(MANDIR)
	install -c -m 755 $(TRGSTEM)*[[:alnum:]]? $(BINDIR)
	install -c -m 644 $(TRGSTEM)*.1 $(MANDIR)


LinuxTV legacy CVS <linuxtv.org/cvs>