# THE REALAUDIO FIREWALL PROXY KIT 2.0 BETA 2 
# This file: $Date: 1996/04/23 00:16:15 $ $Revision: 1.12 $ 
#
#  Copyright (c) 1996 Progressive Networks, Inc.  
# 
#  All rights reserved.  See raproxy.c for full copyright details.
#
CC=	cc
CFLAGS=
DISTNAME=raproxy2.0b2
#LIBS=	-lsocket -lnsl

DOCNAMES=about.html advanced.html contents.html generic.html index.html \
        moreinfo.html player.html thrdprty.html usekit.html \
        license.txt raproxy.man raproxy.pdf raproxy.txt readme.txt tproxy.pdf
SOURCES=Makefile raproxy.c raproxy.h tproxy.c tproxy.h raloadinit.c \
        $(DOCNAMES)
TARGETS=raproxy tproxy

# Uncomment this on systems to use memset/memcpy instead of bcopy, bzero
#CFLAGS+=	-DSYSV 

# Uncomment this on systems without strerror(), such as SunOS v4 or older
#CFLAGS+=	-DSUNOS

# Uncomment this to limit the number of streams (set the number in raproxy.h) 
#CFLAGS+=	-DLOAD_LIMIT 
#TARGETS+=raloadinit
# If LOAD_LIMIT is turned on, the number of streams is defaults to 2 unless 
# this line is uncommented
#CFLAGS+=    -DMAXAUDIOSTREAMS=10

# Uncomment this to disable UDP delivery in raproxy
#CFLAGS+= -DNO_UDP

# Uncomment the following to use the SOCKS libraries
#LIBS+= -lsocks
#CFLAGS+= -DUSE_SOCKS

all:	$(TARGETS) 

tproxy: tproxy.c tproxy.h
	 $(CC) $(CFLAGS) $(LIBS) tproxy.c -o tproxy

raproxy: raproxy.c raproxy.h
	 $(CC) $(CFLAGS) $(LIBS) raproxy.c -o raproxy

raloadinit: raloadinit.c raproxy.h
	 $(CC) $(CFLAGS) $(LIBS) raloadinit.c -o raloadinit

clobber:
	rm -f $(TARGETS)
	make clean

clean:
	rm -f *.o #*# core 

dist: $(DISTNAME).tar.gz $(DISTNAME).tar.Z $(DISTNAME).zip

$(DISTNAME).tar.gz: $(SOURCES) 
	rm -f $(DISTNAME).tar.gz
	cd .. ; tar -hcvf raproxy/$(DISTNAME).tar ${SOURCES:S/^/raproxy\//g}
	gzip $(DISTNAME).tar

$(DISTNAME).tar.Z: $(SOURCES) 
	rm -f $(DISTNAME).tar.Z
	cd .. ; tar -hcvf raproxy/$(DISTNAME).tar ${SOURCES:S/^/raproxy\//g}
	compress $(DISTNAME).tar

$(DISTNAME).zip: $(SOURCES) 
	rm -f $(DISTNAME).zip
	cd .. ; zip raproxy/$(DISTNAME).zip ${SOURCES:S/^/raproxy\//g}

