blob: 8d562227f16171b4de9b3fceb6a8b1e437ccc260 (
plain)
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
|
$NetBSD: patch-ap,v 1.5 2001/08/02 13:28:47 jlam Exp $
--- Makefile.in.orig Thu Nov 26 11:03:29 1998
+++ Makefile.in
@@ -11,7 +11,7 @@
EXTRA_CFLAGS = @EXTRA_CFLAGS@
INCLUDE_DIRS = -I. @INCLUDE_DIRS@
DEFINES = @DEFINES@
-CFLAGS = $(OPTIMIZE) $(EXTRA_CFLAGS)
+CFLAGS += $(OPTIMIZE) $(EXTRA_CFLAGS)
CPPFLAGS = $(INCLUDE_DIRS) $(DEFINES)
# Installation directories (and install program)
@@ -41,14 +41,14 @@
# Other files of interest
-LIBRARY = libmpeg.a
+LIBRARY = libmpeg_lib.la
SHLIB = libmpeg.so
HEADER = mpeg.h
EXTRAS = @extras@
# Implicit targets
.c.o:
- $(CC) -c $(CFLAGS) $(CPPFLAGS) $<
+ ${LIBTOOL} $(CC) -c $(CFLAGS) $(CPPFLAGS) $<
# Library/cleanup targets:
@@ -60,8 +60,9 @@
shlib: $(SHLIB)
$(LIBRARY): $(LIBOBJ)
- $(AR) $(ARFLAGS) $(LIBRARY) $(LIBOBJ)
- $(RANLIB) $(LIBRARY)
+ ${LIBTOOL} $(CC) -o $(LIBRARY) $(LIBOBJ:.o=.lo) \
+ -rpath ${PREFIX}/lib -version-info 1:3
+
$(SHLIB): $(LIBOBJ)
$(CC) -shared -o $(SHLIB) $(LIBOBJ)
@@ -69,7 +70,7 @@
install: $(LIBRARY)
$(INSTALL) -d $(INSTALL_INCLUDE) $(INSTALL_LIBRARY)
$(INSTALL) -m 0644 $(HEADER) $(INSTALL_INCLUDE)/$(HEADER)
- $(INSTALL) -m 0644 $(LIBRARY) $(INSTALL_LIBRARY)/$(LIBRARY)
+ ${LIBTOOL} $(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:
|