]> git.pld-linux.org Git - packages/libebml.git/blame - libebml-makefile.patch
- converted to UTF-8
[packages/libebml.git] / libebml-makefile.patch
CommitLineData
0270b678
JB
1--- libebml-0.7.7/make/linux/Makefile.orig 2006-03-30 21:05:11.000000000 +0200
2+++ libebml-0.7.7/make/linux/Makefile 2006-04-23 18:35:31.025168000 +0200
5eef6fa9 3@@ -28,6 +28,7 @@
0928b7ec 4 INSTALL_OPTS = -m 644
5 INSTALL_OPTS_LIB = -m 644
6 INSTALL_DIR_OPTS = -m 755
7+LIBTOOL = libtool
8
9 # Options
10 EXTENSION=.cpp
5eef6fa9 11@@ -50,9 +51,7 @@
0928b7ec 12 LIBS=
13
14 # Names
15-LIBRARY=libebml.a
5eef6fa9
JB
16-LIBRARY_SO=libebml.so
17-LIBRARY_SO_VER=libebml.so.0
0928b7ec 18+LIBRARY=libebml.la
19
20 # source-files
21 sources:=$(wildcard ${SRC_DIR}*$(EXTENSION))
5eef6fa9
JB
22@@ -60,9 +59,8 @@
23 # header files; replace .cxx extension with .h
24 headers:=$(patsubst %$(EXTENSION),%.h,$(sources))
0928b7ec 25
26-# object files; replace .cxx extension with .o
27-objects:=$(patsubst %$(EXTENSION),%.o,$(sources))
5eef6fa9 28-objects_so:=$(patsubst %$(EXTENSION),%.lo,$(sources))
0928b7ec 29+# object files; replace .cxx extension with .lo
30+objects:=$(patsubst %$(EXTENSION),%.lo,$(sources))
31
17ee12f0
MC
32 WARNINGFLAGS=-Wall -Wno-unknown-pragmas -ansi -fno-gnu-keywords -Wshadow
33 COMPILEFLAGS=$(WARNINGFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(DEBUGFLAGS) $(INCLUDE)
0270b678 34@@ -83,20 +81,11 @@
5eef6fa9 35 @false
0928b7ec 36
37 # Build rules
38-%.o: %$(EXTENSION)
17ee12f0 39- $(CXX) -c $(COMPILEFLAGS) -o $@ $<
5eef6fa9
JB
40-
41 %.lo: %$(EXTENSION)
42- $(CXX) -c $(COMPILEFLAGS) -fPIC -o $@ $<
43+ $(LIBTOOL) --mode=compile $(CXX) -c $(COMPILEFLAGS) -o $@ $<
0928b7ec 44
45 $(LIBRARY): $(objects)
46- $(AR) $@ $(objects)
47- $(RANLIB) $@
5eef6fa9
JB
48-
49-$(LIBRARY_SO): $(objects_so)
50- $(CXX) -shared -Wl,-soname,$(LIBRARY_SO_VER) -o $(LIBRARY_SO_VER) $(objects_so)
0270b678 51- rm -f $(LIBRARY_SO)
5eef6fa9 52- ln -s $(LIBRARY_SO_VER) $(LIBRARY_SO)
0928b7ec 53+ $(LIBTOOL) --mode=link $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) -rpath $(libdir)
0928b7ec 54
55 clean:
5eef6fa9 56 rm -f $(objects) $(objects_so)
0270b678 57@@ -121,27 +110,22 @@
36bcfddd
JB
58 ifeq (Darwin,$(shell uname -s))
59 install: install_staticlib install_headers
60 else
5eef6fa9
JB
61-install: install_staticlib install_sharedlib install_headers
62+install: install_lib install_headers
36bcfddd 63 endif
5eef6fa9
JB
64
65 install_headers:
0928b7ec 66- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(includedir)
0928b7ec 67+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(includedir)
68 for i in $(INCLUDE_DIR)/*.h; do \
69- $(INSTALL) $(INSTALL_OPTS) $$i $(includedir) ; \
70+ $(INSTALL) $(INSTALL_OPTS) $$i $(DESTDIR)$(includedir) ; \
71 done
72- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(includedir)/c
73+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(includedir)/c
74 for i in $(INCLUDE_DIR)/c/*.h; do \
75- $(INSTALL) $(INSTALL_OPTS) $$i $(includedir)/c ; \
76+ $(INSTALL) $(INSTALL_OPTS) $$i $(DESTDIR)$(includedir)/c ; \
77 done
78
5eef6fa9
JB
79-install_staticlib: $(LIBRARY)
80- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(libdir)
81- $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY) $(libdir)
82-
83-install_sharedlib: $(LIBRARY_SO)
0270b678 84- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(libdir)
5eef6fa9
JB
85- $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_SO_VER) $(libdir)
86- ln -s $(LIBRARY_SO_VER) $(libdir)/$(LIBRARY_SO)
5eef6fa9
JB
87+install_lib: $(LIBRARY)
88+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(libdir)
36bcfddd
JB
89+ $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY) $(DESTDIR)$(libdir)
90
5eef6fa9
JB
91
92 ifneq ($(wildcard .depend),)
This page took 0.034969 seconds and 4 git commands to generate.