# this Makefile creates a dummy version of libsocket.a and libnsl.a
# both are required for linking on SUN and HP, but don't exist and 
# are not needed for linux.  creating and empty, dummy library allows 
# the linking lines to be identical

include ../../Configure

DESTLIB	=	$(LLIB)

default: libdummy
install: libdummy

libsocket.a: dummy.c

libdummy: libsocket.a
	gcc -c -o dummy.o dummy.c
	ar rcv libsocket.a dummy.o
	ranlib libsocket.a
	cp libsocket.a $(DESTLIB)
	ar rcv libnsl.a dummy.o
	ranlib libnsl.a
	cp libnsl.a $(DESTLIB)

# utilities #################################################
clean:	
	rm -f *.a
	rm -f *.o
	rm -f *~
	rm -f #*
