Subversion Repositories shark

Rev

Rev 2 | Blame | Compare with Previous | Last modification | View Log | RSS feed

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


# Various programs and their options

CC            = gcc
#OPT           = -nostdinc -O6 -finline-functions -fno-builtin
OPT           = -Wall -nostdinc -O -finline-functions -fno-builtin
OPT           = -Wall -O -finline-functions -fno-builtin
HARTIK        = ../../hartik
LIB_PATH      = $(HARTIK)/lib
DEFS          = -DHAVE_CONFIG_H -D__LINUX__ -DNOCONTROLS
INCLUDES      = -I.
INCLUDES      = -I. -I$(HARTIK)/drivers/linuxcom/include -I$(HARTIK)/h/x86 -I$(HARTIK)/h -I$(HARTIK)/h/sys 
CFLAGS        = $(OPT) $(DEFS) $(INCLUDES)
AR            = ar
#ARFLAGS       = ru
ARFLAGS       = rs
#RANLIB        = ranlib
#SHELL         = /bin/sh


LIBNAME = mpg

# 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.c wrapper.c gdith.c gdithMNI.c readfile.c 16bit.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        = $(DECODER_SRC) $(DITHER_SRC)
LIBOBJ        = $(DECODER_SRC:.c=.o) $(DITHER_SRC:.c=.o)


# Other files of interest

LIBRARY       = libmpeg.a
MPEGTEST      = mpegtest

# Targets for all platforms

#all:           $(LIBRARY)  mpegtest
all:            $(LIBRARY)

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

#$(LIBOBJ):     Makefile


# Makefile fragment to compile stuff in extras/ (regardless of 
# whether it can be built or not -- that's decided in the main
# Makefile)

mpegtest:       extras/mpegtest libmpeg.a
                rm -f mpegtest
                ln -s extras/mpegtest .

extras/mpegtest:extras
                (cd extras ; $(MAKE) mpegtest)

easympeg:       extras/easympeg libmpeg.a
                rm -f easympeg
                ln -s extras/easympeg .

extras/easympeg:extras
                (cd extras ; $(MAKE) easympeg)

check:          mpegtest
                ./mpegtest -checksum test.mpg

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