move all the in tree libs to use subst of the core configure, move all module builds to link with libtool to the .la, static when possible

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4548 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2007-03-11 14:03:58 +00:00
1 parent 5312a255a2
commit ee3fc89f69
37 files changed
+216 -185

No files matched your search

+4 -4
View File
@@ -14,15 +14,15 @@ all: depends $(OBJS) $(MODNAME).$(DYNAMIC_LIB_EXTEN)
depends:
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(OBJS) $(MODNAME).cpp
$(CPPCC) $(CFLAGS) -fPIC -c $(MODNAME).cpp -o $(MODNAME).o
$(CPPCC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
$(CPPCC) $(CFLAGS) -c $(MODNAME).cpp -o $(MODNAME).o
$(LIBTOOL) --mode=link $(CPPCC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
%.o: %.cpp
$(CPPCC) -Wall -Werror -fPIC $(CFLAGS) -c -o $@ $<
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
install:
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod