use autoconf, automake, and libtool for building

github
Sean Middleditch 14 years ago
parent a25ee61f2b
commit 56f3c5ced1
  1. 17
      .gitignore
  2. 0
      AUTHORS
  3. 1
      COPYING
  4. 1
      ChangeLog
  5. 1
      INSTALL
  6. 36
      Makefile
  7. 13
      Makefile.am
  8. 4
      NEWS
  9. 9
      configure.ac

17
.gitignore vendored

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

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

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

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

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

@ -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
Loading…
Cancel
Save