# $Id: Makefile,v 1.5 1998/05/05 12:53:29 sof Exp $ # # Makefile for concurrent libraries. # TOP = ../.. include $(TOP)/mk/boilerplate.mk WAYS=$(GhcLibWays) #----------------------------------------------------------------------------- # Setting the standard variables # LIBRARY = libHSconcurrent$(_way).a HS_SRCS = $(wildcard *.lhs) HS_OBJS = $(HS_SRCS:.lhs=.$(way_)o) LIBOBJS = $(HS_OBJS) HS_IFACES= $(HS_SRCS:.lhs=.$(way_)hi) #----------------------------------------------------------------------------- # Setting the GHC compile options SRC_HC_OPTS += -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing $(GhcLibHcOpts) SRC_MKDEPENDHS_OPTS += -optdep--include-prelude # # Profiling options WAY_p_HC_OPTS += -GPrelude WAY_mr_HC_OPTS += -GPrelude # # Object and interface files have suffixes tagged with their ways # ifneq "$(way)" "" SRC_HC_OPTS += -hisuf $(way_)hi endif Parallel_HC_OPTS += -fglasgow-exts #----------------------------------------------------------------------------- # Dependency generation SRC_MKDEPENDHS_OPTS += -I$(GHC_INCLUDE_DIR) #----------------------------------------------------------------------------- # Installation; need to install .hi files as well as libraries # # The interface files are put inside the $(libdir), since they # might (potentially) be platform specific.. # # override is used here because for binary distributions, datadir is # set on the command line. sigh. # override datadir:=$(libdir)/imports/concurrent # # Files to install from here # INSTALL_LIBS += $(LIBRARY) INSTALL_DATAS += $(HS_IFACES) include $(TOP)/mk/target.mk