use autoconf, automake, and libtool for building

This commit is contained in:
Sean Middleditch 2009-07-31 02:02:09 -04:00
parent a25ee61f2b
commit 56f3c5ced1
9 changed files with 45 additions and 37 deletions

17
.gitignore vendored
View File

@ -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
AUTHORS Normal file
View File

1
COPYING Normal file
View File

@ -0,0 +1 @@
Public Domain

1
ChangeLog Normal file
View File

@ -0,0 +1 @@
See git log.

1
INSTALL Symbolic link
View File

@ -0,0 +1 @@
/usr/share/automake-1.11/INSTALL

View File

@ -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

13
Makefile.am Normal file
View File

@ -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

4
NEWS Normal file
View File

@ -0,0 +1,4 @@
Version 0.10
============
* use automake/autoconf/libtool for building

9
configure.ac Normal file
View File

@ -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