# -----------------------------------------------------------------------------=
# $Id: Makefile,v 1.21 2001/08/17 01:00:52 sof Exp $
#
# (c) The GHC Team 1997-1999
#

TOP = ..
include $(TOP)/mk/boilerplate.mk

PACKAGE = net
PACKAGE_DEPS = lang text concurrent

# basically nothing for hugs, until we convert these libraries to use the FFI
NOT_FOR_HUGS = BSD.hsc Socket.lhs SocketPrim.hsc URI.hs

SRC_HC_OPTS += -recomp -cpp -fglasgow-exts -fvia-C

#
# Only bother with cbits/initWinSock.c when it's really needed.
# 
ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
C_SRCS=cbits/initWinSock.c
endif

STUBOBJS+=BSD_hsc.o SocketPrim_hsc.o $(C_OBJS)

.PRECIOUS: %_hsc.c

include $(TOP)/mk/target.mk

