blob: b23bd9c5cdf83cb1dd9317dd46c4bb9ac6480475 (
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
|
diff -Naurp lrmi-0.10-orig/Makefile lrmi-0.10/Makefile
--- lrmi-0.10-orig/Makefile 2010-08-20 15:03:17.093144820 +0200
+++ lrmi-0.10/Makefile 2010-08-20 15:03:47.761144267 +0200
@@ -2,6 +2,7 @@ LIBDIR ?= /usr/local/lib
INCDIR ?= /usr/local/include
CFLAGS = -g -Wall
+LDFLAGS =
sources = lrmi.c
objects = lrmi.o
@@ -26,12 +27,12 @@ liblrmi.a: $(objects)
liblrmi.so: $(pic_objects)
# $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -shared -o $@ $^
- $(CC) $(CPPFLAGS) $(CFLAGS) -Wl,-soname,$(LIBNAME).so.$(MAJOR) -fPIC -shared -o $(LIBNAME).so.$(VERSION) $^
+ $(CC) $(CPPFLAGS) $(CFLAGS) -Wl,-soname,$(LIBNAME).so.$(MAJOR) $(LDFLAGS) -fPIC -shared -o $(LIBNAME).so.$(VERSION) $^
ln -sf $(LIBNAME).so.$(VERSION) $(LIBNAME).so.$(MAJOR)
ln -sf $(LIBNAME).so.$(MAJOR) $(LIBNAME).so
vbetest: vbetest.c liblrmi.a
- $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^
install:
mkdir -p $(LIBDIR)
|