PREFIX		= /usr/local
TARGETS	= epgdump
OBJ_TARGETS	= epgdump.o aribstr.o eit.o ts.o util.o sdt.o
HEDDERDEPEND	= eit.h sdt.h aribstr.h ts.h util.h

LANG		= C
CC		= gcc
CFLAGS		= -std=c99 -O2 -Wall -g
LIBS		= 

.c.o:			${CC} ${CFLAGS} -c $<

all:			${TARGETS}

${TARGETS}:		${OBJ_TARGETS}
			${CC} ${CFLAGS} ${OBJ_TARGETS} -o $@ ${LDFLAGS} ${LIBS}

${OBJ_TARGETS}:	${HEDDERDEPEND}

clean:
			rm -f core ${TARGETS} *.o

install:		${TARGETS}
			install -m755 ${TARGETS} ${PREFIX}/bin

uninstall:		${TARGETS}
			rm ${PREFIX}/bin/${TARGETS}

