# Author: Simon Amor # WWW: http://shoe.bocks.com/net/ # Makefile for netlib. Modify as appropriate. # Tested on Linux, HPUX, DEC # Requires ANSI compiler # Directory tree for netlib NETLIB = .. # Linux, DEC, OSX (same parameters !!) CC = gcc CFLAGS = -ansi -Wall # HPUX #CC = cc #CFLAGS = -Ae INCDIR = ${NETLIB}/include LIBDIR = ${NETLIB}/lib INCS = -I${INCDIR} VERSION = 0.5 all: netlib.c @echo "netlib written by Simon Amor" @echo "Compiling NetLib, please wait..." rm -f ${LIBDIR}/libnet.a ${CC} ${CFLAGS} ${INCS} -c netlib.c ar cr ${LIBDIR}/libnet.a netlib.o ranlib ${LIBDIR}/libnet.a @echo "Done." clean: rm -f ${LIBDIR}/libnet.a netlib.o