X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2FMakefile.ad;h=9f3cb4671acfe2071bbb4107c951ee8275c2210c;hb=6c9d096ac4ddeaa5f3cac809a654af15bb9a8925;hp=3d1cfacecf9afb82e7b207895c316f7661ec0e37;hpb=0fa9e11b14fc083b91a13d315eec837bc23d4114;p=silc.git diff --git a/lib/Makefile.ad b/lib/Makefile.ad index 3d1cface..9f3cb467 100644 --- a/lib/Makefile.ad +++ b/lib/Makefile.ad @@ -3,7 +3,7 @@ # # Author: Pekka Riikonen # -# Copyright (C) 2000 - 2005 Pekka Riikonen +# Copyright (C) 2000 - 2007 Pekka Riikonen # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -48,17 +48,37 @@ SILCLIB_DIRS = \ #ifdef SILC_DIST_VCARD silcvcard \ #endif SILC_DIST_VCARD +#ifdef SILC_DIST_ACC + silcacc \ +#endif SILC_DIST_ACC +#ifdef SILC_DIST_SSH + silcssh \ +#endif SILC_DIST_SSH if SILC_ENABLE_SHARED +if SILC_WIN32 +LIBTOOL_OPTS= -release $(LIB_BASE_VERSION) -rpath $(DESTDIR)$(libdir) -export-dynamic -no-undefined +else LIBTOOL_OPTS= -release $(LIB_BASE_VERSION) -rpath $(DESTDIR)$(libdir) +endif LIBTOOL_SILC_VERSION = -version-info $(LIBSILC_CURRENT):$(LIBSILC_REVISION):$(LIBSILC_AGE) LIBTOOL_SILCCLIENT_VERSION = -version-info $(LIBSILCCLIENT_CURRENT):$(LIBSILCCLIENT_REVISION):$(LIBSILCCLIENT_AGE) LIBTOOL_SILCSERVER_VERSION = -version-info $(LIBSILCSERVER_CURRENT):$(LIBSILCSERVER_REVISION):$(LIBSILCSERVER_AGE) else LIBTOOL_OPTS= -LIBTOOL_SILC_VERSION = -LIBTOOL_SILCCLIENT_VERSION = -LIBTOOL_SILCSERVER_VERSION = +LIBTOOL_SILC_VERSION = +LIBTOOL_SILCCLIENT_VERSION = +LIBTOOL_SILCSERVER_VERSION = +endif + +if SILC_WIN32 +SILC_LINK_LIBS=$(LIBS) +SILCCLIENT_LINK_LIBS=$(LIBS) -lsilc +SILCSERVER_LIBS=$(LIBS) -lsilc +else +SILC_LINK_LIBS= +SILCCLIENT_LINK_LIBS= +SILCSERVER_LIBS= endif SILCLIB = libsilc.a @@ -128,7 +148,7 @@ LIBSILC_AGE=@LIBSILC_AGE@ libsilc.a: find $(SILCLIB_DIRS) -type f -name *.lo | xargs \ - $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) \ + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(SILC_LINK_LIBS) \ $(LIBTOOL_SILC_VERSION) \ $(LIBTOOL_OPTS) -o libsilc.la @@ -140,7 +160,7 @@ LIBSILCCLIENT_AGE=@LIBSILCCLIENT_AGE@ libsilcclient.a: find $(SILCCLIENTLIB_DIRS) -type f -name *.lo | xargs \ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) \ - $(LIBTOOL_SILCCLIENT_VERSION) \ + $(SILCCLIENT_LINK_LIBS) $(LIBTOOL_SILCCLIENT_VERSION) \ $(LIBTOOL_OPTS) -o libsilcclient.la #endif SILC_DIST_CLIENTLIB @@ -151,7 +171,7 @@ LIBSILCSERVER_AGE=@LIBSILCSERVER_AGE@ libsilcserver.a: find $(SILCSERVERLIB_DIRS) -type f -name *.lo | xargs \ - $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) \ + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(SILCSERVER_LIBS) \ $(LIBTOOL_SILCSERVER_VERSION) \ $(LIBTOOL_OPTS) -o libsilcserver.la #endif SILC_DIST_SERVERLIB