view src/Makefile @ 172:89e24a1c8a64

Fix problem: If boot argument channel had selected by DLNA. Stream will interrupted.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Mon, 29 Oct 2012 22:25:59 +0900
parents 061ef2cd98f0
children 03ab3ade9fe5
line wrap: on
line source

ifeq (,$(wildcard ../config.mak))
$(error "../config.mak is not present, run configure !")
endif
include ../config.mak

PROG = recpt1
PROG2 = checksignal
PROG3 = pt1_lnbd
PROG4 = recpt1ctl

EXTRADIST = ushare.1 \
	cds.h \
	cms.h \
	msr.h \
	http.h \
	presentation.h \
	metadata.h \
	mime.h \
	services.h \
	buffer.h \
	util_iconv.h \
	content.h \
	cfgparser.h \
	trace.h \
	redblack.h \
	osdep.h \
	ctrl_telnet.h \
	ushare.h \
	gettext.h \
	minmax.h \
	decoder.h \
	mkpath.h \
	pt1_dev.h \
	recpt1.h \
	tssplitter_lite.h \
	upnp_device.h \
	upnp_main.h \
	version.h \
        pt1_common.h \

SRCS = \
        cds.c \
        cms.c \
        msr.c \
        http.c \
        presentation.c \
        metadata.c \
        mime.c \
        services.c \
        buffer.c \
        util_iconv.c \
        content.c \
        cfgparser.c \
        trace.c \
        redblack.c \
        osdep.c \
        ctrl_telnet.c \
        ushare.c \
	decoder.c \
	mkpath.c \
	recpt1.c \
	tssplitter_lite.c \
	pt1_common.c

SRCS2 = \
        checksignal.c \
	pt1_common.c

SRCS3 = \
        pt1_lnbd.c

SRCS4 = \
        recpt1ctl.c \
	pt1_common.c

LIBS2 = -lpthread -lm

OBJS = $(SRCS:.c=.o)
OBJS2 = $(SRCS2:.c=.o)
OBJS3 = $(SRCS3:.c=.o)
OBJS4 = $(SRCS4:.c=.o)

.SUFFIXES: .c .o

all: depend $(PROG) $(PROG2) $(PROG3) $(PROG4)

.c.o:
	$(CC) -c $(CFLAGS) -g $(OPTFLAGS) -o $@ $<

$(PROG): $(OBJS)
	$(CC) $(OBJS) $(LDFLAGS) $(EXTRALIBS) -o $@

$(PROG2): $(OBJS2)
	$(CC) $(OBJS2) $(LDFLAGS) $(EXTRALIBS) $(LIBS2) -o $@

$(PROG3): $(OBJS3)
	$(CC) $(OBJS3) $(LDFLAGS) $(EXTRALIBS) -o $@

$(PROG4): $(OBJS4)
	$(CC) $(OBJS3) $(LDFLAGS) $(EXTRALIBS) -o $@

clean:
	-$(RM) -f *.o $(PROG) $(PROG2) $(PROG3) $(PROG4)
	-$(RM) -f .depend

distclean:

install: $(PROG) $(PROG2) $(PROG3) $(PROG4)
	$(INSTALL) -d $(bindir)
	$(INSTALL) $(PROG) $(bindir)
	$(INSTALL) $(PROG2) $(bindir)
	$(INSTALL) $(PROG3) $(bindir)
	$(INSTALL) $(PROG4) $(bindir)
	$(INSTALL) channelscan_pt1.sh $(bindir)
	$(INSTALL) epgdump_xml_parse.pl $(bindir)
	$(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG)
	$(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG2)
	$(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG3)
	$(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG4)

depend:
	$(CC) -I.. -MM $(CFLAGS) $(SRCS) 1>.depend

.PHONY: clean distclean install depend

dist-all:
	cp $(EXTRADIST) $(SRCS) Makefile $(DIST)

.PHONY: dist-all

#
# include dependency files if they exist
#
ifneq ($(wildcard .depend),)
include .depend
endif