[csw-devel] SF.net SVN: gar:[15824] csw/mgar/pkg/examples/hello

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Oct 2 10:24:07 CEST 2011


Revision: 15824
          http://gar.svn.sourceforge.net/gar/?rev=15824&view=rev
Author:   wahwah
Date:     2011-10-02 08:24:06 +0000 (Sun, 02 Oct 2011)
Log Message:
-----------
hello: added a minimal shared library

Modified Paths:
--------------
    csw/mgar/pkg/examples/hello/Makefile.am
    csw/mgar/pkg/examples/hello/configure.ac

Added Paths:
-----------
    csw/mgar/pkg/examples/hello/libhello.c

Modified: csw/mgar/pkg/examples/hello/Makefile.am
===================================================================
--- csw/mgar/pkg/examples/hello/Makefile.am	2011-10-02 07:55:05 UTC (rev 15823)
+++ csw/mgar/pkg/examples/hello/Makefile.am	2011-10-02 08:24:06 UTC (rev 15824)
@@ -1,3 +1,5 @@
+ACLOCAL_AMFLAGS = -I m4
+
 bin_PROGRAMS=hello
 hello_SOURCES=hello.c hello.1 system.h aclocal.m4 getopt.c getopt1.c getopt.h
 
@@ -6,6 +8,12 @@
 
 EXTRA_DIST=hello.lsm.in hello.spec.in hello.texinfo
 
+# AUTOMAKE_OPTIONS = gnu
+
+lib_LTLIBRARIES = libhello.la
+libhello_la_SOURCES = libhello.c
+libhello_la_LDFLAGS = -version-info 0:0:0
+
 #  if you write a self-test script named `chk', uncomment the
 #  following and add `chk' to the EXTRA_DIST list
 #TESTS=chk

Modified: csw/mgar/pkg/examples/hello/configure.ac
===================================================================
--- csw/mgar/pkg/examples/hello/configure.ac	2011-10-02 07:55:05 UTC (rev 15823)
+++ csw/mgar/pkg/examples/hello/configure.ac	2011-10-02 08:24:06 UTC (rev 15824)
@@ -3,6 +3,8 @@
 AC_INIT(hello.c)
 dnl Every other copy of the package version number gets its value from here
 AM_INIT_AUTOMAKE(hello, 0.1.0)
+AM_PROG_LIBTOOL
+AC_CONFIG_MACRO_DIR([m4])
 
 dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
 AM_CONFIG_HEADER(config.h)

Added: csw/mgar/pkg/examples/hello/libhello.c
===================================================================
--- csw/mgar/pkg/examples/hello/libhello.c	                        (rev 0)
+++ csw/mgar/pkg/examples/hello/libhello.c	2011-10-02 08:24:06 UTC (rev 15824)
@@ -0,0 +1,3 @@
+int return_zero(void) {
+  return 0;
+}

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list