9466619af6
- Provide pkg-deinstall - Cleanup PR: 86901 Submitted by: Chris Mikkelson <cmikk@qwest.net> Approved by: maintainer timeout (16 days after postponement)
105 lines
3.7 KiB
Text
105 lines
3.7 KiB
Text
--- Makefile.in Thu Sep 23 12:12:52 2004
|
|
+++ Makefile.in Tue Oct 4 14:49:56 2005
|
|
@@ -26,7 +26,7 @@
|
|
#Rules: major -- inc for incompatible change
|
|
# : minor -- inc for bugfix or forward compatible change
|
|
|
|
-LIBVERSION=1.0
|
|
+LIBVERSION=1
|
|
|
|
PATHS=
|
|
|
|
@@ -35,7 +35,7 @@
|
|
CFLAGS=@CFLAGS@
|
|
CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@
|
|
LDFLAGS=@LDFLAGS@
|
|
-LIBS=@LIBS@
|
|
+LIBS=-L. @LIBS@
|
|
THLDFLAGS=@THLDFLAGS@
|
|
THLIBS=@THLIBS@
|
|
AR=@AR@
|
|
@@ -52,8 +52,10 @@
|
|
PERL=@PERL@
|
|
ENT=@ENT@
|
|
EXEEXT=@EXEEXT@
|
|
+SHLDSONAME=-Wl,-soname,libspread.so.$(LIBVERSION)
|
|
+TSHLDSONAME=-Wl,-soname,libtspread.so.$(LIBVERSION)
|
|
|
|
-TARGETS=spread$(EXEEXT) spuser$(EXEEXT) spflooder$(EXEEXT) spmonitor$(EXEEXT) sptuser${EXEEXT} @LIBSPSO@ @LIBTSPSO@
|
|
+TARGETS=spread$(EXEEXT) spuser$(EXEEXT) spflooder$(EXEEXT) spmonitor$(EXEEXT) sptuser${EXEEXT} @LIBSPSO@ @LIBTSPSO@ libspread.a libtspread.a
|
|
|
|
LIBSP_OBJS= alarm.o events.o memory.o sp.o
|
|
|
|
@@ -127,8 +129,11 @@
|
|
$(INSTALL) -m 0755 libspread.$(LIBVERSION).dylib $(DESTDIR)$(libdir)/libspread.$(LIBVERSION).dylib
|
|
(cd $(DESTDIR)$(libdir); $(SOFTLINK) -f libspread.$(LIBVERSION).dylib libspread.dylib)
|
|
|
|
-libspread.so: $(LIBSP_SHOBJS)
|
|
- $(SHLD) -o $@ $(LIBSP_SHOBJS) $(SHLDFLAGS) $(SHLIBS)
|
|
+libspread.so: $@.$(LIBVERSION)
|
|
+ $(SOFTLINK) $@.$(LIBVERSION) $@
|
|
+
|
|
+libspread.so.$(LIBVERSION): $(LIBSP_SHOBJS)
|
|
+ $(SHLD) -o $@ $(LIBSP_SHOBJS) $(SHLDSONAME) $(SHLDFLAGS) $(SHLIBS)
|
|
|
|
install-libspread.so: libspread.so
|
|
$(INSTALL) -m 0755 libspread.so $(DESTDIR)$(libdir)/libspread.so.$(LIBVERSION)
|
|
@@ -146,8 +151,11 @@
|
|
$(INSTALL) -m 0755 libtspread.$(LIBVERSION).dylib $(DESTDIR)$(libdir)/libtspread.$(LIBVERSION).dylib
|
|
(cd $(DESTDIR)$(libdir); $(SOFTLINK) -f libtspread.$(LIBVERSION).dylib libtspread.dylib)
|
|
|
|
-libtspread.so: $(LIBTSP_SHOBJS)
|
|
- $(SHLD) -o $@ $(LIBTSP_SHOBJS) $(SHLDFLAGS) $(SHLIBS) $(THLIBS)
|
|
+libtspread.so: $@.$(LIBVERSION)
|
|
+ $(SOFTLINK) $@.$(LIBVERSION) $@
|
|
+
|
|
+libtspread.so.$(LIBVERSION): $(LIBTSP_SHOBJS)
|
|
+ $(SHLD) -o $@ $(LIBTSP_SHOBJS) $(TSHLDSONAME) $(SHLDFLAGS) $(SHLIBS) $(THLIBS)
|
|
|
|
install-libtspread.so: libtspread.so
|
|
$(INSTALL) -m 0755 libtspread.so $(DESTDIR)$(libdir)/libtspread.so.$(LIBVERSION)
|
|
@@ -156,11 +164,11 @@
|
|
spread$(EXEEXT): $(SPREADOBJS)
|
|
$(LD) -o $@ $(SPREADOBJS) $(LDFLAGS) $(LIBS)
|
|
|
|
-spuser$(EXEEXT): libspread.a user.o
|
|
- $(LD) -o $@ user.o $(LDFLAGS) libspread.a $(LIBS)
|
|
+spuser$(EXEEXT): libspread.a user.o
|
|
+ $(LD) -o $@ user.o $(LDFLAGS) -lspread $(LIBS)
|
|
|
|
spflooder$(EXEEXT): libspread.a flooder.o
|
|
- $(LD) -o $@ flooder.o $(LDFLAGS) libspread.a $(LIBS)
|
|
+ $(LD) -o $@ flooder.o $(LDFLAGS) -lspread $(LIBS)
|
|
|
|
spmonitor$(EXEEXT): $(MONITOR_OBJS)
|
|
$(LD) -o $@ $(MONITOR_OBJS) $(LDFLAGS) $(LIBS)
|
|
@@ -169,7 +177,7 @@
|
|
$(LD) $(THLDFLAGS) -o $@ $(TMONITOR_OBJS) $(LDFLAGS) $(LIBS) $(THLIBS)
|
|
|
|
sptuser$(EXEEXT): user.to libtspread.a
|
|
- $(LD) $(THLDFLAGS) -o $@ user.to libtspread.a $(LDFLAGS) $(LIBS) $(THLIBS)
|
|
+ $(LD) $(THLDFLAGS) -o $@ user.to -lspread $(LDFLAGS) $(LIBS) $(THLIBS)
|
|
|
|
spsimple_user$(EXEEXT): simple_user.o libspread.a
|
|
$(LD) -o $@ simple_user.o $(LDFLAGS) libspread.a $(LIBS)
|
|
@@ -198,7 +206,7 @@
|
|
fi
|
|
|
|
clean:
|
|
- rm -f *.lo *.tlo *.to *.o *.a *.dylib $(TARGETS) spsimple_user
|
|
+ rm -f *.lo *.tlo *.to *.o *.a *.dylib $(TARGETS) spsimple_user *.so.$(LIBVERSION)
|
|
rm -f config.cache config.log docs/*.out core
|
|
rm -rf autom4te.cache
|
|
|
|
@@ -254,11 +262,6 @@
|
|
done
|
|
if [ ! -d $(DESTDIR)$(sysconfdir) ]; then \
|
|
$(buildtoolsdir)/mkinstalldirs $(DESTDIR)$(sysconfdir); \
|
|
- fi
|
|
- if [ ! -f $(DESTDIR)$(sysconfdir)/spread.conf ]; then \
|
|
- $(INSTALL) -m 644 $(srcdir)/sample.spread.conf $(DESTDIR)$(sysconfdir)/spread.conf; \
|
|
- else \
|
|
- echo "$(DESTDIR)$(sysconfdir)/spread.conf already exists, install will not overwrite"; \
|
|
fi
|
|
|
|
uninstallall: uninstall
|