]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - libratbox/src/Makefile.am
Update FAQ.
[irc/rqf/shadowircd.git] / libratbox / src / Makefile.am
index 03554349c5b4d66e35a39b950f742a774cf898e9..ff750d112d0aadfa43cbe75c7e5416ca13636dcd 100644 (file)
@@ -1,9 +1,18 @@
-# $Id: Makefile.am 25689 2008-07-10 17:13:27Z androsyn $
+# $Id: Makefile.am 26046 2008-09-09 16:37:30Z androsyn $
 
 AUTOMAKE_OPTIONS = foreign
 
 INCLUDES = -I. -I../include @SSL_CFLAGS@ @GNUTLS_CFLAGS@
 
+BUILT_SOURCES = version.c
+
+version.c: version.c.SH ../CREDITS
+       $(SHELL) ./version.c.SH
+       $(CP) version.c version.c.last
+
+version.lo: version.c ../include/serno.h
+       $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
+
 libratbox_la_SOURCES =                 \
        unix.c                          \
        win32.c                         \
@@ -29,10 +38,11 @@ libratbox_la_SOURCES =                      \
        kqueue.c                        \
        rawbuf.c                        \
        patricia.c                      \
-       arc4random.c                    
+       arc4random.c                    \
+       version.c
        
 
-libratbox_la_LDFLAGS = -avoid-version -no-undefined -export-symbols export-syms.txt
+libratbox_la_LDFLAGS = @CRYPT_LIB@ @SSL_LIBS@ @GNUTLS_LIBS@  -avoid-version -no-undefined -export-symbols export-syms.txt
 libratbox_la_LIBADD = @CRYPT_LIB@ @SSL_LIBS@ @GNUTLS_LIBS@
 lib_LTLIBRARIES = libratbox.la