# -----------------------------------------------------------------------------=
# $Id: Makefile,v 1.4 1999/12/09 10:16:45 simonmar Exp $
#
# (c) The GHC Team 1997-1999
#

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

ifeq "$(HsLibsFor)" "ghc"
ifeq "$(way)" ""
SUBDIRS = cbits
else
SUBDIRS=
endif
endif

HSLIB = net
HSLIB_DEPS = lang text

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

SRC_HC_OPTS += -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing -I$(GHC_IO_INCLUDE_DIR) -I$(GHC_INCLUDE_DIR)

BSD_HC_OPTS          += -optc-DNON_POSIX_SOURCE
Socket_HC_OPTS       += -optc-DNON_POSIX_SOURCE
SocketPrim_HC_OPTS   += -optc-DNON_POSIX_SOURCE

include $(TOP)/mk/target.mk
