include Makefile.inc

EXCLUDE_THISLIB_HS = yes
THISLIB	= LowT
SEARCH	= -P../PreludeIO -P../System -P..

SRCS_T	= \
	PrimExitWith.hs \
	FFIBuiltin.hs PrimPackString.hs PrimUnpackPS.hs CString.hs \
	PrimHPutChar.hs PrimComparePS.hs \
	NonStdTrace.hs \
	LowSystem.hs LowPS.hs \
	PrimIntegerAbs.hs PrimIntegerAdd.hs PrimIntegerAnd.hs \
	PrimIntegerEq.hs PrimIntegerLe.hs PrimIntegerLt.hs \
	PrimIntegerGe.hs PrimIntegerGt.hs PrimIntegerNe.hs \
	PrimIntegerMul.hs PrimIntegerNeg.hs PrimIntegerOr.hs \
	PrimIntegerQuotRem.hs PrimIntegerSub.hs \
	PrimIntegerFromInt.hs PrimIntFromIntegerC.hs \
	PrimEncodeDouble.hs PrimDoubleFromInteger.hs \
	PrimEncodeFloat.hs  PrimFloatFromInteger.hs \
	PrimDecodeDouble.hs PrimDecodeFloat.hs \
	PrimsFloat.hs PrimsDouble.hs

#	PrimHGetChar.hs PrimHGetContents.hs PrimHPutChar.hs PrimHClose.hs \
#	LowIO.hs

SRCS_NT	= _Driver.hs PrimIntFromInteger.hs 
EXTRA_T	= NonStdUnsafeCoerce.hs

EXTRA_O = $(patsubst %.hs, ${OBJDIR}/%.$O, ${EXTRA_T})

# Here are the main rules.
include ../Makefile.common



# Here are some extra rules.
extra: ${EXTRA_O}
${EXTRA_O}: ${OBJDIR}/%.$O : %.hs
	${TR_COMPILE} -c $(LIB_FLAGS) $(EXTRA_H_FLAGS) -o $@ $<


# Here are the dependencies.
${OBJDIR}/../PreludeIO/MsgIOError.$O:
	cd ../PreludeIO; ${MAKE} ${BUILDDIR}/${OBJ}/prelude/PreludeIO/DIOError.$O
${OBJDIR}/../PreludeIO/DIOError.$O:
	cd ../PreludeIO; ${MAKE} ${BUILDDIR}/${OBJ}/prelude/PreludeIO/DIOError.$O
${OBJDIR}/../PreludeIO/DIO.$O:
	cd ../PreludeIO; ${MAKE} ${BUILDDIR}/${OBJ}/prelude/PreludeIO/DIO.$O
${OBJDIR}/../IO/DSocket.$O:
	cd ../IO; ${MAKE} ${BUILDDIR}/${OBJ}/prelude/IO/DSocket.$O

${OBJDIR}/_Driver.$O: _Driver.hs ${OBJDIR}/../PreludeIO/DIO.$O
${OBJDIR}/PrimHGetChar.$O: PrimHGetChar.hs   ${OBJDIR}/../PreludeIO/DIO.$O  ${OBJDIR}/../PreludeIO/DIOError.$O
${OBJDIR}/PrimExitWith.$O: PrimExitWith.hs ${OBJDIR}/../PreludeIO/DIO.$O

