PROG=mpegcmd
#
# mpegcmd/Makefile:
#
# Copyright (c) 2000 James McKenzie <james@fishsoup.dhs.org>,
# All rights reserved.
#
# $Id:$
#
# $Log:$
#
include ../make.inc

INCLUDES  = -I../shared -I../libhifimsg -I../libfiles ${DBINC}
CFLAGS= $(OPT) $(DEFINES) $(INCLUDES) ${WARN}
LDFLAGS=-L../libhifimsg  -Llibmpeg2audio 
LIB=../libhifimsg/libhifimsg.a ../libfiles/libfiles.a
LIBS=${LIB} ${MATHLIB} ${DBLIB}

SRCS = mpegcmd.c
OBJS = $(SRCS:.c=.o) 

all: ${PROG}

${PROG}: $(OBJS) ${LIB}
	$(CC) ${LDFLAGS} $(CFLAGS) $(OBJS) -o $@ ${LIBS}

%.o:%.c
	$(CC) $(CFLAGS) $(INCLUDES) -c $<

clean:
	/bin/rm -rf *% *~ ${OBJS} core a.out ${PROG}

depend:
	${MAKEDEPEND} -f- -s "# DO NOT DELETE" -- $(INCLUDES) -- $(SRCS) > .depend
nodepend:
	/bin/rm -f .depend

checkin:
	${RCSCI} -m# -l ${SRCS} ${HS} Makefile

protos:
	
tidy:checkin
	${INDENT} -ts0 -i2 ${SRCS} ${HS}

ifeq (.depend,$(wildcard .depend))
  include .depend
endif

