summaryrefslogtreecommitdiff
path: root/devel/libcfg+/patches/patch-aa
blob: 5ee3d3b79dab0f846284723e8f293aa8f33b23eb (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
$NetBSD: patch-aa,v 1.1 2004/10/06 10:17:06 grant Exp $

--- Rules.make.in.orig	Tue Feb 17 11:37:47 2004
+++ Rules.make.in
@@ -24,8 +24,7 @@ OBJECTS           +=
 DISTFILES         +=
 
 LIBSTATIC          = $(PACKAGE).a
-LIBDYNAMIC         = $(PACKAGE).so
-LIBDYNAMICV        = $(PACKAGE).so.$(VERSION)
+LIBDYNAMICV        = $(PACKAGE).la
 
 install_LIB        = $(LIBSTATIC) $(LIBDYNAMICV)
 SCRIPTS            =
@@ -157,19 +156,14 @@ static:		$(LIBSTATIC)
 dynamic:	$(LIBDYNAMICV)
 
 $(LIBSTATIC):	$(OBJECTS)
-	$(AR) r $@ $(OBJECTS)
+	:
 
 $(LIBDYNAMICV):	$(OBJECTS)
-	$(LD) $(LDFLAGS) -shared -o $@ $(OBJECTS)
+	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJECTS) -rpath $(libdir) -version-info `echo $(VERSION) | sed -e 's/0\.\([^.]*\)\.\([^.]*\)/\1\2/'`
 
-%.o: %.c $(CONFIG_HEADER)
+%.lo: %.c $(CONFIG_HEADER)
 	@echo '$(COMPILE) -c $<'; \
-	$(COMPILE) -Wp,-MD,.deps/$(*F).pp -o $@ -c $<
-	@-cp .deps/$(*F).pp .deps/$(*F).P; \
-	tr ' ' '\012' < .deps/$(*F).pp \
-	  | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
-	    >> .deps/$(*F).P; \
-	rm .deps/$(*F).pp
+	$(LIBTOOL) --mode=compile $(COMPILE) -o $@ -c $<
 
 %.o: %.cpp $(CONFIG_HEADER)
 	@echo '$(COMPILE_CXX) -c $<'; \