view recpt1/Makefile.in @ 96:52f8e081763d

add an option to specify the necessary service IDs. patch by Naoya OYAMA <naoya.oyama@gmail.com>, based on the code of tssplitter_lite by querulous.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 10 Feb 2010 14:33:32 +0900
parents 1086bec1a684
children e7b786c42ca0
line wrap: on
line source

DESTDIR =
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
CC = @CC@

TARGET = recpt1
TARGET2 = recpt1ctl
TARGETS = $(TARGET) $(TARGET2)
RELEASE_VERSION = "1.1.0"

CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
CFLAGS   = -O2 -g -pthread

LIBS     = @LIBS@
LDFLAGS  =

OBJS   = recpt1.o decoder.o mkpath.o tssplitter_lite.o
OBJS2  = recpt1ctl.o
DEPEND = .deps

all: $(TARGETS)

clean:
	rm -f $(OBJS) $(OBJS2) $(TARGETS) $(DEPEND) version.h

distclean: clean
	rm -f Makefile config.h config.log config.status

maintainer-clean: distclean
	rm -fr configure config.h.in aclocal.m4 autom4te.cache *~

$(TARGET): $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

$(TARGET2): $(OBJS2)
	$(CC) $(LDFLAGS) -o $@ $(OBJS2) $(LIBS2)

$(DEPEND): version.h
	$(CC) -MM $(OBJS:.o=.c) $(OBJS2:.o=.c) $(CPPFLAGS) > $@

version.h:
	revh=`hg parents --template 'const char *version = "r{rev}:{node|short} ({date|shortdate})";\n' 2>/dev/null`; \
	if [ -n "$$revh" ] ; then \
		echo "$$revh" > $@; \
	else \
		echo "const char *version = \"$(RELEASE_VERSION)\";" > $@; \
	fi

install: $(TARGET)
	install -m 755 $(TARGETS) $(DESTDIR)$(bindir)

-include .deps