1999-09-18 17:55:03 +00:00
|
|
|
--- Makefile.in.orig Fri Nov 27 01:03:29 1998
|
|
|
|
+++ Makefile.in Tue Aug 31 23:11:56 1999
|
|
|
|
@@ -26,6 +26,7 @@
|
|
|
|
ARFLAGS = -ru
|
1997-10-15 13:17:50 +00:00
|
|
|
RANLIB = @RANLIB@
|
|
|
|
|
|
|
|
+.SUFFIXES: .so
|
|
|
|
|
|
|
|
# Source for the library itself -- note that we define LIBSRC and
|
|
|
|
# LIBOBJ this way (instead of just LIBOBJ=$(LIBSRC:.c=.o) because
|
1999-09-18 17:55:03 +00:00
|
|
|
@@ -37,12 +38,17 @@
|
1997-10-15 13:17:50 +00:00
|
|
|
mono.c ordered.c ordered2.c mb_ordered.c
|
|
|
|
LIBSRC = @libsrc@
|
|
|
|
LIBOBJ = @libobj@
|
|
|
|
+SHLIBOBJ = @shlibobj@
|
|
|
|
|
|
|
|
|
|
|
|
# Other files of interest
|
|
|
|
|
|
|
|
LIBRARY = libmpeg.a
|
1999-09-18 17:55:03 +00:00
|
|
|
-SHLIB = libmpeg.so
|
1998-09-19 19:06:50 +00:00
|
|
|
+.if ${PORTOBJFORMAT} == elf
|
1999-09-18 17:55:03 +00:00
|
|
|
+SHLIB = libmpeg.so.1
|
1998-09-19 19:06:50 +00:00
|
|
|
+.else
|
1999-09-18 17:55:03 +00:00
|
|
|
+SHLIB = libmpeg.so.1.3
|
1998-09-19 19:06:50 +00:00
|
|
|
+.endif
|
1999-09-18 17:55:03 +00:00
|
|
|
HEADER = mpeg.h
|
|
|
|
EXTRAS = @extras@
|
|
|
|
|
|
|
|
@@ -53,7 +59,7 @@
|
1997-10-15 13:17:50 +00:00
|
|
|
|
1999-09-18 17:55:03 +00:00
|
|
|
# Library/cleanup targets:
|
1997-10-15 13:17:50 +00:00
|
|
|
|
1999-09-18 17:55:03 +00:00
|
|
|
-all: lib $(EXTRAS)
|
|
|
|
+all: lib shlib $(EXTRAS)
|
1997-10-15 13:17:50 +00:00
|
|
|
|
1999-09-18 17:55:03 +00:00
|
|
|
lib: $(LIBRARY)
|
|
|
|
|
|
|
|
@@ -63,14 +69,18 @@
|
1997-10-15 13:17:50 +00:00
|
|
|
$(AR) $(ARFLAGS) $(LIBRARY) $(LIBOBJ)
|
|
|
|
$(RANLIB) $(LIBRARY)
|
|
|
|
|
1999-09-18 17:55:03 +00:00
|
|
|
-$(SHLIB): $(LIBOBJ)
|
|
|
|
- $(CC) -shared -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
|
|
|
|
+$(SHLIB): $(SHLIBOBJ)
|
1998-09-19 19:06:50 +00:00
|
|
|
+.if ${PORTOBJFORMAT} == elf
|
1999-09-18 17:55:03 +00:00
|
|
|
+ $(CC) -shared -Wl,-soname,$(SHLIB) -o $(SHLIB) $(SHLIBOBJ)
|
1998-09-19 19:06:50 +00:00
|
|
|
+.else
|
1999-09-18 17:55:03 +00:00
|
|
|
+ $(CC) -shared -o $(SHLIB) $(SHLIBOBJ)
|
1998-09-19 19:06:50 +00:00
|
|
|
+.endif
|
1999-09-18 17:55:03 +00:00
|
|
|
+ ln -sf $(SHLIB) `echo $(SHLIB) | sed 's/\.so.*$$/\.so/'`
|
1997-10-15 13:17:50 +00:00
|
|
|
+
|
|
|
|
+install:
|
1999-09-18 17:55:03 +00:00
|
|
|
+ install -c -m 444 ${LIBRARY} ${SHLIB} ${PREFIX}/lib
|
|
|
|
+ (cd ${PREFIX}/lib; ln -sf $(SHLIB) `echo $(SHLIB) | sed 's/\.so.*$$/\.so/'`)
|
|
|
|
+ install -c -m 444 mpeg.h ${PREFIX}/include
|
1997-10-15 13:17:50 +00:00
|
|
|
|
|
|
|
clean:
|
1999-09-18 17:55:03 +00:00
|
|
|
rm -f $(LIBRARY) $(EXTRAS) $(LIBOBJ) core
|
|
|
|
@@ -80,6 +90,8 @@
|
1997-10-15 13:17:50 +00:00
|
|
|
rm -f config.cache config.log config.status Makefile config.h
|
|
|
|
cd extras && $(MAKE) distclean
|
1999-09-18 17:55:03 +00:00
|
|
|
|
1997-10-15 13:17:50 +00:00
|
|
|
+.c.so:
|
1999-09-18 17:55:03 +00:00
|
|
|
+ ${CC} ${CFLAGS} $(INCLUDE_DIRS) -fpic -DPIC -c $< -o $@
|
1997-10-15 13:17:50 +00:00
|
|
|
|
1999-09-18 17:55:03 +00:00
|
|
|
# Executable targets (mpegtest, easympeg [GL platforms only])
|
1997-10-15 13:17:50 +00:00
|
|
|
|