</$objtype/mkfile

HCFILES=\
  Addr.hc\
  CError.hc\
  CStrings.hc\
  CTypes.hc\
  CTypesExtra.hc\
  FFI.hc\
  ForeignObj.hc\
  ForeignPtr.hc\
  FunPtr.hc\
  Int.hc\
  MarshalAlloc.hc\
  MarshalArray.hc\
  MarshalError.hc\
  MarshalUtils.hc\
  Ptr.hc\
  StablePtr.hc\
  Storable.hc\
  Word.hc\
           
all:V:
	for(i in $HCFILES)@{
		##echo $i
		hcp $i $i.c
		$CC $CFLAGS $i.c
		rm $i.c
	}

clean:V:
    rm *.$O
        
CC=pcc
CFLAGS=-DPlan9 -D_BSD_EXTENSION -DLOW_BYTE_FIRST \
       -I../../runtime/Builtin -I../../runtime/Kernel\
       -I../../runtime/Mk -I../../runtime/Integer -c


