#
# Makefile.in for the MPEG Library -- this has to be processed by
# `configure' to be meaningful!
#


# Various programs and their options

CC            = @CC@
OPT           = @OPT@
DEFS          = @DEFS@
INCLUDES      = -I.
CFLAGS        = $(OPT) $(DEFS) $(INCLUDES)
AR            = @AR@
ARFLAGS       = ru
RANLIB        = @RANLIB@
SHELL         = /bin/sh


# Source for the library itself -- note that we define LIBSRC and
# LIBOBJ this way (instead of just LIBOBJ=$(LIBSRC:.c=.o) because
# HP-UX make is stupid.

DECODER_SRC   = util.c video.c parseblock.c motionvector.c decoders.c \
		@jrevdct@wrapper.c globals.c 24bit.c gdith.c
DITHER_SRC    = fs2.c fs2fast.c fs4.c hybrid.c hybriderr.c 2x2.c gray.c \
		mono.c ordered.c ordered2.c mb_ordered.c
LIBSRC        = @libsrc@
LIBOBJ        = @libobj@


# Other files of interest

LIBRARY       = libmpeg.a
MPEGTEST      = mpegtest

# Targets for all platforms

all:		$(LIBRARY) @extras@

$(LIBRARY):	$(LIBOBJ)
		$(AR) $(ARFLAGS) $(LIBRARY) $(LIBOBJ)
		$(RANLIB) $(LIBRARY)

$(LIBOBJ):	Makefile

@Makefile_extras@

clean:
		rm -f $(LIBRARY) mpegtest core $(LIBOBJ)
		(cd extras ; $(MAKE) clean)

distclean: clean
		rm -f config.cache config.log config.status Makefile config.h
		cd extras && $(MAKE) distclean

# Include a system-specific Makefile fragment, if any

@Makefile_OS@
