# 
# Copyright (C) 1993 Mark Boyns (boyns@sdsu.edu)
#
# This file is part of rplay.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License 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 the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

include ../Makefile.config

TARGET=		$(LIBRPLAY_NAME)
SRCS=		rplay.c rptp.c
OBJS=		rplay.o rptp.o

all:		$(TARGET)

#
# SunOS 4.1.x, Solaris 2.x, Linux
#
$(TARGET):	$(OBJS)
		$(AR) rcv $@ $?
		$(RANLIB) $@

install:	$(TARGET)
		$(INSTALL) $(TARGET) $(INSTALL_LIB_DIR)
		$(RANLIB) $(INSTALL_LIB_DIR)/$(TARGET)

#
# For HP-UX comment above and uncomment below.
#
#CFLAGS=	+z $(CC_OPTIONS) -I$(INCLUDE_DIR)
#
#$(TARGET):	$(OBJS)
#		ld -b -s +FPD -o $@ $(OBJS)
#		if [ ! -d $(INSTALL_LIB_DIR) ]; then mkdir $(INSTALL_LIB_DIR); fi
#		$(INSTALL) $@ $(INSTALL_LIB_DIR)
#		chmod a+rx $(INSTALL_LIB_DIR) $(INSTALL_LIB_DIR)/$@
#
#install:
#

clean:
		$(RM) $(TARGET) $(OBJS) core a.out *~ *.bak *.orig

depend:
		$(MAKEDEPEND) -- $(CFLAGS) -- $(SRCS)
