1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
|
#
# Makefile.in for the MPEG Library -- this has to be processed by
# `configure' to be meaningful!
#
VERSION = 1.3.1
SHELL = /bin/sh
# Compiler and compiler/preprocessor flags
CC = @CC@
OPTIMIZE = @OPTIMIZE@
EXTRA_CFLAGS = @EXTRA_CFLAGS@
INCLUDE_DIRS = -I. @INCLUDE_DIRS@
DEFINES = @DEFINES@
CFLAGS = $(OPTIMIZE) $(EXTRA_CFLAGS)
CPPFLAGS = $(INCLUDE_DIRS) $(DEFINES)
# Installation directories (and install program)
prefix = @prefix@
exec_prefix = @exec_prefix@
INSTALL_INCLUDE = @includedir@
INSTALL_LIBRARY = @libdir@
INSTALL = @INSTALL@
# Other miscellaneous programs
AR = @AR@
ARFLAGS = -ru
RANLIB = @RANLIB@
# 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 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
SHLIB = libmpeg.so.$(VERSION)
HEADER = mpeg.h
EXTRAS = @extras@
# Implicit targets
.c.o:
$(CC) -c $(CFLAGS) $(CPPFLAGS) $<
# Library/cleanup targets:
all: lib $(EXTRAS)
lib: $(LIBRARY)
shlib: $(SHLIB)
$(LIBRARY): $(LIBOBJ)
$(AR) $(ARFLAGS) $(LIBRARY) $(LIBOBJ)
$(RANLIB) $(LIBRARY)
$(SHLIB): $(LIBOBJ)
$(CC) -shared -rdynamic -Wl,-soname -Wl,libmpeg.so.1 -o $(SHLIB) $(LIBOBJ)
install: $(LIBRARY)
$(INSTALL) -d $(INSTALL_INCLUDE) $(INSTALL_LIBRARY)
$(INSTALL) -m 0644 $(HEADER) $(INSTALL_INCLUDE)/$(HEADER)
$(INSTALL) -m 0644 $(LIBRARY) $(INSTALL_LIBRARY)/$(LIBRARY)
@if test -f $(SHLIB) ; then echo "warning: $(SHLIB) *not* installed (installing shared libraries is too system-specific)" ; fi
clean:
rm -f $(EXTRAS) $(LIBOBJ) core
cd extras && $(MAKE) clean
distclean: clean
rm -f config.cache config.log config.status Makefile config.h
rm -f $(LIBRARY) $(SHLIB)
cd extras && $(MAKE) distclean
# Executable targets (mpegtest, easympeg [GL platforms only])
mpegtest: extras/mpegtest $(LIBRARY)
rm -f mpegtest
ln -s extras/mpegtest .
extras/mpegtest:
(cd extras ; $(MAKE) mpegtest)
easympeg: extras/easympeg $(LIBRARY)
rm -f easympeg
ln -s extras/easympeg .
extras/easympeg:
(cd extras ; $(MAKE) easympeg)
check: mpegtest
./mpegtest -checksum test.mpg
# Targets to check that configuration stuff is up-to-date
configure: configure.in
@echo "configure is out-of-date -- run autoconf"
config.status config.cache: configure
@echo "$@ out-of-date -- run configure"
Makefile: Makefile.in config.status
@echo "$@ out-of-date -- run configure or config.status"
extras/Makefile: extras/Makefile.in config.status
@echo "$@ out-of-date -- run configure or config.status"
config.h: config.h.in config.status
@echo "$@ out-of-date -- run configure or config.status"
|