# Makefile for libhds.a
# uname=Linux

FC = gfortran
FCFLAGS = -c -fPIC -fno-second-underscore

CC = gcc
CCFLAGS = -c -fPIC

#-------------------------------------------------------------------------------

OBJECTS = \
chr1_wild1.o  cmp_prim.o          datnew.o       hds1_exit.o        \
chr1_wild2.o  cmp_put0x.o         dat_paren.o    hds_copy.o        \
chr1_wild3.o  cmp_put1x.o         dat_par_f.o    hdserase.o        \
chr1_wild4.o  cmp_putnx.o         dat_par_h.o    hds_ewild.o        \
chr1_wild5.o  cmp_putvx.o         dat_prec.o     hds_globals.o        \
chr1_wild6.o  cmp_shape.o         dat_prmry.o    hdsgroup.o        \
chr1_wild7.o  cmp_size.o          dat_put0x.o    hds_gtune.o        \
chr_abbrv.o   cmp_struc.o         dat_put1x.o    hdslock.o        \
chr_achr.o    cmp_type.o          dat_putnx.o    hds_machine.o        \
chr_appnd.o   cmp_unmap.o         datput.o       hdsnew.o        \
chr_atok.o    cnfCopyf.o          dat_putvx.o    hdsnull.o        \
chr_atom.o    cnfCreat.o          dat_rcera.o    hdsopclos.o        \
chr_btoi.o    cnfCrefa.o          dat_rcopy.o    hds_run.o        \
chr_clean.o   cnfCref.o           dat_refct.o    hds_start.o        \
chr_copy.o    cnfCreib.o          dat_ref.o      hds_state.o        \
chr_ctoc.o    cnfCreim.o          dattemp.o      hds_stop.o        \
chr_ctod.o    cnfCrela.o          dat_tune.o     hdstools.o        \
chr_ctoi.o    cnfExpch.o          dat_where.o    hds_tune.o        \
chr_ctol.o    cnfExpla.o          daucheck.o     hds_wild.o        \
chr_ctor.o    cnfExpn.o           daucnv.o       oldnames.o        \
chr_dcwrd.o   cnfExprta.o         daucopy.o      rec1_alloc_frame.o        \
chr_delim.o   cnfExprtap.o        dauflush.o     rec1_clear_cbm.o        \
chr_dtoan.o   cnfExprt.o          dauloc.o       rec1_close_file.o        \
chr_dtoc.o    cnfFreef.o          daumove.o      rec1_close_slot.o        \
chr_equal.o   cnfImpbn.o          dauscatgath.o  rec1_create_file.o        \
chr_etom.o    cnfImpb.o           daushape.o     rec1_deall_frame.o        \
chr_fandl.o   cnfImpch.o          dautypes.o     rec1_extend_file.o        \
chr_fill.o    cnfImpla.o          ems1Eblk.o     rec1_extend_frame.o        \
chr_find.o    cnfImpn.o           ems1Emark.o    rec1_find_file.o        \
chr_fiwe.o    cnfImprta.o         ems1Erlse.o    rec1_flush_block.o        \
chr_fiws.o    cnfImprtap.o        ems1Estor.o    rec1_fmsg.o        \
chr_htoi.o    cnfImprt.o          ems1Fcerr.o    rec1_getcwd.o        \
chr_iachr.o   cnfLenc.o           ems1Flush.o    rec1_get_fid.o        \
chr_index.o   cnfLenf.o           ems1Form.o     rec1_get_path.o        \
chr_inset.o   cnfMem.o            ems1Gesc.o     rec1_locate_hcb.o        \
chr_isalf.o   dat1_alloc_lcp.o    ems1Gnam.o     rec1_lock_slot.o        \
chr_isalm.o   dat1_annul_lcp.o    ems1Gtok.o     rec1_map_frame.o        \
chr_isdig.o   dat1_check_mode.o   ems1Iepnd.o    rec1_open_file.o        \
chr_isnam.o   dat1_check_type.o   ems1Kerr.o     rec1_pack_chain.o        \
chr_itob.o    dat1_cvt_format.o   ems1Ktok.o     rec1_pack_hcb.o        \
chr_itoc.o    dat1_cvt_order.o    ems1Mpop.o     rec1_pack_ncomp.o        \
chr_itoh.o    dat1_decoy.o        ems1Mpush.o    rec1_pack_rcl.o        \
chr_itoo.o    dat1_getenv.o       ems1Prerr.o    rec1_read_file.o        \
chr_lcase.o   dat1_get_ncomp.o    ems1Putc.o     rec1_save_addr.o        \
chr_ldblk.o   dat1_get_odl.o      ems1Rform.o    rec1_scan_cbm.o        \
chr_len.o     dat1_import_loc.o   ems1Serr.o     rec1_set_cbm.o        \
chr_linbr.o   dat1_init_ndr.o     ems1Starf.o    rec1_shell.o        \
chr_lower.o   dat1_init.o         ems1Stok.o     rec1_test_cbm.o        \
chr_ltoc.o    dat1_intune.o       ems1Tblk.o     rec1_unlock_slot.o        \
chr_move.o    dat1_locate_name.o  ems_annul.o    rec1_unmap_frame.o        \
chr_mtoa.o    dat1_pack_crv.o     emsAnnul.o     rec1_unpack_chain.o        \
chr_mtoe.o    dat1_pack_odl.o     ems_begin.o    rec1_unpack_hcb.o        \
chr_nth.o     dat1_pack_srv.o     emsBegin.o     rec1_unpack_ncomp.o        \
chr_otoi.o    dat1_put_ncomp.o    ems_eload.o    rec1_unpack_rcl.o        \
chr_pform.o   dat1_put_odl.o      emsEload.o     rec1_update_free.o        \
chr_prefx.o   dat1_show_ndr.o     ems_end.o      rec1_write_file.o        \
chr_putc.o    dat1_unpack_crv.o   emsEnd.o       rec_adopt_record.o        \
chr_putd.o    dat1_unpack_odl.o   emsErrno.o     rec_alloc_mem.o        \
chr_puti.o    dat1_unpack_srv.o   ems_expnd.o    rec_alloc_xmem.o        \
chr_putl.o    dat1_unpack_type.o  emsExpnd.o     rec_attach_file.o        \
chr_putr.o    datalter.o          ems_facer.o    rec_close_file.o        \
chr_rjust.o   datannul.o          emsFacer.o     rec_create_record.o        \
chr_rmblk.o   dat_ccopy.o         ems_fioer.o    rec_deall_mem.o        \
chr_rmchr.o   dat_cctyp.o         ems_level.o    rec_deall_xmem.o        \
chr_rtoan.o   dat_clen.o          emsLevel.o     rec_delete_record.o        \
chr_rtoc.o    dat_copy.o          ems_mark.o     rec_end_wild.o        \
chr_scomp.o   dat_drep.o          emsMark.o      rec_extend_record.o        \
chr_simlr.o   daterase.o          ems_mload.o    rec_get_handle.o        \
chr_size.o    dat_erdsc.o         emsMload.o     rec_get_rcl.o        \
chr_skchr.o   dat_erdsn.o         ems_renew.o    rec_get_rid.o        \
chr_sort.o    dat_ermsg.o         emsRenew.o     rec_list_files.o        \
chr_swap.o    dat_ertxt.o         ems_rep.o      rec_locate_block.o        \
chr_term.o    datfinind.o         emsRep.o       rec_locate_data.o        \
chr_tochr.o   dat_get0x.o         ems_rlse.o     rec_locate_fns.o        \
chr_trchr.o   dat_get1x.o         emsRlse.o      rec_lock.o        \
chr_trunc.o   dat_getnx.o         ems_setc.o     rec_mark_delete.o        \
chr_ucase.o   datget.o            emsSetc.o      rec_reall_mem.o        \
chr_upper.o   dat_getvx.o         ems_setd.o     rec_refcnt.o        \
chr_wild.o    datinq.o            emsSetd.o      rec_release_block.o        \
cmp_activ.o   datlocops.o         ems_seti.o     rec_release_data.o        \
cmp_blk.o     dat_mapn.o          emsSeti.o      rec_reset_record.o        \
cmp_deact.o   datmap.o            ems_setl.o     rec_same_file.o        \
cmp_erdsn.o   dat_mapv.o          emsSetl.o      rec_shrink_record.o        \
cmp_get0x.o   datmove.o           emsSetnc.o     rec_start.o        \
cmp_get1x.o   dat_msg.o           ems_setr.o     rec_stop.o        \
cmp_getnx.o   dat_new0c.o         emsSetr.o      rec_unlock.o        \
cmp_getvx.o   dat_new0.o          ems_stat.o     rec_where.o        \
cmp_len.o     dat_new0x.o         emsStat.o      rec_wild_file.o        \
cmp_mapn.o    dat_new1c.o         ems_syser.o    rtl_fixups.o        \
cmp_mapv.o    dat_new1.o          emsSyser.o        \
cmp_modc.o    dat_new1x.o         ems_tune.o        \
cmp_mod.o     dat_newc.o          emsTune.o


libhds.a : ${OBJECTS}
	rm -f libhds.a
	ar ruv $@ ${OBJECTS}

.f.o:
	$(FC) $(FCFLAGS) $<

.c.o:
	$(CC) $(CCFLAGS) $<

clean:
	rm -f ${OBJECTS}
