#!/bin/sh
#------------------------->  Bourne shell - script  <-------------------------#
#- Copyright (C) 199x by International Computer Science Institute            -#
#- This file is part of the GNU Sather package. It is free software; you may -#
#- redistribute  and/or modify it under the terms of the  GNU General Public -#
#- License (GPL)  as  published  by the  Free  Software  Foundation;  either -#
#- version 2 of the license, or (at your option) any later version.          -#
#- This  program  is distributed  in the  hope that it will  be  useful, but -#
#- WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY -#
#- or FITNESS FOR A PARTICULAR PURPOSE. See Doc/GPL for more details.        -#
#- The license text is also available from:  Free Software Foundation, Inc., -#
#- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA                     -#
#------------->  Please email comments to <bug-sather@gnu.org>  <-------------#

CC=gcc
CP=cp
AR=ar
LIBNAME=libam.a
LIBDIR=/usr/lib
HEADERNAME=am.h
HEADERDIR=/usr/include
LWP=liblwp.a
CFLAGS="-DAM_THREADS -D_REENTRANT -DSOLARIS_THREADS -Wall -g  -O2 "
#CFLAGS=-DAM_THREADS -DSOLARIS_THREADS -D_REENTRANT -Wall -g -O2
#LIBS=-lposix4 -lthread -ldl
OBJ="am.o am_add.o tcpam.o am_lwp.o am_solaris.o am_nothread.o"
CCC="am.c am_add.c tcpam.c am_lwp.c am_solaris.c am_nothread.c"
make clean
rm libam_solaris.a
gcc $CFLAGS -c $CCC
$AR rc libam_solaris.a $OBJ 
