Commit 9e1ae303 authored by sof's avatar sof
Browse files

[project @ 1999-10-29 13:52:30 by sof]

cbits/ is now also built in a DLL way, if needs be.
parent 8d633387
# $Id: Makefile,v 1.6 1999/10/11 08:38:25 simonmar Exp $
# $Id: Makefile,v 1.7 1999/10/29 13:52:30 sof Exp $
TOP = ../../..
include $(TOP)/mk/boilerplate.mk
ifeq "$(filter dll,$(WAYS))" "dll"
override WAYS=dll
else
override WAYS=
endif
LIBRARY=libHS_cbits.a
LIBRARY=libHS_cbits$(_way).a
INSTALL_LIBS+=$(LIBRARY)
C_SRCS= $(wildcard *.c)
C_OBJS = $(C_SRCS:.c=.o)
C_OBJS = $(C_SRCS:.c=.$(way_)o)
LIBOBJS = $(C_OBJS)
SRC_CC_OPTS += -O -I$(GHC_INCLUDE_DIR) $(GhcLibCcOpts)
ifneq "$(way)" "dll"
SRC_CC_OPTS += -static
endif
ifeq "$(way)" "dll"
all :: DllVersionInfo.o
$(DLL_NAME) : DllVersionInfo.o
endif
DLL_NAME = HScbits.dll
DLL_IMPLIB_NAME = libHScbits_imp.a
SRC_BLD_DLL_OPTS += --export-all --output-def=HScbits.def
DLL_DESCRIPTION = "Haskell Prelude helpers"
SRC_BLD_DLL_OPTS += --export-all --output-def=HScbits.def DllVersionInfo.o
SRC_BLD_DLL_OPTS += -lwinmm -lwsock32 -lHSrts_imp -lgmp -L. -L../../../rts/gmp -L../../../rts
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment