blob: 128429c78570a2393f02b67e3905e864359495fd (
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
|
$NetBSD: patch-ac,v 1.5 2006/06/01 06:52:28 rillig Exp $
--- src/Makefile.orig 2002-12-13 12:12:11.000000000 +0000
+++ src/Makefile 2006-06-01 07:25:02.604386400 +0100
@@ -26,6 +26,8 @@ OBJS= \
lvm.o \
lzio.o
+LOBJS= $(OBJS:.o=.lo)
+
SRCS= \
lapi.c \
lcode.c \
@@ -68,13 +70,17 @@ SRCS= \
lzio.h
T= $(LIB)/liblua.a
+LT= $(T:.a=.la)
-all: $T
+all: $(LT)
$T: $(OBJS)
$(AR) $@ $(OBJS)
$(RANLIB) $@
+$(LT): $(LOBJS)
+ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(LOBJS) -rpath $(INSTALL_LIB) -version-info $(LV) $(DLLIB)
+
clean:
rm -f $(OBJS) $T
|