diff options
author | Sean Middleditch <sean@middleditch.us> | 2009-07-31 02:02:09 -0400 |
---|---|---|
committer | Sean Middleditch <sean@middleditch.us> | 2009-07-31 02:02:09 -0400 |
commit | 56f3c5ced15d93e12e7d32e5dc166d1a92e13c03 (patch) | |
tree | a2d4bb60dba7cd6251fbbac6ff84ac07c31d9c05 | |
parent | a25ee61f2bce9c4f1b09e9d573dd4307e79789d2 (diff) |
use autoconf, automake, and libtool for building
-rw-r--r-- | .gitignore | 17 | ||||
-rw-r--r-- | AUTHORS | 0 | ||||
-rw-r--r-- | COPYING | 1 | ||||
-rw-r--r-- | ChangeLog | 1 | ||||
l--------- | INSTALL | 1 | ||||
-rw-r--r-- | Makefile | 36 | ||||
-rw-r--r-- | Makefile.am | 13 | ||||
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | configure.ac | 9 |
9 files changed, 45 insertions, 37 deletions
@@ -1,6 +1,21 @@ *.o *.a -libtelnet-dist.tar.gz +*.la +*.lo +config.* +ltmain.sh +aclocal.m4 +Makefile.in +Makefile +configure +libtelnet-*.tar.gz +libtool +missing +depcomp +install-sh +autom4te.cache +.deps +.libs telnet-proxy telnet-client telnet-chatd @@ -0,0 +1 @@ +Public Domain diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..519352b --- /dev/null +++ b/ChangeLog @@ -0,0 +1 @@ +See git log. @@ -0,0 +1 @@ +/usr/share/automake-1.11/INSTALL
\ No newline at end of file diff --git a/Makefile b/Makefile deleted file mode 100644 index 4222fc8..0000000 --- a/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -VERSION = 0.9 -CFLAGS = -Wall -g -O0 -DHAVE_ZLIB -DHAVE_ALLOCA -DENABLE_COLOR -LFLAGS = -L. -ltelnet -lz - -all: telnet-proxy telnet-client telnet-chatd - -%.o: %.c libtelnet.h - $(CC) -o $@ -c $(CFLAGS) $< - -libtelnet.a: libtelnet.o libtelnet.h - $(AR) rcs $@ $< - -telnet-proxy: telnet-proxy.o libtelnet.a Makefile - $(CC) -o $@ $< $(LFLAGS) - -telnet-client: telnet-client.o libtelnet.a Makefile - $(CC) -o $@ $(CFLAGS) $< $(LFLAGS) - -telnet-chatd: telnet-chatd.o libtelnet.a Makefile - $(CC) -o $@ $(CFLAGS) $< $(LFLAGS) - -clean: - rm -f libtelnet.a libtelnet.o telnet-proxy telnet-proxy.o \ - telnet-client telnet-client.o telnet-chatd telnet-chatd.o - -dist: - rm -fr libtelnet-$(VERSION) - rm -f libtelnet-$(VERSION).tar.gz - mkdir libtelnet-$(VERSION) - cp Makefile README libtelnet.h libtelnet.c telnet-proxy.c \ - telnet-client.c telnet-chatd.c libtelnet-$(VERSION) - tar -cf libtelnet-$(VERSION).tar libtelnet-$(VERSION) - gzip libtelnet-$(VERSION).tar - rm -fr libtelnet-$(VERSION) - -.PHONY: all clean dist diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..b4fcf84 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,13 @@ +lib_LTLIBRARIES = libtelnet.la +libtelnet_la_SOURCES = libtelnet.c libtelnet.h + +bin_PROGRAMS = telnet-client telnet-chatd telnet-proxy + +telnet_client_SOURCES = telnet-client.c telnet-client.h +telnet_client_LDADD = libtelnet.la + +telnet_chatd_SOURCES = telnet-chatd.c telnet-chatd.h +telnet_chatd_LDADD = libtelnet.la + +telnet_proxy_SOURCES = telnet-proxy.c telnet-proxy.h +telnet_proxy_LDADD = libtelnet.la @@ -0,0 +1,4 @@ +Version 0.10 +============ + +* use automake/autoconf/libtool for building diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..ea3c09c --- /dev/null +++ b/configure.ac @@ -0,0 +1,9 @@ +AC_INIT([libtelnet], [0.9], [http://github.com/elanthis/libtelnet/tree/master]) + +AM_INIT_AUTOMAKE + +AC_PROG_CC +AC_PROG_LIBTOOL + +AC_CONFIG_FILES(Makefile) +AC_OUTPUT |